| 2 Dec 2025 |
raitobezarius | nix-build -E 'let pkgs = (import <nixpkgs> {}); in pkgs.runCommand "resolvconf" { outputHashAlgo = "sha256"; outputHashMode = "flat"; outputHash = pkgs.lib.fakeHash; } "${pkgs.iproute2}/bin/ip a' | 23:24:23 |
xored | but yeah since I have you here 😉 | 23:24:25 |
raitobezarius | i suppose this will show only the ipv6 addr | 23:24:32 |
xored | [root@shiva:~]# nix-build -E 'let pkgs = (import <nixpkgs> {}); in pkgs.runCommand "resolvconf" { outputHashAlgo = "sha256"; outputHashMode = "flat"; outputHash = pkgs.lib.fakeHash; } "${pkgs.iproute2}/bin/ip a"'
this derivation will be built:
/nix/store/gkcn6z55jgdan2pallqh3dznyj02f2mm-resolvconf.drv
building '/nix/store/gkcn6z55jgdan2pallqh3dznyj02f2mm-resolvconf.drv'...
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host proto kernel_lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65520 qdisc fq_codel state UNKNOWN group default qlen 1000
link/ether 7a:26:aa:74:3a:20 brd ff:ff:ff:ff:ff:ff
inet6 64:ff9b:1:4b8e:472e:a5c8:a9fe:102/64 scope global nodad
valid_lft forever preferred_lft forever
inet6 fe80::7826:aaff:fe74:3a20/64 scope link nodad tentative proto kernel_ll
valid_lft forever preferred_lft forever
error: builder for '/nix/store/gkcn6z55jgdan2pallqh3dznyj02f2mm-resolvconf.drv' failed to produce output path for output 'out' at '/nix/store/gkcn6z55jgdan2pallqh3dznyj02f2mm-resolvconf.drv.chroot/nix/store/cyy08glb0lpa2sjaqq1rcxg1kyh11ra3-resolvconf'
| 23:25:53 |
raitobezarius | bingo thanks | 23:26:26 |
raitobezarius | have you tried to disable pasta? | 23:26:32 |
raitobezarius | to see if this is a valid workaround | 23:26:36 |
xored | can I do it from the remote machine? | 23:26:48 |
raitobezarius | nix-build ... --pasta-path "" ... disables pasta | 23:26:49 |
raitobezarius | you can do it on the local machine | 23:26:53 |
raitobezarius | i think this should work out | 23:26:56 |
raitobezarius | if this doesn't, you need to set pasta-path = "" in your /etc/nix/nix.conf on the remote builder yes | 23:27:09 |
raitobezarius | nix.settings.pasta-path = ""; works from NixOS as well | 23:27:17 |
raitobezarius | https://git.lix.systems/lix-project/lix/issues/1065 | 23:28:40 |
raitobezarius | it will be fixed in 2.94.1 | 23:29:10 |
raitobezarius | thanks for your patience! | 23:29:35 |
xored | amazing fam | 23:29:50 |
xored | hmm disabling pasta didn't work though | 23:30:01 |
xored | same error | 23:30:04 |
xored | thanks a lot btw | 23:30:08 |
xored | ohhh I can't read | 23:30:24 |
xored | warning: Ignoring the client-specified setting 'pasta-path', because it is a restricted setting and you are not a trusted user | 23:30:31 |
xored | guess we're rebuilding the host | 23:30:55 |
xored | it's building, so it works without pasta, but you already knew that | 23:35:29 |
leo60228 | just saw this cppnix pr from the other day, seems interesting? https://github.com/NixOS/nix/pull/14686 | 23:45:04 |
leo60228 | haven't looked at the implementation but i like the idea of being able to attach metadata to store paths that don't affect the hash | 23:45:21 |
leo60228 | (the idea is for auditability, i.e. getting more useful information about what software is installed on a machine than just a list of store paths) | 23:46:04 |
raitobezarius | yup | 23:59:03 |
raitobezarius | the concept of meta is not to affect the on-disk representation of drv, this PR seems to be going against all these invariants no matter what the new modulo algorithm become | 23:59:51 |
| 3 Dec 2025 |
raitobezarius | auditability can already be achieved today by recording meta out-of-band like many projects does it, having a nicer way to do is definitely desireable, but i don't think this particular implementation would fly | 00:02:03 |