2019-02-26 09:30:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
|
|
|
|
, cairo, wayland, wayland-protocols
|
|
|
|
, buildDocs ? true, scdoc
|
|
|
|
}:
|
2019-01-25 08:37:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-26 09:30:54 +00:00
|
|
|
pname = "slurp";
|
2019-06-18 13:57:48 +01:00
|
|
|
version = "1.2.0";
|
2019-01-25 08:37:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "slurp";
|
|
|
|
rev = "v${version}";
|
2019-06-18 13:57:48 +01:00
|
|
|
sha256 = "0580m6kaiilgsrcj608r837r37sl6a25y7w21p7d6ij20fs3gvg1";
|
2019-01-25 08:37:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2019-02-26 09:30:54 +00:00
|
|
|
] ++ stdenv.lib.optional buildDocs scdoc;
|
2019-01-25 08:37:23 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
2019-02-26 09:30:54 +00:00
|
|
|
mesonFlags = stdenv.lib.optional buildDocs "-Dman-pages=enabled";
|
|
|
|
|
2019-01-25 08:37:23 +00:00
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|