nixpkgs/pkgs/by-name/gr/grim/package.nix
Zhong Jianxin 4d45876878 grim: Limit meta.platforms to linux
meta.platforms was changed in PR #342840, which causes darwin build failures.

Also update meta.homepage.

ZHF: #352882
2024-11-03 20:37:39 +08:00

57 lines
965 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://sr.ht/~emersion/grim";
description = "Grab images from a Wayland compositor";
license = lib.licenses.mit;
mainProgram = "grim";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
})