scrot: 0.8 -> 0.8-17 (Debian patches), fixes #12954

authored by Nathan Zadoks and committed by Rok Garbas 2d3940bd eb9a85a3

+16 -2
+16 -2
pkgs/tools/graphics/scrot/default.nix
··· 1 - { stdenv, fetchurl, giblib, xlibsWrapper }: 1 + { stdenv, fetchurl, fetchzip, giblib, xlibsWrapper }: 2 2 3 + let 4 + debPatch = fetchzip { 5 + url = mirror://debian/pool/main/s/scrot/scrot_0.8-17.debian.tar.xz; 6 + sha256 = "0ydsr3vah5wkcbnp91knkdbil4hx0cn0iy57frl03azqzc29bkw5"; 7 + }; 8 + in 3 9 stdenv.mkDerivation rec { 4 - name = "scrot-0.8"; 10 + name = "scrot-0.8-17"; 5 11 6 12 src = fetchurl { 7 13 url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz"; 8 14 sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"; 9 15 }; 16 + 17 + inherit debPatch; 18 + 19 + postPatch = '' 20 + for patch in $(cat $debPatch/patches/series); do 21 + patch -p1 < "$debPatch/patches/$patch" 22 + done 23 + ''; 10 24 11 25 buildInputs = [ giblib xlibsWrapper ]; 12 26