2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config
|
2020-10-25 09:06:47 +00:00
|
|
|
, cairo, libxkbcommon, wayland, wayland-protocols
|
2019-02-26 09:30:54 +00:00
|
|
|
, buildDocs ? true, scdoc
|
|
|
|
}:
|
2019-01-25 08:37:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-26 09:30:54 +00:00
|
|
|
pname = "slurp";
|
2020-11-12 03:54:05 +00:00
|
|
|
version = "1.3.1";
|
2019-01-25 08:37:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "slurp";
|
|
|
|
rev = "v${version}";
|
2020-11-12 03:54:05 +00:00
|
|
|
sha256 = "1fby2v2ylcadgclds05wpkl9xi2r9dfz49dqyqpn20rjv1wnz3jv";
|
2019-01-25 08:37:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2020-10-25 09:06:47 +00:00
|
|
|
pkg-config
|
2019-02-26 09:30:54 +00:00
|
|
|
] ++ stdenv.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
|
|
|
|
];
|
|
|
|
|
2019-02-26 09:30:54 +00:00
|
|
|
mesonFlags = stdenv.lib.optional buildDocs "-Dman-pages=enabled";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-02-15 13:22:52 +00:00
|
|
|
description = "Select a region in a Wayland compositor";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/emersion/slurp";
|
2019-01-25 08:37:23 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ buffet ];
|
|
|
|
};
|
|
|
|
}
|