diff options
Diffstat (limited to 'pkgs/aszlig/gajim')
-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 + ''; + }; + }; +} |