nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchFromGitHub, stdenv, pythonPackages, gnupg, perl }:
2
3let version = "2.2.6"; in
4pythonPackages.buildPythonApplication {
5 name = "pius-${version}";
6 namePrefix = "";
7
8 src = fetchFromGitHub {
9 owner = "jaymzh";
10 repo = "pius";
11 rev = "v${version}";
12 sha256 = "1rffwyjd84rwx1w5yyqckirm1kdj80ldfwjlw91kk74swhpbpzzj";
13 };
14
15 patchPhase = ''
16 for file in libpius/constants.py pius-keyring-mgr; do
17 sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g'
18 done
19 '';
20
21 buildInputs = [ perl ];
22
23 meta = {
24 homepage = https://www.phildev.net/pius/;
25
26 description = "PGP Individual UID Signer (PIUS), quickly and easily sign UIDs on a set of PGP keys";
27
28 longDescription =
29 '' This software will allow you to quickly and easily sign each UID on
30 a set of PGP keys. It is designed to take the pain out of the
31 sign-all-the-keys part of PGP Keysigning Party while adding security
32 to the process.
33 '';
34
35 license = stdenv.lib.licenses.gpl2;
36
37 platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
38 maintainers = with stdenv.lib.maintainers; [ fuuzetsu kierdavis ];
39 };
40}