2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, imlib2
|
|
|
|
, autoreconfHook
|
|
|
|
, autoconf-archive
|
2022-10-30 15:09:59 +00:00
|
|
|
, libX11
|
|
|
|
, libXext
|
2022-02-10 20:34:41 +00:00
|
|
|
, libXfixes
|
|
|
|
, libXcomposite
|
|
|
|
, pkg-config
|
|
|
|
, libbsd
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "scrot";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "resurrecting-open-source-projects";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-oVmEPkEK1xDcIRUQjCp6CKf+aKnnVe3L7aRTdSsCmmY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
autoconf-archive
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
imlib2
|
2022-10-30 15:09:59 +00:00
|
|
|
libX11
|
|
|
|
libXext
|
2022-02-10 20:34:41 +00:00
|
|
|
libXfixes
|
|
|
|
libXcomposite
|
|
|
|
libbsd
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/resurrecting-open-source-projects/scrot";
|
|
|
|
description = "A command-line screen capture utility";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ globin ];
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.mitAdvertising;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|