scrot: 0.8-18 -> 1.2
This commit is contained in:
parent
f7c9670cd8
commit
c55d90b81c
@ -1,26 +1,19 @@
|
|||||||
{ stdenv, fetchurl, fetchzip, giblib, xlibsWrapper }:
|
{ stdenv, fetchFromGitHub, giblib, xlibsWrapper, autoreconfHook
|
||||||
|
, autoconf-archive, libXfixes, libXcursor }:
|
||||||
|
|
||||||
let
|
|
||||||
debPatch = fetchzip {
|
|
||||||
url = mirror://debian/pool/main/s/scrot/scrot_0.8-18.debian.tar.xz;
|
|
||||||
sha256 = "1m8m8ad0idf3nzw0k57f6rfbw8n7dza69a7iikriqgbrpyvxqybx";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "scrot-0.8-18";
|
pname = "scrot";
|
||||||
|
version = "1.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
|
owner = "resurrecting-open-source-projects";
|
||||||
sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "08gkdby0ysx2mki57z81zlm7vfnq9c1gq692xw67cg5vv2p3320w";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
nativeBuildInputs = [ autoreconfHook autoconf-archive ];
|
||||||
for patch in $(cat ${debPatch}/patches/series); do
|
buildInputs = [ giblib xlibsWrapper libXfixes libXcursor ];
|
||||||
patch -p1 < "${debPatch}/patches/$patch"
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [ giblib xlibsWrapper ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://linuxbrit.co.uk/scrot/;
|
homepage = http://linuxbrit.co.uk/scrot/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user