tup: 0.7.10 -> 0.7.11

This commit is contained in:
Emery Hemingway 2021-05-15 22:24:01 +02:00
parent 2620ac69c0
commit 588e045629

View File

@ -4,37 +4,41 @@ let
fuse = if stdenv.isDarwin then macfuse-stubs else fuse3; fuse = if stdenv.isDarwin then macfuse-stubs else fuse3;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "tup"; pname = "tup";
version = "0.7.10"; version = "0.7.11";
outputs = [ "bin" "man" "out" ]; outputs = [ "bin" "man" "out" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gittup"; owner = "gittup";
repo = "tup"; repo = "tup";
rev = "v${version}"; rev = "v${version}";
sha256 = "1qd07h4wi0743l7z2vybfvhwp61g2p2pc5qhl40672ryl24nvd1d"; hash = "sha256-Q2Y5ErcfhLChi9Wezn8+7eNXYX2UXW1fBOqEclmgzOo=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ fuse pcre ]; buildInputs = [ fuse pcre ];
configurePhase = '' configurePhase = ''
sed -i 's/`git describe`/v${version}/g' src/tup/link.sh substituteInPlace src/tup/link.sh --replace '`git describe' '`echo ${version}'
sed -i 's/pcre-confg/pkg-config pcre/g' Tupfile Tuprules.tup substituteInPlace Tuprules.tup --replace 'pcre-config' 'pkg-config libpcre'
''; '';
# Regular tup builds require fusermount to have suid, which nix cannot # Regular tup builds require fusermount to have suid, which nix cannot
# currently provide in a build environment, so we bootstrap and use 'tup # currently provide in a build environment, so we bootstrap and use 'tup
# generate' instead # generate' instead
buildPhase = '' buildPhase = ''
runHook preBuild
./build.sh ./build.sh
./build/tup init ./build/tup init
./build/tup generate script.sh ./build/tup generate script.sh
./script.sh ./script.sh
runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall
install -D tup -t $bin/bin/ install -D tup -t $bin/bin/
install -D tup.1 -t $man/share/man/man1/ install -D tup.1 -t $man/share/man/man1/
runHook postInstall
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;