12 enableAlsaWidget ? true,
13 enablePulseaudioWidget ? true,
19 libraryPath = lib.makeLibraryPath [
24 rustPlatform.buildRustPackage {
25 inherit pname version;
27 buildNoDefaultFeatures = true;
33 ++ lib.optionals enableAlsaWidget [ "alsa-widget" ]
34 ++ lib.optionals enablePulseaudioWidget [ "pulseaudio-widget" ];
36 src = fetchFromGitHub {
37 owner = "kennylevinsen";
40 hash = "sha256-ZzsBD3KKTT+JGiFCpdumPyVAE2gEJvzCq+nRnK3RdxI=";
45 nativeBuildInputs = [ pkg-config ];
51 ++ lib.optionals enableAlsaWidget [ alsa-lib ]
52 ++ lib.optionals enablePulseaudioWidget [ libpulseaudio ];
55 ./0001-Update-Cargo.lock.patch
56 ./0002-Update-fontconfig.patch
59 cargoHash = "sha256-Y7nhj8VpO6sEzVkM3uPv8Tlk2jPn3c/uPJqFc/HjHI0=";
64 patchelf --set-rpath ${libraryPath}:$(patchelf --print-rpath $out/bin/wldash) $out/bin/wldash
68 description = "Wayland launcher/dashboard";
69 homepage = "https://github.com/kennylevinsen/wldash";
70 license = lib.licenses.gpl3;
71 maintainers = with lib.maintainers; [ bbenno ];
72 mainProgram = "wldash";
73 platforms = lib.platforms.linux;
74 sourceProvenance = with lib.sourceTypes; [ fromSource ];