1{
2 cava,
3 fetchFromGitHub,
4 nix-update-script,
5 meson,
6 ninja,
7}:
8cava.overrideAttrs (old: rec {
9 pname = "libcava";
10 # fork may not be updated when we update upstream
11 version = "0.10.4";
12
13 src = fetchFromGitHub {
14 owner = "LukashonakV";
15 repo = "cava";
16 tag = version;
17 hash = "sha256-9eTDqM+O1tA/3bEfd1apm8LbEcR9CVgELTIspSVPMKM=";
18 };
19
20 nativeBuildInputs = old.nativeBuildInputs ++ [
21 meson
22 ninja
23 ];
24
25 # Automatically enable all optional dependencies
26 # (instead, Nix sets this option to "enabled" which
27 # forces all optional dependencies to be required
28 # or disabled individually)
29 mesonAutoFeatures = "auto";
30
31 dontVersionCheck = true; # no `bin/cava`
32 passthru.updateScript = nix-update-script { };
33
34 meta = old.meta // {
35 homepage = "https://github.com/LukashonakV/cava";
36 description = "Fork of CAVA to build it as a shared library";
37 };
38})