diff --git a/default.nix b/default.nix index a3c7f04..213b284 100644 --- a/default.nix +++ b/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";