nixpkgs/pkgs/tools/graphics/scrot/default.nix

33 lines
800 B
Nix
Raw Normal View History

{ 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-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 = {
homepage = http://linuxbrit.co.uk/scrot/;
description = "A command-line screen capture utility";
2014-11-19 19:41:36 +01:00
platforms = stdenv.lib.platforms.linux;
};
}