Skip to content
Permalink
f1010c5b53
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (24 sloc) 965 Bytes
{stdenv, gdb, gawk, coreutils, ncurses}:
stdenv.mkDerivation {
pname = "git-stagelight";
version = "1.0.2";
src = ./.;
unpackPhase = "true";
dontBuild = true;
installPhase = ''
cp pre-commit $out
substituteInPlace $out --replace 'head' '${coreutils}/bin/head'
substituteInPlace $out --replace 'tr' '${coreutils}/bin/tr'
substituteInPlace $out --replace 'stdbuf' '${coreutils}/bin/stdbuf'
substituteInPlace $out --replace 'stty' '${coreutils}/bin/stty'
substituteInPlace $out --replace 'touch' '${coreutils}/bin/touch'
substituteInPlace $out --replace 'tput' '${ncurses}/bin/tput'
substituteInPlace $out --replace ' gdb' ' ${gdb}/bin/gdb'
substituteInPlace $out --replace 'awk' '${gawk}/bin/awk'
'';
meta = with stdenv.lib; {
description = "git hook that prompts for new && unstaged files whenever you commit";
homepage = "https://github.com/hyperfekt/git-stagelight";
license = licenses.mpl20;
};
}
You can’t perform that action at this time.