2017-06-07 23:51:34 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
2019-11-07 16:29:02 +00:00
|
|
|
, zlib, libpng, libjpeg, libGLU, libGL, glm
|
2018-04-23 08:31:14 +00:00
|
|
|
, libX11, libXext, libXfixes, libXrandr, libXcomposite, slop, icu
|
|
|
|
}:
|
2015-03-04 16:10:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "maim";
|
2019-04-23 14:35:17 +00:00
|
|
|
version = "5.5.3";
|
2015-03-04 16:10:13 +00:00
|
|
|
|
2017-06-07 23:51:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naelstrof";
|
|
|
|
repo = "maim";
|
|
|
|
rev = "v${version}";
|
2019-04-23 14:35:17 +00:00
|
|
|
sha256 = "1kbxsz8whfxl5blwsvpva2q95zwy72argwhi1cfqh5lrhzq5zrpp";
|
2015-03-04 16:10:13 +00:00
|
|
|
};
|
|
|
|
|
2017-06-07 23:51:34 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs =
|
2019-11-07 16:29:02 +00:00
|
|
|
[ zlib libpng libjpeg libGLU libGL glm
|
2018-04-23 08:31:14 +00:00
|
|
|
libX11 libXext libXfixes libXrandr libXcomposite slop icu ];
|
2015-03-04 16:10:13 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-06-07 23:51:34 +00:00
|
|
|
inherit (src.meta) homepage;
|
2015-03-04 16:10:13 +00: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-07 23:51:34 +00:00
|
|
|
maintainers = with maintainers; [ primeos mbakke ];
|
2015-03-04 16:10:13 +00:00
|
|
|
};
|
|
|
|
}
|