nixpkgs/pkgs/tools/wayland/slurp/default.nix

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

58 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
2022-12-07 04:12:13 +00:00
, cairo
, libxkbcommon
, meson
, ninja
, pkg-config
2022-12-07 04:12:13 +00:00
, scdoc
, wayland
, wayland-protocols
2022-05-09 14:18:15 +00:00
, wayland-scanner
2022-12-07 04:12:13 +00:00
, buildDocs ? true
2019-02-26 09:30:54 +00:00
}:
2019-01-25 08:37:23 +00:00
2022-12-07 04:12:13 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-02-26 09:30:54 +00:00
pname = "slurp";
2022-12-07 04:12:13 +00:00
version = "1.4.0";
2019-01-25 08:37:23 +00:00
src = fetchFromGitHub {
owner = "emersion";
repo = "slurp";
2022-12-07 04:12:13 +00:00
rev = "v${finalAttrs.version}";
hash = "sha256-jUuY2wuN00libHDaJEmrvQAb1o989Ly3nLyKHV0jz8Q=";
2019-01-25 08:37:23 +00:00
};
depsBuildBuild = [
pkg-config
];
2019-01-25 08:37:23 +00:00
nativeBuildInputs = [
meson
ninja
2020-10-25 09:06:47 +00:00
pkg-config
2022-05-09 14:18:15 +00:00
wayland-scanner
2021-01-15 09:19:50 +00:00
] ++ lib.optional buildDocs scdoc;
2019-01-25 08:37:23 +00:00
buildInputs = [
cairo
2020-10-25 09:06:47 +00:00
libxkbcommon
2019-01-25 08:37:23 +00:00
wayland
wayland-protocols
];
2022-12-07 04:12:13 +00:00
strictDeps = true;
mesonFlags = [ (lib.mesonEnable "man-pages" buildDocs) ];
2019-02-26 09:30:54 +00:00
meta = with lib; {
homepage = "https://github.com/emersion/slurp";
2022-12-07 04:12:13 +00:00
description = "Select a region in a Wayland compositor";
changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
2019-01-25 08:37:23 +00:00
license = licenses.mit;
maintainers = with maintainers; [ buffet ];
2022-12-07 04:12:13 +00:00
inherit (wayland.meta) platforms;
2019-01-25 08:37:23 +00:00
};
2022-12-07 04:12:13 +00:00
})