| 28 Oct 2023 |
Pol | True | 12:41:33 |
@linus:schreibt.jetzt | definitely not the clearest arrangement... | 12:41:34 |
Pol | Do you think using this CLI is OK ? nix-build /home/pol/Code/NixOS/nixpkgs -A wireplumber.doc --check --keep-failed -v | 12:44:06 |
Pol | I made modification to wireplumber and I want to see if those changes are reproducible. | 12:44:25 |
Pol | (I basically changed the src to somewhere local) | 12:44:35 |
Pol | * (I basically changed the src to somewhere in local) | 12:44:41 |
raboof | yeah looks like it should to me | 12:44:56 |
Pol | When I do that, it says: | 12:44:57 |
Pol | this derivation will be built:
/nix/store/df8slazq6r76c6lwjmvw2j6j2cbpdbk3-wireplumber-0.4.15.drv
error: some outputs of '/nix/store/df8slazq6r76c6lwjmvw2j6j2cbpdbk3-wireplumber-0.4.15.drv' are not valid, so checking is not possible
| 12:45:00 |
Pol | But when I use: nix-build '<nixpkgs>' -A wireplumber.doc --check --keep-failed, it builds it and the message is different. | 12:45:25 |
raboof | ah, then first do a regular nix-build /home/pol/Code/NixOS/nixpkgs -A wireplumber.doc to build the reference | 12:45:26 |
Pol | OOOh right... | 12:45:51 |
Pol | Thanks :) | 12:47:04 |
raboof | https://github.com/NixOS/nixpkgs/pull/263961 :) | 12:50:37 |
@r522:matrix.org | also, maybe --check should tell you this too? | 12:51:11 |
Pol | raboof: We could also explain a little bit how to compare two different builds. I'm trying to find it by myself here, but I have some troubles. | 12:53:04 |
raboof | sure... did you tru | 12:53:53 |
Pol | So first step: nix-build -A <package> Second step: same command with --check --keep-failed Thirst step: What are the things to compare here? | 12:53:58 |
raboof | * sure... did you try 'diffoscope <one> <other>' yet? | 12:54:03 |
raboof | the end of the second step should say something like "A and B differ", which you can then diffoscope | 12:54:30 |
Pol | Oh. | 12:54:35 |
raboof | could probably made clearer as well :) | 12:55:06 |
Pol | Excellent. So easy when it's explained well | 12:55:50 |
raboof | anyone else going to the r-b summit next week btw? https://reproducible-builds.org/events/hamburg2023/ | 13:01:10 |
Pol | I wish I could... but nope :( | 13:04:35 |
Pol | raboof: Is there a command equivalent to nix-build -A <package> --check but using the new CLI commandS ? nix build ... ? | 15:58:29 |
@r522:matrix.org | In reply to @drupol:matrix.org raboof: Is there a command equivalent to nix-build -A <package> --check but using the new CLI commandS ? nix build ... ? nix build nixpkgs#hello --rebuild --keep-failed ? | 15:59:53 |
@r522:matrix.org | (listed on https://reproducible.nixos.org/ if you've not seen that) | 16:00:34 |
Pol | Oh thanks. Indeed, I haven't seen it. | 16:03:05 |
Pol | [pol@x13:~/Code/NixOS/nixpkgs]$ nix-store --read-log $(nix-instantiate '<nixpkgs>' -A wireplumber.doc)
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
error: store path '7wrbjsivcy8z2zq9kvmv9v1glzn1gxn0-wireplumber-0.4.15.drv!doc' contains illegal character '!'
[pol@x13:~/Code/NixOS/nixpkgs]$
| 16:30:42 |