-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compsize: init at 2018-04-07 #40217
compsize: init at 2018-04-07 #40217
Conversation
sha256 = "0jps8n0xsdh4mcww5q29rzysbv50iq6rmihxrf99lzgrw0sw5m7k"; | ||
}; | ||
|
||
nativeBuildInputs = [ btrfs-progs ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be buildInputs
(not nativeBuildInputs
): the actual btrfs tools don't need to run on the machine where you build this but the build includes some btrfs headers for the target platform. Doesn't make a difference unless you're cross-building but let's get this right anyway.
The distinction is rather subtle, see https://nixos.org/nixpkgs/manual/#ssec-stdenv-dependencies.
Simple rule of thumb: if it needs to run during the build process, put it in nativeBuildInputs
.
07442ae
to
9b82bf6
Compare
9b82bf6
to
5363414
Compare
Fixed. |
@GrahamcOfBorg build compsize |
Success on x86_64-linux (full log) Attempted: compsize Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: compsize Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: compsize Partial log (click to expand)
|
Motivation for this change
Adds compsize, a tool for checking the compression type/ratio on a file or a set of files on Btrfs.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)