-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
lorri: unstable-2019-10-30 -> unstable-2020-01-09 #77380
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
Conversation
pkgs/tools/misc/lorri/default.nix
Outdated
}; | ||
|
||
cargoSha256 = "1daff4plh7hwclfp21hkx4fiflh9r80y2c7k2sd3zm4lmpy0jpfz"; | ||
cargoSha256 = "0k7l0zhk2vzf4nlwv4xr207irqib2dqjxfdjk1fprff84c4kblx8"; | ||
doCheck = false; | ||
|
||
BUILD_REV_COUNT = src.revCount or 1; | ||
RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix {}; | ||
|
||
nativeBuildInputs = with pkgs; [ nix direnv which ]; |
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.
Also, this looks weird - why do we need nix
and direnv
as nativeBuildInput
?
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.
nix
and are runtime dependencies of lorri. Is there a better way of declaring that dependency?direnv
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.
nativeBuildInputs
is useful to distinguish between platforms w.r.t cross-compiling. Do we execute nix
or direnv
during build? The build might also work without which
.
Does lorri
rely on nix
and direnv
being available during runtime? Or is it only nix
? It might be sufficient to have it available in the systemd service path - in interactive shells nix
should already be available in $PATH
.
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.
lorri
requires nix
at runtime. Some integration tests require direnv
, but we don't run them on Hydra at the moment. Similarly for which
, though it looks like the integration tests only claim to use it but don't really: https://github.com/target/lorri/blob/7b84837b9988d121dd72178e81afd440288106c5/tests/integration/envrctestcase.rs#L19-L23
It might be sufficient to have it available in the systemd service path - in interactive shells nix should already be available in
$PATH
.
So you're saying that there is no need to have nix
in nativeBuildInputs
? Cool, I'll remove it.
1e96cdd
to
2efd290
Compare
@GrahamcOfBorg eval |
2efd290
to
cae6989
Compare
`rustfmt` is now a compile time dependency because the varlink generated code is formatted with it.
cae6989
to
c976dc1
Compare
@GrahamcOfBorg build lorri |
@curiousleo can you do the corresponding backport PR? |
Will do, thanks for your help here! |
Motivation for this change
lorri development is making rapid progress. This release fixes one bug in particular that many users come across: target/lorri#176 / fix in target/lorri#260.
Note:
rustfmt
is now a compile time dependency because the varlink generated code is formatted with it.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @Profpatsch