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

39 lines
849 B
Nix
Raw Normal View History

2019-02-26 10:30:54 +01:00
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
, cairo, wayland, wayland-protocols
, buildDocs ? true, scdoc
}:
2019-01-25 09:37:23 +01:00
stdenv.mkDerivation rec {
2019-02-26 10:30:54 +01:00
pname = "slurp";
version = "1.1.0";
2019-01-25 09:37:23 +01:00
src = fetchFromGitHub {
owner = "emersion";
repo = "slurp";
rev = "v${version}";
2019-02-26 10:30:54 +01:00
sha256 = "15fqspg3cjl830l95ibibprxf9p13mc2rpyf9bdwsdx2f4qrkq62";
2019-01-25 09:37:23 +01:00
};
nativeBuildInputs = [
meson
ninja
pkgconfig
2019-02-26 10:30:54 +01:00
] ++ stdenv.lib.optional buildDocs scdoc;
2019-01-25 09:37:23 +01:00
buildInputs = [
cairo
wayland
wayland-protocols
];
2019-02-26 10:30:54 +01:00
mesonFlags = stdenv.lib.optional buildDocs "-Dman-pages=enabled";
2019-01-25 09:37:23 +01:00
meta = with stdenv.lib; {
description = "Select a region in a Wayland compositor";
2019-01-25 10:06:56 +01:00
homepage = https://github.com/emersion/slurp;
2019-01-25 09:37:23 +01:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ buffet ];
};
}