nixpkgs/pkgs/tools/security/pius/default.nix
Kier Davis 5e54487080
pius: perl should be a runtime dependency, not a build-time one
Since 61bc03c017, patch-shebangs
now distinguishes between build-time and runtime dependencies.

Prior to this commit, perl was not being placed in patch-shebangs'
search path when it is run during the fixup phase.
2019-07-16 14:28:49 +01:00

41 lines
1.1 KiB
Nix

{ fetchFromGitHub, stdenv, python3Packages, gnupg, perl }:
let version = "3.0.0"; in
python3Packages.buildPythonApplication {
pname = "pius";
namePrefix = "";
inherit version;
src = fetchFromGitHub {
owner = "jaymzh";
repo = "pius";
rev = "v${version}";
sha256 = "0l87dx7n6iwy8alxnhvval8h1kl4da6a59hsilbi65c6bpj4dh3y";
};
patchPhase = ''
for file in libpius/constants.py pius-keyring-mgr; do
sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g'
done
'';
buildInputs = [ perl ];
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 ++ stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu kierdavis ];
};
}