!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

613 Members
121 Servers

Load older messages


SenderMessageTime
8 Aug 2024
@dramforever:matrix.orgdramforever not rev 08:43:57
@quapka4:matrix.orgquapka4
In reply to @dramforever:matrix.org
not rev
It worked for the nix-user-chroot Nix though :D
08:44:38
@quapka4:matrix.orgquapka4The hashes are different.08:44:45
@dramforever:matrix.orgdramforeveron the same commit? interesting08:45:04
@dramforever:matrix.orgdramforever rm -rf ~/.cache/nix/ perhaps, maybe the git cache was losing track 08:45:37
@quapka4:matrix.orgquapka4
In reply to @dramforever:matrix.org
on the same commit? interesting
Yes, afaict.
08:46:03
@dramforever:matrix.orgdramforever nix flake metadata '.?rev=HEAD&submodules=1' 08:46:22
@quapka4:matrix.orgquapka4 They do differ in Path:, but all Inputs: are the same. 08:52:41
@quapka4:matrix.orgquapka4

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:matrix.orgdramforeverthat should be irrelevant08:55:40
@dramforever:matrix.orgdramforeveris the "Locked URL" also the same?08:55:54
@dramforever:matrix.orgdramforever 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:matrix.orgquapka4

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:matrix.orgquapka4
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:matrix.orgdramforeverthis could be relevant https://github.com/NixOS/nix/issues/6633#issuecomment-147996974208:59:02
@dramforever:matrix.orgdramforeverit's kinda while08:59:05
@dramforever:matrix.orgdramforever * it's kinda wild08:59:08
@dramforever:matrix.orgdramforeverif 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 process08:59:56
@dramforever:matrix.orgdramforever * 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 process09:00:05
@dramforever:matrix.orgdramforeverlike maybe the nix-user-chroot thing has sandbox off and nixos has sandbox on09:00:31
@dramforever:matrix.orgdramforeverand that caused the difference09:00:37
@quapka4:matrix.orgquapka4I see, thanks a lot, nonetheless.09:01:19
@dramforever:matrix.orgdramforeverthat's the only thing i can think of without like, your flake code, logs, stuff09:02:07
@quapka4:matrix.orgquapka4
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:matrix.orgquapka4
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:matrix.orgquapka4 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
@sh4p3:matrix.orgDavid Nies joined the room.20:28:47
10 Aug 2024
@khaneliman:matrix.orgAustin Horstman changed their display name from Khaneliman to Austin Horstman.03:50:12
11 Aug 2024
@qu4pk4:matrix.orgqu4pk4Hi, 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:matrix.orgqu4pk4

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

Show newer messages


Back to Room ListRoom Version: 6