depot/third_party/nixpkgs/pkgs/tools/wayland/slurp/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

57 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cairo
, libxkbcommon
, meson
, ninja
, pkg-config
, scdoc
, wayland
, wayland-protocols
, wayland-scanner
, buildDocs ? true
}:
stdenv.mkDerivation (finalAttrs: {
pname = "slurp";
version = "1.4.0";
src = fetchFromGitHub {
owner = "emersion";
repo = "slurp";
rev = "v${finalAttrs.version}";
hash = "sha256-jUuY2wuN00libHDaJEmrvQAb1o989Ly3nLyKHV0jz8Q=";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
] ++ lib.optional buildDocs scdoc;
buildInputs = [
cairo
libxkbcommon
wayland
wayland-protocols
];
strictDeps = true;
mesonFlags = [ (lib.mesonEnable "man-pages" buildDocs) ];
meta = with lib; {
homepage = "https://github.com/emersion/slurp";
description = "Select a region in a Wayland compositor";
changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
license = licenses.mit;
maintainers = with maintainers; [ buffet ];
inherit (wayland.meta) platforms;
};
})