2016-02-10 12:45:47 +03:00
|
|
|
{ stdenv, fetchurl, fetchzip, giblib, xlibsWrapper }:
|
2009-09-03 02:56:33 +04:00
|
|
|
|
2016-02-10 12:45:47 +03:00
|
|
|
let
|
|
|
|
debPatch = fetchzip {
|
|
|
|
url = mirror://debian/pool/main/s/scrot/scrot_0.8-17.debian.tar.xz;
|
|
|
|
sha256 = "0ydsr3vah5wkcbnp91knkdbil4hx0cn0iy57frl03azqzc29bkw5";
|
|
|
|
};
|
|
|
|
in
|
2009-09-03 02:56:33 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-10 12:45:47 +03:00
|
|
|
name = "scrot-0.8-17";
|
2009-09-03 02:56:33 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1";
|
|
|
|
};
|
|
|
|
|
2016-02-10 12:45:47 +03:00
|
|
|
inherit debPatch;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for patch in $(cat $debPatch/patches/series); do
|
|
|
|
patch -p1 < "$debPatch/patches/$patch"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2015-09-15 12:13:22 +03:00
|
|
|
buildInputs = [ giblib xlibsWrapper ];
|
2009-09-03 02:56:33 +04:00
|
|
|
|
2016-02-15 17:46:51 +03:00
|
|
|
meta = with stdenv.lib; {
|
2009-09-03 02:56:33 +04:00
|
|
|
homepage = http://linuxbrit.co.uk/scrot/;
|
|
|
|
description = "A command-line screen capture utility";
|
2016-02-15 17:46:51 +03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ garbas ];
|
2009-09-03 02:56:33 +04:00
|
|
|
};
|
|
|
|
}
|