| 28 Oct 2023 |
@r522:matrix.org | it has been split up | 12:40:13 |
@r522:matrix.org | see the bottom | 12:40:18 |
@r522:matrix.org | man nix-store-realise | 12:40:25 |
raboof | man nix-store-realise - but indeed hard to follow | 12:40:33 |
Pol | man nix-store-check doesn't exist either | 12:40:51 |
Pol | Yeah now I got the doc | 12:41:11 |
@linus:schreibt.jetzt | In reply to @drupol:matrix.org
man nix-store-check doesn't exist either that's because --check isn't an operation | 12:41:27 |
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 |