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;
|
|
|
|
|
|
2024-04-12 07:36:53 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-07-06 00:10:40 +00:00
|
|
|
|
pname = "fuzzel";
|
2024-04-12 07:36:53 +00:00
|
|
|
|
version = "1.10.0";
|
2020-07-06 00:10:40 +00:00
|
|
|
|
|
2021-08-07 18:38:31 +00:00
|
|
|
|
src = fetchFromGitea {
|
|
|
|
|
domain = "codeberg.org";
|
|
|
|
|
owner = "dnkl";
|
2024-04-12 07:36:53 +00:00
|
|
|
|
repo = "fuzzel";
|
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
|
hash = "sha256-4wTwsjnmPsg+kc05izeyXilzDO0LpD3g3PRBqgLPK2I=";
|
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; {
|
2023-08-11 01:56:27 +00:00
|
|
|
|
changelog = "https://codeberg.org/dnkl/fuzzel/releases/tag/${version}";
|
2020-07-06 00:10:40 +00:00
|
|
|
|
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 ];
|
2023-08-11 01:56:27 +00:00
|
|
|
|
mainProgram = "fuzzel";
|
2022-11-07 16:37:07 +00:00
|
|
|
|
maintainers = with maintainers; [ fionera polykernel rodrgz ];
|
2020-07-06 00:10:40 +00:00
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
|
};
|
2024-04-12 07:36:53 +00:00
|
|
|
|
})
|