nixpkgs/pkgs/tools/security/pius/default.nix
Kier Davis b354f88327
pius: move source from Sourceforge to Github
Development of pius has moved to Github.
2017-11-24 11:12:51 +00:00

49 lines
1.2 KiB
Nix

{ fetchFromGitHub, stdenv, python, gnupg }:
let version = "2.0.11"; in
stdenv.mkDerivation {
name = "pius-${version}";
namePrefix = "";
src = fetchFromGitHub {
owner = "jaymzh";
repo = "pius";
rev = "v${version}";
sha256 = "0msqhk0bhnq0f3crr0zf3dc9qb01ghib25fh3sz9dbprxclr5ps9";
};
buildInputs = [ python ];
patchPhase = ''
sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg|g'
'';
dontBuild = true;
installPhase = ''
mkdir -p "$out/bin"
cp -v pius "$out/bin"
mkdir -p "$out/doc/pius-${version}"
cp -v README "$out/doc/pius-${version}"
'';
meta = {
homepage = https://www.phildev.net/pius/;
description = "PGP Individual UID Signer (PIUS), quickly and easily sign UIDs on a set of PGP keys";
longDescription =
'' This software will allow you to quickly and easily sign each UID on
a set of PGP keys. It is designed to take the pain out of the
sign-all-the-keys part of PGP Keysigning Party while adding security
to the process.
'';
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.gnu;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}