blob: 1105813550fb79b4d396ce94d8cc23408fa33710 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, cairo
, libxkbcommon
, wayland
, wayland-protocols
, buildDocs ? true, scdoc
}:
stdenv.mkDerivation rec {
pname = "slurp";
version = "1.3.2";
src = fetchFromGitHub {
owner = "emersion";
repo = "slurp";
rev = "v${version}";
sha256 = "sha256-5ZB34rqLyZmfjT/clxNRDmF0qgITFZ5xt/gIEXQzvQE=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
] ++ lib.optional buildDocs scdoc;
buildInputs = [
cairo
libxkbcommon
wayland
wayland-protocols
];
mesonFlags = lib.optional buildDocs "-Dman-pages=enabled";
meta = with lib; {
description = "Select a region in a Wayland compositor";
homepage = "https://github.com/emersion/slurp";
license = licenses.mit;
maintainers = with maintainers; [ buffet ];
platforms = platforms.linux;
};
}
|