mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
package: include dependencies in wrapper
This commit is contained in:
parent
8f7cb3c73b
commit
b0a2740aca
15
package.nix
15
package.nix
@ -1,8 +1,21 @@
|
||||
{ stdenvNoCC }:
|
||||
{ stdenvNoCC, makeWrapper, lib, openssh, git, nix, coreutils }:
|
||||
let
|
||||
runtimeDeps = [
|
||||
openssh
|
||||
git # for git flakes
|
||||
nix
|
||||
coreutils
|
||||
];
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "nixos-remote";
|
||||
src = ./.;
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
installPhase = ''
|
||||
install -D -m755 nixos-remote $out/bin/nixos-remote
|
||||
wrapProgram "$out/bin/nixos-remote" \
|
||||
--prefix PATH : "${lib.makeBinPath runtimeDeps}"
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user