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
|
|
|
|
|
, 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";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
version = "1.9.1";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
|
src = fetchFromGitea {
|
|
|
|
|
domain = "codeberg.org";
|
|
|
|
|
owner = "dnkl";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
repo = pname;
|
2021-08-08 23:34:03 +00:00
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
hash = "sha256-Va/Rm35jqxDlIfQdrpZ41qrW8YzWmm1LWra76AW1xUw=";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
|
depsBuildBuild = [
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
|
|
|
|
|
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-12-17 10:02:37 +00:00
|
|
|
|
++ lib.optional pngSupport libpng;
|
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"}"
|
2022-12-17 10:02:37 +00:00
|
|
|
|
"-Dsvg-backend=${if svgSupport then "nanosvg" 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";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
license = with licenses; [ mit zlib ];
|
|
|
|
|
maintainers = with maintainers; [ fionera polykernel rodrgz ];
|
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
|
|
|
|
};
|
|
|
|
|
}
|