@@ -4,37 +4,41 @@ let
44 fuse = if stdenv.isDarwin then macfuse-stubs else fuse3;
55in stdenv.mkDerivation rec {
66 pname = "tup";
7− version = "0.7.10";
7+ version = "0.7.11";
88 outputs = [ "bin" "man" "out" ];
99
1010 src = fetchFromGitHub {
1111 owner = "gittup";
1212 repo = "tup";
1313 rev = "v${version}";
14− sha256 = "1qd07h4wi0743l7z2vybfvhwp61g2p2pc5qhl40672ryl24nvd1d";
14+ hash = "sha256-Q2Y5ErcfhLChi9Wezn8+7eNXYX2UXW1fBOqEclmgzOo=";
1515 };
1616
1717 nativeBuildInputs = [ pkg-config ];
1818 buildInputs = [ fuse pcre ];
1919
2020 configurePhase = ''
21− sed -i 's/`git describe`/v${version}/g' src/tup/link.sh
22− sed -i 's/pcre-confg/pkg-config pcre/g' Tupfile Tuprules.tup
21+ substituteInPlace src/tup/link.sh --replace '`git describe' '`echo ${version}'
22+ substituteInPlace Tuprules.tup --replace 'pcre-config' 'pkg-config libpcre'
2323 '';
2424
2525 # Regular tup builds require fusermount to have suid, which nix cannot
2626 # currently provide in a build environment, so we bootstrap and use 'tup
2727 # generate' instead
2828 buildPhase = ''
29+ runHook preBuild
2930 ./build.sh
3031 ./build/tup init
3132 ./build/tup generate script.sh
3233 ./script.sh
34+ runHook postBuild
3335 '';
3436
3537 installPhase = ''
38+ runHook preInstall
3639 install -D tup -t $bin/bin/
3740 install -D tup.1 -t $man/share/man/man1/
41+ runHook postInstall
3842 '';
3943
4044 setupHook = ./setup-hook.sh;