3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #14899 from ethanpailes/tomb

tomb: init at version 2.2
This commit is contained in:
Joachim Fasting 2016-04-22 23:35:40 +02:00
commit ea9275f312
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ stdenv, fetchurl, zsh, pinentry, cryptsetup, gnupg1orig, makeWrapper }:
let
version = "2.2";
in
stdenv.mkDerivation rec {
name = "tomb-${version}";
src = fetchurl {
url = "https://files.dyne.org/tomb/tomb-${version}.tar.gz";
sha256 = "11msj38fdmymiqcmwq1883kjqi5zr01ybdjj58rfjjrw4zw2w5y0";
};
buildInputs = [ makeWrapper ];
buildPhase = ''
# manually patch the interpreter
sed -i -e "1s|.*|#!${zsh}/bin/zsh|g" tomb
'';
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
cp tomb $out/bin/tomb
cp doc/tomb.1 $out/share/man/man1
wrapProgram $out/bin/tomb \
--prefix PATH : "${pinentry}/bin" \
--prefix PATH : "${cryptsetup}/bin" \
--prefix PATH : "${gnupg1orig}/bin"
'';
meta = {
description = "File encryption on GNU/Linux";
homepage = https://www.dyne.org/software/tomb/;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -16632,4 +16632,6 @@ in
discord = callPackage ../applications/networking/instant-messengers/discord { };
golden-cheetah = qt5.callPackage ../applications/misc/golden-cheetah {};
tomb = callPackage ../os-specific/linux/tomb {};
}