Merge pull request #32000 from kierdavis/pius

pius: 2.0.11 -> 2.2.4
This commit is contained in:
Jörg Thalheim 2017-11-24 13:00:07 +00:00 committed by GitHub
commit 1432906dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,29 +1,21 @@
{ fetchurl, 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 = "";
src = fetchurl {
url = "mirror://sourceforge/pgpius/pius/${version}/pius-${version}.tar.bz2";
sha256 = "0pdbyqz6k0bm182cz81ss7yckmpms5qhrrw0wcr4a1srzcjyzf5f";
src = fetchFromGitHub {
owner = "jaymzh";
repo = "pius";
rev = "v${version}";
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 = {
@ -41,6 +33,6 @@ stdenv.mkDerivation {
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.gnu;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
maintainers = with stdenv.lib.maintainers; [ fuuzetsu kierdavis ];
};
}