1{ lib
2, stdenv
3, fetchFromGitHub
4, imlib2
5, autoreconfHook
6, autoconf-archive
7, libX11
8, libXext
9, libXfixes
10, libXcomposite
11, pkg-config
12, libbsd
13}:
14
15stdenv.mkDerivation rec {
16 pname = "scrot";
17 version = "1.7";
18
19 src = fetchFromGitHub {
20 owner = "resurrecting-open-source-projects";
21 repo = pname;
22 rev = version;
23 sha256 = "sha256-oVmEPkEK1xDcIRUQjCp6CKf+aKnnVe3L7aRTdSsCmmY=";
24 };
25
26 nativeBuildInputs = [
27 autoreconfHook
28 autoconf-archive
29 pkg-config
30 ];
31
32 buildInputs = [
33 imlib2
34 libX11
35 libXext
36 libXfixes
37 libXcomposite
38 libbsd
39 ];
40
41 meta = with lib; {
42 homepage = "https://github.com/resurrecting-open-source-projects/scrot";
43 description = "A command-line screen capture utility";
44 platforms = platforms.linux;
45 maintainers = with maintainers; [ globin ];
46 license = licenses.mitAdvertising;
47 };
48}