2021-01-17 10:17:16 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2019-11-07 17:29:02 +01:00
|
|
|
, zlib, libpng, libjpeg, libGLU, libGL, glm
|
2018-04-23 10:31:14 +02:00
|
|
|
, libX11, libXext, libXfixes, libXrandr, libXcomposite, slop, icu
|
|
|
|
}:
|
2015-03-04 17:10:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "maim";
|
2020-04-12 17:09:00 +02:00
|
|
|
version = "5.6.3";
|
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}";
|
2020-04-12 17:09:00 +02:00
|
|
|
sha256 = "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x";
|
2015-03-04 17:10:13 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-06-08 01:51:34 +02:00
|
|
|
buildInputs =
|
2019-11-07 17:29:02 +01:00
|
|
|
[ zlib libpng libjpeg libGLU libGL glm
|
2018-04-23 10:31:14 +02:00
|
|
|
libX11 libXext libXfixes libXrandr libXcomposite slop icu ];
|
2015-03-04 17:10:13 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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.
|
|
|
|
'';
|
2020-04-12 17:09:00 +02:00
|
|
|
changelog = "https://github.com/naelstrof/maim/releases/tag/v${version}";
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2021-06-15 13:46:24 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-03-04 17:10:13 +01:00
|
|
|
};
|
|
|
|
}
|