mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
scrot: 0.8 -> 0.8-17 (Debian patches), fixes #12954
This commit is contained in:
parent
eb9a85a389
commit
2d3940bd66
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "scrot-0.8";
|
name = "scrot-0.8-17";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
|
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
|
||||||
sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1";
|
sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inherit debPatch;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
for patch in $(cat $debPatch/patches/series); do
|
||||||
|
patch -p1 < "$debPatch/patches/$patch"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ giblib xlibsWrapper ];
|
buildInputs = [ giblib xlibsWrapper ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user