1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

gitAndTools.diff-so-fancy: Fix shebang patching and clean up

perl is a runtime dependency so it needs to be in buildInputs,
otherwise patchShebangs hook will not see it.
This commit is contained in:
Jan Tojnar 2020-08-21 17:21:42 +02:00 committed by Jon
parent faa23a0f32
commit 2b6f959c3b

View file

@ -11,12 +11,19 @@ stdenv.mkDerivation rec {
sha256 = "0aavxahzha2mms4vdwysk79pa6wzswpfwgsq2hwaxnaf66maahfl";
};
# Perl is needed here for patchShebangs
nativeBuildInputs = [ perl makeWrapper ];
nativeBuildInputs = [
makeWrapper
];
buildPhase = null;
buildInputs = [
perl # needed for patchShebangs
];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/lib/diff-so-fancy
# diff-so-fancy executable searches for it's library relative to
@ -32,6 +39,8 @@ stdenv.mkDerivation rec {
--prefix PATH : "${git}/bin" \
--prefix PATH : "${coreutils}/bin" \
--prefix PATH : "${ncurses.out}/bin"
runHook postInstall
'';
meta = with stdenv.lib; {