2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkg-config, scdoc, wayland-protocols }:
|
2019-01-24 22:33:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-07 01:25:03 +00:00
|
|
|
pname = "grim";
|
2021-04-17 19:43:45 +00:00
|
|
|
version = "1.3.2";
|
2019-01-24 22:33:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
2019-06-07 01:25:03 +00:00
|
|
|
repo = pname;
|
2019-01-24 22:33:09 +00:00
|
|
|
rev = "v${version}";
|
2021-04-17 19:43:45 +00:00
|
|
|
sha256 = "sha256-71dmYENfPX8YHcTlR2F67EheoewicePMKm9/wPbmj9A=";
|
2019-01-24 22:33:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 09:17:16 +00:00
|
|
|
pkg-config
|
2019-06-24 15:03:56 +00:00
|
|
|
scdoc
|
2019-01-24 22:33:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
libjpeg
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-24 22:33:09 +00:00
|
|
|
description = "Grab images from a Wayland compositor";
|
2020-04-01 01:11:51 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|