2021-02-16 04:19:45 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, cairo
|
|
|
|
, libxkbcommon
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2019-02-26 10:30:54 +01:00
|
|
|
, buildDocs ? true, scdoc
|
|
|
|
}:
|
2019-01-25 09:37:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-26 10:30:54 +01:00
|
|
|
pname = "slurp";
|
2021-04-17 22:09:09 +02:00
|
|
|
version = "1.3.2";
|
2019-01-25 09:37:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "slurp";
|
|
|
|
rev = "v${version}";
|
2021-04-17 22:09:09 +02:00
|
|
|
sha256 = "sha256-5ZB34rqLyZmfjT/clxNRDmF0qgITFZ5xt/gIEXQzvQE=";
|
2019-01-25 09:37:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2020-10-25 10:06:47 +01:00
|
|
|
pkg-config
|
2021-01-15 10:19:50 +01:00
|
|
|
] ++ lib.optional buildDocs scdoc;
|
2019-01-25 09:37:23 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
2020-10-25 10:06:47 +01:00
|
|
|
libxkbcommon
|
2019-01-25 09:37:23 +01:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
mesonFlags = lib.optional buildDocs "-Dman-pages=enabled";
|
2019-02-26 10:30:54 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-02-15 14:22:52 +01:00
|
|
|
description = "Select a region in a Wayland compositor";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/emersion/slurp";
|
2019-01-25 09:37:23 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ buffet ];
|
2021-02-16 04:19:45 +01:00
|
|
|
platforms = platforms.linux;
|
2019-01-25 09:37:23 +01:00
|
|
|
};
|
|
|
|
}
|