From 2d3940bd662f0bb858a2da7c2f9bfa28743f5544 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Wed, 10 Feb 2016 10:45:47 +0100 Subject: [PATCH] scrot: 0.8 -> 0.8-17 (Debian patches), fixes #12954 --- pkgs/tools/graphics/scrot/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/scrot/default.nix b/pkgs/tools/graphics/scrot/default.nix index aa8958bb63df..55a63712c1ec 100644 --- a/pkgs/tools/graphics/scrot/default.nix +++ b/pkgs/tools/graphics/scrot/default.nix @@ -1,13 +1,27 @@ -{ stdenv, fetchurl, giblib, xlibsWrapper }: +{ stdenv, fetchurl, fetchzip, giblib, xlibsWrapper }: +let + debPatch = fetchzip { + url = mirror://debian/pool/main/s/scrot/scrot_0.8-17.debian.tar.xz; + sha256 = "0ydsr3vah5wkcbnp91knkdbil4hx0cn0iy57frl03azqzc29bkw5"; + }; +in stdenv.mkDerivation rec { - name = "scrot-0.8"; + name = "scrot-0.8-17"; src = fetchurl { url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz"; sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"; }; + inherit debPatch; + + postPatch = '' + for patch in $(cat $debPatch/patches/series); do + patch -p1 < "$debPatch/patches/$patch" + done + ''; + buildInputs = [ giblib xlibsWrapper ]; meta = {