diff --git a/pkgs/tools/security/signing-party/default.nix b/pkgs/tools/security/signing-party/default.nix new file mode 100644 index 000000000000..ec4197933ec0 --- /dev/null +++ b/pkgs/tools/security/signing-party/default.nix @@ -0,0 +1,37 @@ +{stdenv, fetchurl, gnupg, perl, automake111x, autoconf}: + +stdenv.mkDerivation rec { + version = "2.0"; + basename = "signing-party"; + name = "${basename}-${version}"; + src = fetchurl { + url = "mirror://debian/pool/main/s/${basename}/${basename}_${version}.orig.tar.gz"; + sha256 = "0vn15sb2yyzd57xdblw48p5hi6fnpvgy83mqyz5ygph65y5y88yc"; + }; + + sourceRoot = "."; + + preBuild = '' + substituteInPlace sig2dot/Makefile --replace "\$(DESTDIR)/usr" "$out" + substituteInPlace gpgsigs/Makefile --replace "\$(DESTDIR)/usr" "$out" + substituteInPlace keylookup/Makefile --replace "\$(DESTDIR)/usr" "$out" + substituteInPlace springgraph/Makefile --replace "\$(DESTDIR)/usr" "$out" + substituteInPlace keyanalyze/Makefile --replace "\$(DESTDIR)/usr" "$out" + ''; + + # - perl is required for its pod2man (used in caff) + buildInputs = [ automake111x autoconf perl gnupg ]; + + patches = [ ./gpgwrap_makefile.patch ]; + + installFlags = [ "DESTDIR=\${out}" ]; + + doCheck = false; # no check rule + + meta = { + description = "PGP Tools is a collection for all kinds of pgp related things, including signing scripts, party preparation scripts etc."; + homepage = http://pgp-tools.alioth.debian.org; + platforms = gnupg.meta.platforms; + licence = stdenv.lib.licences.gpl2; + }; +} diff --git a/pkgs/tools/security/signing-party/gpgwrap_makefile.patch b/pkgs/tools/security/signing-party/gpgwrap_makefile.patch new file mode 100644 index 000000000000..4beaf5b80887 --- /dev/null +++ b/pkgs/tools/security/signing-party/gpgwrap_makefile.patch @@ -0,0 +1,16 @@ +--- a/gpgwrap/Makefile 2015-06-03 16:24:48.723129144 +0200 ++++ b/gpgwrap/Makefile 2015-06-03 16:24:11.639744346 +0200 +@@ -1,9 +1,12 @@ + MAKE=make + +-.PHONY: all clean ++.PHONY: all clean install + + all: + cd src && ${MAKE} all DIET="${DIET}" + ++install: ++ ++ + clean: + cd src && ${MAKE} clean diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0c15f9ce0a41..3ceaafb3d36b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2769,6 +2769,9 @@ let sigil = callPackage ../applications/editors/sigil { }; + # aka., gpg-tools + signing-party = callPackage ../tools/security/signing-party { }; + silc_client = callPackage ../applications/networking/instant-messengers/silc-client { }; silc_server = callPackage ../servers/silc-server { };