depot/third_party/nixpkgs/pkgs/tools/graphics/scrot/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

51 lines
923 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, imlib2
, autoreconfHook
, autoconf-archive
, libX11
, libXext
, libXfixes
, libXcomposite
, libXinerama
, pkg-config
, libbsd
}:
stdenv.mkDerivation rec {
pname = "scrot";
version = "1.11.1";
src = fetchFromGitHub {
owner = "resurrecting-open-source-projects";
repo = pname;
rev = version;
sha256 = "sha256-MUmvzZMzzKKw5GjOUhpdrMIgKO9/i9RDqDtTsSghd18=";
};
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
];
buildInputs = [
imlib2
libX11
libXext
libXfixes
libXcomposite
libXinerama
libbsd
];
meta = with lib; {
homepage = "https://github.com/resurrecting-open-source-projects/scrot";
description = "Command-line screen capture utility";
mainProgram = "scrot";
platforms = platforms.linux;
maintainers = with maintainers; [ ];
license = licenses.mitAdvertising;
};
}