2017-11-24 12:12:51 +01:00
|
|
|
{ fetchFromGitHub, stdenv, python, gnupg }:
|
2010-07-13 18:32:14 +02:00
|
|
|
|
2014-09-21 20:24:31 +02:00
|
|
|
let version = "2.0.11"; in
|
2010-07-13 18:32:14 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "pius-${version}";
|
|
|
|
namePrefix = "";
|
|
|
|
|
2017-11-24 12:12:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaymzh";
|
|
|
|
repo = "pius";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0msqhk0bhnq0f3crr0zf3dc9qb01ghib25fh3sz9dbprxclr5ps9";
|
2010-07-13 18:32:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python ];
|
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
patchPhase = ''
|
2017-08-10 11:43:48 +02:00
|
|
|
sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg|g'
|
2016-05-04 12:08:35 +02:00
|
|
|
'';
|
2010-07-13 18:32:14 +02:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
dontBuild = true;
|
2010-07-13 18:32:14 +02:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp -v pius "$out/bin"
|
2010-07-13 18:32:14 +02:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
mkdir -p "$out/doc/pius-${version}"
|
|
|
|
cp -v README "$out/doc/pius-${version}"
|
|
|
|
'';
|
2010-07-13 18:32:14 +02:00
|
|
|
|
|
|
|
meta = {
|
2017-08-22 20:50:04 +02:00
|
|
|
homepage = https://www.phildev.net/pius/;
|
2010-07-13 18:32:14 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-07-13 18:32:14 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2014-09-21 20:24:31 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2010-07-13 18:32:14 +02:00
|
|
|
};
|
|
|
|
}
|