8 Aug 2024 |
dramforever | not rev | 08:43:57 |
quapka4 | In reply to @dramforever:matrix.org not rev It worked for the nix-user-chroot Nix though :D | 08:44:38 |
quapka4 | The hashes are different. | 08:44:45 |
dramforever | on the same commit? interesting | 08:45:04 |
dramforever | rm -rf ~/.cache/nix/ perhaps, maybe the git cache was losing track | 08:45:37 |
quapka4 | In reply to @dramforever:matrix.org on the same commit? interesting Yes, afaict. | 08:46:03 |
dramforever | nix flake metadata '.?rev=HEAD&submodules=1' | 08:46:22 |
quapka4 | They do differ in Path: , but all Inputs: are the same. | 08:52:41 |
quapka4 | I get these two warnings on the Nix only machine:
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled
| 08:55:02 |
dramforever | that should be irrelevant | 08:55:40 |
dramforever | is the "Locked URL" also the same? | 08:55:54 |
dramforever | i did find this with some people complaining about various issues with submodules=1 https://github.com/NixOS/nix/issues/6633 | 08:56:53 |
quapka4 | Well, not fully, because there is the filepath, the commit is the same, but not the ref:
?ref=HEAD&rev=c47d49f0d58162bdbb9456db07911469af01c313
ref=refs/heads/build-with-nix&rev=c47d49f0d58162bdbb9456db07911469af01c313
| 08:58:11 |
quapka4 | In reply to @dramforever:matrix.org i did find this with some people complaining about various issues with submodules=1 https://github.com/NixOS/nix/issues/6633 Interesting, but afaik the libgpg-error is not related to the submodules. | 08:58:47 |
dramforever | this could be relevant https://github.com/NixOS/nix/issues/6633#issuecomment-1479969742 | 08:59:02 |
dramforever | it's kinda while | 08:59:05 |
dramforever | * it's kinda wild | 08:59:08 |
dramforever | if it's not then there's no "it's some mismatch of channels or some version or something" problem and you need to start digging into the build process | 08:59:56 |
dramforever | * if it's not this submodule problem then there's no "it's some mismatch of channels or some version or something" problem and you need to start digging into the build process | 09:00:05 |
dramforever | like maybe the nix-user-chroot thing has sandbox off and nixos has sandbox on | 09:00:31 |
dramforever | and that caused the difference | 09:00:37 |
quapka4 | I see, thanks a lot, nonetheless. | 09:01:19 |
dramforever | that's the only thing i can think of without like, your flake code, logs, stuff | 09:02:07 |
quapka4 | In reply to @dramforever:matrix.org like maybe the nix-user-chroot thing has sandbox off and nixos has sandbox on This does not seem to be the problem. I have tried with/without sandbox on both machines and on each machine the with/without hashes were the same, but still different across the machines. | 10:18:48 |
quapka4 | In reply to @dramforever:matrix.org that's the only thing i can think of without like, your flake code, logs, stuff I can show you the code/logs if you're willing to look into it. | 10:19:12 |
quapka4 | What is maybe strange a bit is that nix eval --raw and nix eval --raw '.?submodules=1' gives the same output for the Nix only and a different one for the NixOS. | 10:26:00 |
9 Aug 2024 |
| David Nies joined the room. | 20:28:47 |
10 Aug 2024 |
| Austin Horstman changed their display name from Khaneliman to Austin Horstman. | 03:50:12 |
11 Aug 2024 |
qu4pk4 | Hi, while on my journey to improving in Nix(OS) is there anyone interested in reviewing a Flake of mine? Spotting some anti-patterns and such. | 15:10:23 |
qu4pk4 | For example, the flake contains lots of packages, because I use it to build conditionally different versions. I went with a modular approach:
# flake.nix
{
...
packages = {
pkg1 = {
ver1 = { ... };
ver2 = { ... };
...
vern = { ... };
};
};
}
| 16:41:18 |