1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/os-specific/linux/tomb/default.nix
R. RyanTM c650aa2d9e tomb: 2.5 -> 2.6
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/tomb/versions
2019-07-03 08:30:35 +02:00

45 lines
1.2 KiB
Nix

{ stdenv, lib, fetchFromGitHub, makeWrapper
, gettext, zsh, pinentry, cryptsetup, gnupg, utillinux, e2fsprogs, sudo
}:
stdenv.mkDerivation rec {
name = "tomb-${version}";
version = "2.6";
src = fetchFromGitHub {
owner = "dyne";
repo = "Tomb";
rev = "v${version}";
sha256 = "0pr0lw1byxwkgv857zfmd8yqa03a7mckhzklrf9rkv1l6nisz0z0";
};
buildInputs = [ sudo zsh pinentry ];
nativeBuildInputs = [ makeWrapper ];
postPatch = ''
# if not, it shows .tomb-wrapped when running
substituteInPlace tomb \
--replace 'TOMBEXEC=$0' 'TOMBEXEC=tomb'
'';
doInstallCheck = true;
installCheckPhase = "$out/bin/tomb -h";
installPhase = ''
install -Dm755 tomb $out/bin/tomb
install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1
wrapProgram $out/bin/tomb \
--prefix PATH : $out/bin:${lib.makeBinPath [ cryptsetup gettext gnupg pinentry utillinux e2fsprogs ]}
'';
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;
};
}