Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions pkgs/by-name/li/libcava/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
cava,
fetchFromGitHub,
nix-update-script,
meson,
ninja,
}:
cava.overrideAttrs (old: rec {
pname = "libcava";
# fork may not be updated when we update upstream
version = "0.10.3";

src = fetchFromGitHub {
owner = "LukashonakV";
repo = "cava";
tag = version;
hash = "sha256-ZDFbI69ECsUTjbhlw2kHRufZbQMu+FQSMmncCJ5pagg=";
};

nativeBuildInputs = old.nativeBuildInputs ++ [
meson
ninja
];

# Automatically enable all optional dependencies
# (instead, Nix sets this option to "enabled" which
# forces all optional dependencies to be required
# or disabled individually)
mesonAutoFeatures = "auto";

dontVersionCheck = true; # no `bin/cava`
passthru.updateScript = nix-update-script { };

meta = old.meta // {
homepage = "https://github.com/LukashonakV/cava";
description = "Fork of CAVA to build it as a shared library";
};
})
10 changes: 1 addition & 9 deletions pkgs/by-name/wa/waybar/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
hyprland,
iniparser,
jsoncpp,
libcava,
libdbusmenu-gtk3,
libevdev,
libinotify-kqueue,
Expand Down Expand Up @@ -74,15 +75,6 @@
waybar,
}:

let
# Derived from subprojects/cava.wrap
libcava.src = fetchFromGitHub {
owner = "LukashonakV";
repo = "cava";
rev = "0.10.3";
hash = "sha256-ZDFbI69ECsUTjbhlw2kHRufZbQMu+FQSMmncCJ5pagg=";
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "waybar";
version = "0.11.0";
Expand Down
Loading