mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, fetchurl, openssl, zlib, e2fsprogs }:
|
|
|
|
let
|
|
zshCompletion = fetchurl {
|
|
url = "https://gist.githubusercontent.com/thoughtpolice/daa9431044883d3896f6/raw/282360677007db9739e5bf229873d3b231eb303a/tarsnap.zsh";
|
|
sha256 = "0pawqwichzpz29rva7mh8lpx4zznnrh2rqyzzj6h7z98l0dxpair";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "tarsnap-${version}";
|
|
version = "1.0.36.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.tarsnap.com/download/tarsnap-autoconf-${version}.tgz";
|
|
sha256 = "1446l8g39bi5xxk4x1ijc1qjrj824729887gcffig0zrw80rx452";
|
|
};
|
|
|
|
preConfigure = ''
|
|
configureFlags="--with-bash-completion-dir=$out/etc/bash_completion.d"
|
|
'';
|
|
|
|
postInstall = ''
|
|
# Install some handy-dandy shell completions
|
|
install -m 444 -D ${zshCompletion} $out/share/zsh/site-functions/_tarsnap
|
|
'';
|
|
|
|
buildInputs = [ openssl zlib e2fsprogs ];
|
|
|
|
meta = {
|
|
description = "Online backups for the truly paranoid";
|
|
homepage = "http://www.tarsnap.com/";
|
|
license = "tarsnap";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice roconnor ];
|
|
};
|
|
}
|