summary refs log tree commit diff
path: root/pkgs/tools/graphics/scrot/default.nix
blob: 63a7df14dbd11ec7e61a4d12c63091c0305fbeaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, imlib2, xlibsWrapper, autoreconfHook
, autoconf-archive, libXfixes, libXcomposite
, pkg-config, gettext, libtool, intltool, gtk-doc, libbsd }:

stdenv.mkDerivation rec {
  pname = "scrot";
  version = "1.7";

  src = fetchFromGitHub {
    owner = "resurrecting-open-source-projects";
    repo = pname;
    rev = version;
    sha256 = "sha256-oVmEPkEK1xDcIRUQjCp6CKf+aKnnVe3L7aRTdSsCmmY=";
  };

  nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config ];
  buildInputs = [ imlib2 xlibsWrapper libXfixes libXcomposite gettext libtool intltool gtk-doc libbsd ];

  meta = with lib; {
    homepage = "https://github.com/resurrecting-open-source-projects/scrot";
    description = "A command-line screen capture utility";
    platforms = platforms.linux;
    maintainers = with maintainers; [ globin ];
    license = licenses.mit;
  };
}