2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
, zlib, libpng, libjpeg, libwebp, libGLU, libGL, glm
|
2020-04-24 23:36:52 +00:00
|
|
|
, libX11, libXext, libXfixes, libXrandr, libXcomposite, slop, icu
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "maim";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naelstrof";
|
|
|
|
repo = "maim";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-/tZqSJnKe8GiffSz9VIFKuxMktRld+hA4ZWP4TZQrlg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ zlib libpng libjpeg libwebp libGLU libGL glm
|
2020-04-24 23:36:52 +00:00
|
|
|
libX11 libXext libXfixes libXrandr libXcomposite slop icu ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "maim";
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line screenshot utility";
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
changelog = "https://github.com/naelstrof/maim/releases/tag/v${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|