nixpkgs/pkgs/tools/graphics/maim/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2017-06-08 01:51:34 +02:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig
2018-04-23 10:31:14 +02:00
, zlib, libpng, libjpeg, libGLU_combined, glm
, libX11, libXext, libXfixes, libXrandr, libXcomposite, slop, icu
}:
2015-03-04 17:10:13 +01:00
stdenv.mkDerivation rec {
name = "maim-${version}";
2018-06-14 13:58:07 +02:00
version = "5.5.2";
2015-03-04 17:10:13 +01:00
2017-06-08 01:51:34 +02:00
src = fetchFromGitHub {
owner = "naelstrof";
repo = "maim";
rev = "v${version}";
2018-06-14 13:58:07 +02:00
sha256 = "14mfxdm39kc5jk8wysrzx05ag2g4sk9l24i8m5pzqn8j611150v3";
2015-03-04 17:10:13 +01:00
};
2017-06-08 01:51:34 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs =
2018-04-23 10:31:14 +02:00
[ zlib libpng libjpeg libGLU_combined glm
libX11 libXext libXfixes libXrandr libXcomposite slop icu ];
2015-03-04 17:10:13 +01:00
doCheck = false;
meta = with stdenv.lib; {
2017-06-08 01:51:34 +02:00
inherit (src.meta) homepage;
2015-03-04 17:10:13 +01:00
description = "A command-line screenshot utility";
longDescription = ''
maim (make image) takes screenshots of your desktop. It has options to
take only a region, and relies on slop to query for regions. maim is
supposed to be an improved scrot.
'';
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl3Plus;
2017-06-08 01:51:34 +02:00
maintainers = with maintainers; [ primeos mbakke ];
2015-03-04 17:10:13 +01:00
};
}