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

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

37 lines
775 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromSourcehut, pixman, libpng, 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";
2022-02-09 01:11:08 +00:00
version = "1.4.0";
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}";
2022-02-09 01:11:08 +00:00
sha256 = "sha256-lwJn1Lysv1qLauqmrduUlzdoKUrUM5uBjv+dWSsrM6w=";
2019-01-24 22:33:09 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
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 ];
};
}