2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-12-17 10:02:37 +00:00
|
|
|
, cairo
|
|
|
|
, libxkbcommon
|
2021-02-17 17:02:09 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2022-12-17 10:02:37 +00:00
|
|
|
, scdoc
|
2021-02-17 17:02:09 +00:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2022-05-18 14:49:53 +00:00
|
|
|
, wayland-scanner
|
2022-12-17 10:02:37 +00:00
|
|
|
, buildDocs ? true
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "slurp";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "slurp";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-jUuY2wuN00libHDaJEmrvQAb1o989Ly3nLyKHV0jz8Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2020-10-27 00:29:36 +00:00
|
|
|
pkg-config
|
2022-05-18 14:49:53 +00:00
|
|
|
wayland-scanner
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optional buildDocs scdoc;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
2020-10-27 00:29:36 +00:00
|
|
|
libxkbcommon
|
2020-04-24 23:36:52 +00:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
mesonFlags = [ (lib.mesonEnable "man-pages" buildDocs) ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
description = "Select a region in a Wayland compositor";
|
|
|
|
inherit (wayland.meta) platforms;
|
|
|
|
homepage = "https://github.com/emersion/slurp";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "slurp";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ buffet ];
|
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
})
|