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