2019-06-24 16:03:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkgconfig, scdoc, wayland-protocols }:
|
2019-01-24 22:33:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-07 02:25:03 +01:00
|
|
|
pname = "grim";
|
2020-07-21 19:23:16 +01:00
|
|
|
version = "1.3.1";
|
2019-01-24 22:33:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
2019-06-07 02:25:03 +01:00
|
|
|
repo = pname;
|
2019-01-24 22:33:09 +00:00
|
|
|
rev = "v${version}";
|
2020-07-21 19:23:16 +01:00
|
|
|
sha256 = "0fjmjq0ws9rlblkcqxxw2lv7zvvyi618jqzlnz5z9zb477jwdfib";
|
2019-01-24 22:33:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2019-06-24 16:03:56 +01:00
|
|
|
scdoc
|
2019-01-24 22:33:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
libjpeg
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Grab images from a Wayland compositor";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/emersion/grim";
|
2019-01-24 22:33:09 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ buffet ];
|
|
|
|
};
|
|
|
|
}
|