Unverified Commit bb0237e7 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

libcava: init at 0.10.3 (#368312)

parents 781fcd60 2a2e1459
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  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";
  };
})
+1 −9
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
  hyprland,
  iniparser,
  jsoncpp,
  libcava,
  libdbusmenu-gtk3,
  libevdev,
  libinotify-kqueue,
@@ -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";