2021-08-08 23:34:03 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, fetchFromGitea
|
|
|
|
|
, pkg-config
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, wayland-scanner
|
|
|
|
|
, wayland
|
|
|
|
|
, pixman
|
|
|
|
|
, wayland-protocols
|
|
|
|
|
, libxkbcommon
|
|
|
|
|
, scdoc
|
|
|
|
|
, tllist
|
|
|
|
|
, fcft
|
|
|
|
|
, enableCairo ? true
|
2022-09-09 14:08:57 +00:00
|
|
|
|
, svgSupport ? true
|
|
|
|
|
, pngSupport ? true
|
|
|
|
|
# Optional dependencies
|
2021-08-08 23:34:03 +00:00
|
|
|
|
, cairo
|
|
|
|
|
, librsvg
|
|
|
|
|
, libpng
|
|
|
|
|
}:
|
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
|
assert svgSupport -> enableCairo;
|
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "fuzzel";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
version = "1.8.2";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
|
src = fetchFromGitea {
|
|
|
|
|
domain = "codeberg.org";
|
|
|
|
|
owner = "dnkl";
|
|
|
|
|
repo = "fuzzel";
|
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
sha256 = "sha256-5uXf5HfQ8bDQSMNCHHaC9sCX5P/D89T2ZOUiXTDx3bQ=";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
pkg-config
|
|
|
|
|
wayland-scanner
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
scdoc
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
wayland
|
|
|
|
|
pixman
|
|
|
|
|
wayland-protocols
|
|
|
|
|
libxkbcommon
|
|
|
|
|
tllist
|
|
|
|
|
fcft
|
|
|
|
|
] ++ lib.optional enableCairo cairo
|
2022-09-09 14:08:57 +00:00
|
|
|
|
++ lib.optional pngSupport libpng
|
|
|
|
|
++ lib.optional svgSupport librsvg;
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
|
|
mesonBuildType = "release";
|
|
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-10-17 09:34:42 +00:00
|
|
|
|
"-Denable-cairo=${if enableCairo then "enabled" else "disabled"}"
|
2022-09-09 14:08:57 +00:00
|
|
|
|
"-Dpng-backend=${if pngSupport then "libpng" else "none"}"
|
|
|
|
|
"-Dsvg-backend=${if svgSupport then "librsvg" else "none"}"
|
2021-08-08 23:34:03 +00:00
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Wayland-native application launcher, similar to rofi’s drun mode";
|
|
|
|
|
homepage = "https://codeberg.org/dnkl/fuzzel";
|
|
|
|
|
license = licenses.mit;
|
2021-08-08 23:34:03 +00:00
|
|
|
|
maintainers = with maintainers; [ fionera polykernel ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
platforms = with platforms; linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
changelog = "https://codeberg.org/dnkl/fuzzel/releases/tag/${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
};
|
|
|
|
|
}
|