uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/tools/backup/tarsnap/default.nix
Normal file
44
pkgs/tools/backup/tarsnap/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchurl, openssl, zlib, e2fsprogs, bash, bzip2 }:
|
||||
|
||||
let
|
||||
zshCompletion = fetchurl {
|
||||
url = "https://gist.githubusercontent.com/thoughtpolice/daa9431044883d3896f6/raw/282360677007db9739e5bf229873d3b231eb303a/tarsnap.zsh";
|
||||
sha256 = "0pawqwichzpz29rva7mh8lpx4zznnrh2rqyzzj6h7z98l0dxpair";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tarsnap";
|
||||
version = "1.0.40";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.tarsnap.com/download/tarsnap-autoconf-${version}.tgz";
|
||||
sha256 = "1mbzq81l4my5wdhyxyma04sblr43m8p7ryycbpi6n78w1hwfbjmw";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
configureFlags="--with-bash-completion-dir=$out/share/bash-completion/completions"
|
||||
'';
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile.in \
|
||||
--replace "command -p mv" "mv"
|
||||
substituteInPlace configure \
|
||||
--replace "command -p getconf PATH" "echo $PATH"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
# Install some handy-dandy shell completions
|
||||
install -m 444 -D ${zshCompletion} $out/share/zsh/site-functions/_tarsnap
|
||||
'';
|
||||
|
||||
buildInputs = [ openssl zlib ] ++ lib.optional stdenv.isLinux e2fsprogs
|
||||
++ lib.optional stdenv.isDarwin bzip2;
|
||||
|
||||
meta = {
|
||||
description = "Online backups for the truly paranoid";
|
||||
homepage = "http://www.tarsnap.com/";
|
||||
license = lib.licenses.unfree;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ thoughtpolice roconnor ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue