diff options
author | Kier Davis <kierdavis@gmail.com> | 2017-11-24 11:29:59 +0000 |
---|---|---|
committer | Kier Davis <kierdavis@gmail.com> | 2017-11-24 11:29:59 +0000 |
commit | 1f62cfa6f5e8ad0b008dcf2e5de6b9ff884aea72 (patch) | |
tree | d5fef12494910f9ccd066526fca34e7afc509751 /pkgs/tools/security/pius | |
parent | b354f88327bc61a324c474a2cf1d64d8b3dd37ff (diff) |
pius: 2.0.11 -> 2.2.4
Diffstat (limited to 'pkgs/tools/security/pius')
-rw-r--r-- | pkgs/tools/security/pius/default.nix | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/pkgs/tools/security/pius/default.nix b/pkgs/tools/security/pius/default.nix index 5d8e68c6cee0e..e9d4a76187367 100644 --- a/pkgs/tools/security/pius/default.nix +++ b/pkgs/tools/security/pius/default.nix @@ -1,7 +1,7 @@ -{ fetchFromGitHub, stdenv, python, gnupg }: +{ fetchFromGitHub, stdenv, pythonPackages, gnupg }: -let version = "2.0.11"; in -stdenv.mkDerivation { +let version = "2.2.4"; in +pythonPackages.buildPythonApplication { name = "pius-${version}"; namePrefix = ""; @@ -9,23 +9,13 @@ stdenv.mkDerivation { owner = "jaymzh"; repo = "pius"; rev = "v${version}"; - sha256 = "0msqhk0bhnq0f3crr0zf3dc9qb01ghib25fh3sz9dbprxclr5ps9"; + sha256 = "1yk6ngpk55yjdnzhm5sj675xbzwp7rir816a3aris647gsph1vlx"; }; - 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}" + for file in libpius/constants.py pius-keyring-mgr; do + sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g' + done ''; meta = { |