!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

542 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30123 Servers

Load older messages


SenderMessageTime
28 Oct 2023
@drupol:matrix.orgPolTrue12:41:33
@linus:schreibt.jetzt@linus:schreibt.jetztdefinitely not the clearest arrangement...12:41:34
@drupol:matrix.orgPol 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
@drupol:matrix.orgPol I made modification to wireplumber and I want to see if those changes are reproducible. 12:44:25
@drupol:matrix.orgPol (I basically changed the src to somewhere local) 12:44:35
@drupol:matrix.orgPol * (I basically changed the src to somewhere in local) 12:44:41
@raboof:matrix.orgraboofyeah looks like it should to me12:44:56
@drupol:matrix.orgPolWhen I do that, it says:12:44:57
@drupol:matrix.orgPol
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
@drupol:matrix.orgPol 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:matrix.orgraboof ah, then first do a regular nix-build /home/pol/Code/NixOS/nixpkgs -A wireplumber.doc to build the reference 12:45:26
@drupol:matrix.orgPolOOOh right... 12:45:51
@drupol:matrix.orgPolThanks :)12:47:04
@raboof:matrix.orgraboofhttps://github.com/NixOS/nixpkgs/pull/263961 :)12:50:37
@r522:matrix.org@r522:matrix.org also, maybe --check should tell you this too? 12:51:11
@drupol:matrix.orgPol 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:matrix.orgraboofsure... did you tru 12:53:53
@drupol:matrix.orgPol 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:matrix.orgraboof * sure... did you try 'diffoscope <one> <other>' yet?12:54:03
@raboof:matrix.orgraboofthe end of the second step should say something like "A and B differ", which you can then diffoscope12:54:30
@drupol:matrix.orgPolOh.12:54:35
@raboof:matrix.orgraboofcould probably made clearer as well :)12:55:06
@drupol:matrix.orgPolExcellent. So easy when it's explained well12:55:50
@raboof:matrix.orgraboofanyone else going to the r-b summit next week btw? https://reproducible-builds.org/events/hamburg2023/13:01:10
@drupol:matrix.orgPolI wish I could... but nope :(13:04:35
@drupol:matrix.orgPol 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@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@r522:matrix.org(listed on https://reproducible.nixos.org/ if you've not seen that)16:00:34
@drupol:matrix.orgPolOh thanks. Indeed, I haven't seen it.16:03:05
@drupol:matrix.orgPol
[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

Show newer messages


Back to Room ListRoom Version: 6