cc49d46d4f
GitOrigin-RevId: 2deeb58f49480f468adca6b08291322de4dbce6b
39 lines
884 B
Nix
39 lines
884 B
Nix
{ stdenv, fetchFromGitHub, meson, ninja, pkg-config
|
|
, cairo, libxkbcommon, wayland, wayland-protocols
|
|
, buildDocs ? true, scdoc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "slurp";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emersion";
|
|
repo = "slurp";
|
|
rev = "v${version}";
|
|
sha256 = "1fby2v2ylcadgclds05wpkl9xi2r9dfz49dqyqpn20rjv1wnz3jv";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
] ++ stdenv.lib.optional buildDocs scdoc;
|
|
|
|
buildInputs = [
|
|
cairo
|
|
libxkbcommon
|
|
wayland
|
|
wayland-protocols
|
|
];
|
|
|
|
mesonFlags = stdenv.lib.optional buildDocs "-Dman-pages=enabled";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Select a region in a Wayland compositor";
|
|
homepage = "https://github.com/emersion/slurp";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ buffet ];
|
|
};
|
|
}
|