e34ce9d1c5
This release in a RC for gnupg-2.2. The main difference as far as nixpkgs is concerned is that the binary `gpg2` is now called `gpg` and `gpgv2` is called `gpgv`. This update fixed all explicit use of `gpg2` and `gpgv2` across nixpkgs, but there might be some packaged software that internally use `gpg2` not handeled by this commit. See http://lists.gnu.org/archive/html/info-gnu/2017-08/msg00001.html for full release information
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, gettext, zsh, pinentry, cryptsetup, gnupg, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tomb-${version}";
|
|
version = "2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dyne";
|
|
repo = "Tomb";
|
|
rev = "v${version}";
|
|
sha256 = "192jpgn02mvi4d4inbq2q11zl7xw6njymvali7al8wmygkkycrw4";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postPatch = ''
|
|
# if not, it shows .tomb-wrapped when running
|
|
substituteInPlace tomb \
|
|
--replace 'TOMBEXEC=$0' 'TOMBEXEC=tomb'
|
|
'';
|
|
|
|
buildPhase = ''
|
|
# manually patch the interpreter
|
|
sed -i -e "1s|.*|#!${zsh}/bin/zsh|g" tomb
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm755 tomb $out/bin/tomb
|
|
install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1
|
|
|
|
ln -s ${gnupg}/bin/gpg $out/bin/gpg
|
|
|
|
wrapProgram $out/bin/tomb \
|
|
--prefix PATH : $out/bin:${lib.makeBinPath [ cryptsetup gettext pinentry ]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "File encryption on GNU/Linux";
|
|
homepage = https://www.dyne.org/software/tomb/;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|