Skip to content

Commit 3bb512e

Browse files
authored
Merge pull request #95 from winterqt/push-xolnrmnkwvos
use resholve for packaging
2 parents 81c4d11 + 19ec9d1 commit 3bb512e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ stdenv.mkDerivation {
1515
preConfigure = ''
1616
export PREFIX=$out
1717
'';
18-
postInstall = ''
19-
wrapProgram $out/bin/nixos-shell \
20-
--prefix PATH : ${lib.makeBinPath [ jq coreutils gawk ]}
21-
'';
18+
postInstall = resholve.phraseSolution "nixos-shell" {
19+
scripts = [ "bin/nixos-shell" ];
20+
interpreter = lib.getExe bash;
21+
inputs = [ coreutils gawk jq ];
22+
fake.external = [ "nix" ];
23+
keep."$runScript" = true;
24+
};
2225
}

0 commit comments

Comments
 (0)