2021-08-07 18:40:56 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, fetchFromGitea
|
|
|
|
|
, pkg-config
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2021-08-07 18:50:59 +00:00
|
|
|
|
, wayland-scanner
|
2021-08-07 18:40:56 +00:00
|
|
|
|
, wayland
|
|
|
|
|
, pixman
|
|
|
|
|
, wayland-protocols
|
|
|
|
|
, libxkbcommon
|
|
|
|
|
, scdoc
|
|
|
|
|
, tllist
|
|
|
|
|
, fcft
|
2021-08-07 18:50:59 +00:00
|
|
|
|
, enableCairo ? true
|
2021-11-01 02:14:45 +00:00
|
|
|
|
, svgSupport ? true
|
|
|
|
|
, pngSupport ? true
|
|
|
|
|
# Optional dependencies
|
2021-08-07 18:50:59 +00:00
|
|
|
|
, cairo
|
|
|
|
|
, libpng
|
2021-08-07 18:40:56 +00:00
|
|
|
|
}:
|
2020-07-06 00:10:40 +00:00
|
|
|
|
|
2021-11-01 02:14:45 +00:00
|
|
|
|
assert svgSupport -> enableCairo;
|
|
|
|
|
|
2020-07-06 00:10:40 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "fuzzel";
|
2023-08-01 05:54:05 +00:00
|
|
|
|
version = "1.9.2";
|
2020-07-06 00:10:40 +00:00
|
|
|
|
|
2021-08-07 18:38:31 +00:00
|
|
|
|
src = fetchFromGitea {
|
|
|
|
|
domain = "codeberg.org";
|
|
|
|
|
owner = "dnkl";
|
2023-03-28 03:06:12 +00:00
|
|
|
|
repo = pname;
|
2021-08-07 18:38:31 +00:00
|
|
|
|
rev = version;
|
2023-08-01 05:54:05 +00:00
|
|
|
|
hash = "sha256-X1P/ghX97KCQcrNk44Cy2IAGuZ8DDwHBWzh1AHLDvd4=";
|
2020-07-06 00:10:40 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-03-15 04:50:22 +00:00
|
|
|
|
depsBuildBuild = [
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
|
|
|
|
|
2021-08-07 18:40:56 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
pkg-config
|
2021-08-07 18:50:59 +00:00
|
|
|
|
wayland-scanner
|
2021-08-07 18:40:56 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
scdoc
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
wayland
|
|
|
|
|
pixman
|
|
|
|
|
wayland-protocols
|
|
|
|
|
libxkbcommon
|
|
|
|
|
tllist
|
|
|
|
|
fcft
|
2021-08-07 18:50:59 +00:00
|
|
|
|
] ++ lib.optional enableCairo cairo
|
2022-11-07 16:37:07 +00:00
|
|
|
|
++ lib.optional pngSupport libpng;
|
2021-08-07 18:50:59 +00:00
|
|
|
|
|
|
|
|
|
mesonBuildType = "release";
|
|
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-10-16 04:10:26 +00:00
|
|
|
|
"-Denable-cairo=${if enableCairo then "enabled" else "disabled"}"
|
2021-11-01 02:14:45 +00:00
|
|
|
|
"-Dpng-backend=${if pngSupport then "libpng" else "none"}"
|
2022-11-07 16:37:07 +00:00
|
|
|
|
"-Dsvg-backend=${if svgSupport then "nanosvg" else "none"}"
|
2021-08-07 18:40:56 +00:00
|
|
|
|
];
|
2020-07-06 00:10:40 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Wayland-native application launcher, similar to rofi’s drun mode";
|
|
|
|
|
homepage = "https://codeberg.org/dnkl/fuzzel";
|
2022-11-07 16:37:07 +00:00
|
|
|
|
license = with licenses; [ mit zlib ];
|
|
|
|
|
maintainers = with maintainers; [ fionera polykernel rodrgz ];
|
2020-07-06 00:10:40 +00:00
|
|
|
|
platforms = with platforms; linux;
|
2020-09-19 10:48:24 +00:00
|
|
|
|
changelog = "https://codeberg.org/dnkl/fuzzel/releases/tag/${version}";
|
2020-07-06 00:10:40 +00:00
|
|
|
|
};
|
|
|
|
|
}
|