git.iko.soy/typeable/nixpkgs
on master help sign in
nixpkgs: tarsnap 1.0.35 -> 1.0.36.1

This also fixes the same build failure present in `scrypt-1.2.0`, which is quite trivial. (partially cherry picked from commit 54c7053b) Signed-off-by: Austin Seipp <aseipp@pobox.com>

commit03bc71f1742c5bdfaf819f62ca604b06ad538472 authorAustin Seipp <aseipp@pobox.com> dateMon 31 Aug 2015, 08:01 (11 years ago) parent8a74451
1 file changed+13−11
pkgs/tools/backup/tarsnap/default.nix+13−11
pkgs/tools/backup/tarsnap/default.nix+13−11
@@ -1,11 +1,6 @@
11{ stdenv, fetchurl, openssl, zlib, e2fsprogs }:
22
33let
4− bashCompletion = fetchurl {
5− url = "https://gist.githubusercontent.com/thoughtpolice/daa9431044883d3896f6/raw/282360677007db9739e5bf229873d3b231eb303a/tarsnap.bash";
6− sha256 = "1cj7m0n3sw9vlaz2dfvf0bgaxkv1pcc0l31zb4h5rmm8z6d33405";
7− };
8−
94 zshCompletion = fetchurl {
105 url = "https://gist.githubusercontent.com/thoughtpolice/daa9431044883d3896f6/raw/282360677007db9739e5bf229873d3b231eb303a/tarsnap.zsh";
116 sha256 = "0pawqwichzpz29rva7mh8lpx4zznnrh2rqyzzj6h7z98l0dxpair";
@@ -13,18 +8,25 @@ let
138in
149stdenv.mkDerivation rec {
1510 name = "tarsnap-${version}";
16− version = "1.0.35";
11+ version = "1.0.36.1";
1712
1813 src = fetchurl {
19− url = "https://www.tarsnap.com/download/tarsnap-autoconf-1.0.35.tgz";
20− sha256 = "16lc14rwrq84fz95j1g10vv0qki0qw73lzighidj5g23pib6g7vc";
14+ url = "https://www.tarsnap.com/download/tarsnap-autoconf-${version}.tgz";
15+ sha256 = "1446l8g39bi5xxk4x1ijc1qjrj824729887gcffig0zrw80rx452";
2116 };
2217
18+ preConfigure = ''
19+ configureFlags="--with-bash-completion-dir=$out/etc/bash_completion.d"
20+ '';
21+
22+ patchPhase = ''
23+ substituteInPlace Makefile.in \
24+ --replace "command -p mv" "mv"
25+ '';
26+
2327 postInstall = ''
2428 # Install some handy-dandy shell completions
25− mkdir -p $out/etc/bash_completion.d $out/share/zsh/site-functions
26− cp ${bashCompletion} $out/etc/bash_completion.d/tarsnap.bash
27− cp ${zshCompletion} $out/share/zsh/site-functions/_tarsnap
29+ install -m 444 -D ${zshCompletion} $out/share/zsh/site-functions/_tarsnap
2830 '';
2931
3032 buildInputs = [ openssl zlib e2fsprogs ];