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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
906 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromSourcehut
, pixman
, libpng
, libjpeg
, meson
, ninja
, pkg-config
, scdoc
, wayland
, wayland-protocols
, wayland-scanner
}:
2019-01-24 22:33:09 +00:00
stdenv.mkDerivation rec {
2019-06-07 01:25:03 +00:00
pname = "grim";
version = "1.4.1";
2019-01-24 22:33:09 +00:00
src = fetchFromSourcehut {
owner = "~emersion";
2019-06-07 01:25:03 +00:00
repo = pname;
2019-01-24 22:33:09 +00:00
rev = "v${version}";
hash = "sha256-5csJqRLNqhyeXR4dEQtnPUSwuZ8oY+BIt6AVICkm1+o=";
2019-01-24 22:33:09 +00:00
};
mesonFlags = [
"-Dwerror=false"
];
2019-01-24 22:33:09 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
wayland-scanner
2019-01-24 22:33:09 +00:00
];
buildInputs = [
2022-02-09 01:11:08 +00:00
pixman
libpng
2019-01-24 22:33:09 +00:00
libjpeg
wayland
wayland-protocols
];
meta = with lib; {
2019-01-24 22:33:09 +00:00
description = "Grab images from a Wayland compositor";
homepage = "https://github.com/emersion/grim";
2019-01-24 22:33:09 +00:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ buffet eclairevoyant ];
mainProgram = "grim";
2019-01-24 22:33:09 +00:00
};
}