depot/third_party/nixpkgs/pkgs/by-name/gr/grim/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

56 lines
970 B
Nix

{
lib,
fetchFromSourcehut,
libjpeg,
libpng,
meson,
ninja,
pixman,
pkg-config,
scdoc,
stdenv,
wayland,
wayland-protocols,
wayland-scanner,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "grim";
version = "1.4.1";
src = fetchFromSourcehut {
owner = "~emersion";
repo = "grim";
rev = "v${finalAttrs.version}";
hash = "sha256-5csJqRLNqhyeXR4dEQtnPUSwuZ8oY+BIt6AVICkm1+o=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
wayland-scanner
];
buildInputs = [
pixman
libpng
libjpeg
wayland
wayland-protocols
];
mesonFlags = [ (lib.mesonBool "werror" false) ];
strictDeps = true;
meta = {
homepage = "https://github.com/emersion/grim";
description = "Grab images from a Wayland compositor";
license = lib.licenses.mit;
mainProgram = "grim";
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (wayland.meta) platforms;
};
})