git.iko.soy/typeable/nixpkgs
on master help sign in
tarsnap: 1.0.35 -> 1.0.36.1 and use upstream bash completion scripts
commit54c7053bffe96d67274efafbc3518a2c40b2dc06 authorTanner Doshier <doshitan@gmail.com> dateFri 21 Aug 2015, 09:34 (11 years ago) parent726a380
1 file changed+8−11
pkgs/tools/backup/tarsnap/default.nix+8−11
pkgs/tools/backup/tarsnap/default.nix+8−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,20 @@ 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+
2322 postInstall = ''
2423 # 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
24+ install -m 444 -D ${zshCompletion} $out/share/zsh/site-functions/_tarsnap
2825 '';
2926
3027 buildInputs = [ openssl zlib e2fsprogs ];