nixpkgs/pkgs/tools/misc/slurp/default.nix

39 lines
849 B
Nix
Raw Normal View History

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";
version = "1.2.0";
2019-01-25 08:37:23 +00:00
src = fetchFromGitHub {
owner = "emersion";
repo = "slurp";
rev = "v${version}";
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; {
description = "Select a region in a Wayland compositor";
2019-01-25 09:06:56 +00: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 ];
};
}