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

36 lines
1.0 KiB
Nix
Raw Normal View History

2017-06-08 00:51:34 +01:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, zlib, libpng, libjpeg
2017-07-29 23:56:20 +01:00
, mesa, glm, libX11, libXext, libXfixes, libXrandr, libXcomposite, slop, icu }:
2015-03-04 16:10:13 +00:00
stdenv.mkDerivation rec {
name = "maim-${version}";
2017-08-16 09:36:28 +01:00
version = "5.4.68";
2015-03-04 16:10:13 +00:00
2017-06-08 00:51:34 +01:00
src = fetchFromGitHub {
owner = "naelstrof";
repo = "maim";
rev = "v${version}";
2017-08-16 09:36:28 +01:00
sha256 = "12jvfxzfhh6cbk6ygliwnkvm3mb7rca60k6x9qdzm17jsz65xhh0";
2015-03-04 16:10:13 +00:00
};
2017-06-08 00:51:34 +01:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs =
[ zlib libpng libjpeg mesa glm libX11 libXext libXfixes libXrandr
2017-07-29 23:56:20 +01:00
libXcomposite slop icu ];
2015-03-04 16:10:13 +00:00
doCheck = false;
meta = with stdenv.lib; {
2017-06-08 00:51:34 +01: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-08 00:51:34 +01:00
maintainers = with maintainers; [ primeos mbakke ];
2015-03-04 16:10:13 +00:00
};
}