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

36 lines
746 B
Nix
Raw Normal View History

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