diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-04-23 23:55:55 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-04-23 23:55:55 +0200 |
commit | 97e440e996e9c418e46af3dbcdba58595b5c11ea (patch) | |
tree | bb996e67ecd5b65acaac9db6260ec43e2b91d148 /pkgs/aszlig/gajim/default.nix | |
parent | d84890a208614ba305e66ba96f81f7e2fd378c27 (diff) |
pkgs: Add an overridden Gajim with old pycrypto
This is for the time being until either NixOS/nixpkgs#21671 has been resolved or the next major version of Gajim has been released, because the latter no longer uses pycrypto. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/aszlig/gajim/default.nix')
-rw-r--r-- | pkgs/aszlig/gajim/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/aszlig/gajim/default.nix b/pkgs/aszlig/gajim/default.nix new file mode 100644 index 00000000..a6bf4a11 --- /dev/null +++ b/pkgs/aszlig/gajim/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, fetchpatch, gmp, pythonPackages +, gajim +}: + +gajim.override { + pythonPackages = pythonPackages // { + pycrypto = pythonPackages.buildPythonPackage rec { + name = "pycrypto-${version}"; + version = "2.6.1"; + + src = fetchurl { + url = "mirror://pypi/p/pycrypto/${name}.tar.gz"; + sha256 = "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"; + }; + + patches = stdenv.lib.singleton (fetchpatch { + name = "CVE-2013-7459.patch"; + url = "https://anonscm.debian.org/cgit/collab-maint/python-crypto.git" + + "/plain/debian/patches/CVE-2013-7459.patch?h=debian/2.6.1-7"; + sha256 = "01r7aghnchc1bpxgdv58qyi2085gh34bxini973xhy3ks7fq3ir9"; + }); + + buildInputs = [ gmp ]; + + preConfigure = '' + sed -i 's,/usr/include,/no-such-dir,' configure + sed -i "s!,'/usr/include/'!!" setup.py + ''; + }; + }; +} |