Add missing runtime dependencies
This commit is contained in:
parent
218f812012
commit
51c4e949bb
1 changed files with 16 additions and 1 deletions
17
default.nix
17
default.nix
|
|
@ -1,9 +1,13 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
shellcheck-minimal,
|
||||
git,
|
||||
gnused,
|
||||
bash,
|
||||
bats,
|
||||
shellcheck-minimal,
|
||||
gitMinimal,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
@ -21,6 +25,10 @@ stdenv.mkDerivation {
|
|||
];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
|
@ -47,6 +55,13 @@ stdenv.mkDerivation {
|
|||
mkdir -p $out/bin
|
||||
cp $src/git-check-assertions $out/bin/git-check-assertions
|
||||
chmod +x $out/bin/git-check-assertions
|
||||
wrapProgram $out/bin/git-check-assertions --prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
bash
|
||||
gitMinimal
|
||||
gnused
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
meta.mainProgram = "git-check-assertions";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue