lol

polkit: add patches from Fedora

This fixes few leaks and adds ITS description files which are needed for some
reverse dependencies.

+24 -5
+24 -5
pkgs/development/libraries/polkit/default.nix
··· 1 - { stdenv, fetchurl, pkgconfig, glib, expat, pam, intltool, spidermonkey_17 2 - , gobjectIntrospection, libxslt, docbook_xsl, docbook_xml_dtd_412 3 - , useSystemd ? stdenv.isLinux, systemd }: 1 + { stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, glib, expat, pam 2 + , intltool, spidermonkey_17 , gobjectIntrospection, libxslt, docbook_xsl 3 + , docbook_xml_dtd_412, gtk_doc 4 + , useSystemd ? stdenv.isLinux, systemd 5 + }: 4 6 5 7 let 6 8 ··· 22 24 sha256 = "109w86kfqrgz83g9ivggplmgc77rz8kx8646izvm2jb57h4rbh71"; 23 25 }; 24 26 27 + patches = [ 28 + (fetchpatch { 29 + url = "http://pkgs.fedoraproject.org/cgit/rpms/polkit.git/plain/polkit-0.113-agent-leaks.patch?id=fa6fd575804de92886c95d3bc2b7eb2abcd13760"; 30 + sha256 = "1cxnhj0y30g7ldqq1y6zwsbdwcx7h97d3mpd3h5jy7dhg3h9ym91"; 31 + }) 32 + (fetchpatch { 33 + url = "http://pkgs.fedoraproject.org/cgit/rpms/polkit.git/plain/polkit-0.113-polkitpermission-leak.patch?id=fa6fd575804de92886c95d3bc2b7eb2abcd13760"; 34 + sha256 = "1h1rkd4avqyyr8q6836zzr3w10jf521gcqnvhrhzwdpgp1ay4si7"; 35 + }) 36 + (fetchpatch { 37 + url = "http://pkgs.fedoraproject.org/cgit/rpms/polkit.git/plain/polkit-0.113-itstool.patch?id=fa6fd575804de92886c95d3bc2b7eb2abcd13760"; 38 + sha256 = "0bxmjwp8ahy1y5g1l0kxmld0l3mlvb2l0i5n1qabia3d5iyjkyfh"; 39 + }) 40 + ]; 41 + 25 42 outputs = [ "bin" "dev" "out" ]; # small man pages in $bin 26 43 44 + nativeBuildInputs = 45 + [ gtk_doc pkgconfig autoreconfHook ] 46 + ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ]; # man pages 27 47 buildInputs = 28 - [ pkgconfig glib expat pam intltool spidermonkey_17 gobjectIntrospection ] 29 - ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ] # man pages 48 + [ glib expat pam intltool spidermonkey_17 gobjectIntrospection ] 30 49 ++ stdenv.lib.optional useSystemd systemd; 31 50 32 51 # Ugly hack to overwrite hardcoded directories