Skip to content

Commit a62f411

Browse files
authored
Merge pull request #293 from lierdakil/cross-compilation-issues
Tweaks to package.nix (particularly pertinent in cross-compilation context)
2 parents a0343ab + 8f279a2 commit a62f411

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

package.nix

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ let
3636
nativeCheckInputs = [
3737
clippy
3838
nix
39+
cargo
3940
];
4041

4142
preCheck = ''
42-
${lib.getExe cargo} clippy
43+
cargo clippy
4344
4445
# Stop the Nix command from trying to create /nix/var/nix/profiles.
4546
#
@@ -51,17 +52,15 @@ in
5152
runCommand "system-manager"
5253
{
5354
nativeBuildInputs = [ makeBinaryWrapper ];
54-
passthru = {
55-
# The unwrapped version takes nix from the PATH, it will fail if nix
56-
# cannot be found.
57-
# The wrapped version has a reference to the nix store path, so nix is
58-
# part of its runtime closure.
59-
unwrapped = system-manager-unwrapped;
60-
};
55+
# The unwrapped version takes nix from the PATH, it will fail if nix
56+
# cannot be found.
57+
# The wrapped version has a reference to the nix store path, so nix is
58+
# part of its runtime closure.
59+
unwrapped = system-manager-unwrapped;
6160
}
6261
''
6362
makeWrapper \
64-
${system-manager-unwrapped}/bin/system-manager \
63+
$unwrapped/bin/system-manager \
6564
$out/bin/system-manager \
6665
--prefix PATH : ${lib.makeBinPath [ nix ]}
6766
''

0 commit comments

Comments
 (0)