2022-12-06 17:44:26 +00:00
|
|
|
{ lib
|
2024-01-10 18:17:46 +00:00
|
|
|
, pkgs
|
2023-02-16 11:36:28 +00:00
|
|
|
, waybar
|
2022-12-06 17:44:26 +00:00
|
|
|
, version
|
|
|
|
}:
|
2024-01-10 18:17:46 +00:00
|
|
|
let
|
2024-02-20 09:51:42 +00:00
|
|
|
libcava = rec {
|
|
|
|
version = "0.10.1";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "LukashonakV";
|
|
|
|
repo = "cava";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-iIYKvpOWafPJB5XhDOSIW9Mb4I3A4pcgIIPQdQYEqUw=";
|
|
|
|
};
|
2024-01-10 18:17:46 +00:00
|
|
|
};
|
|
|
|
in
|
2024-02-20 09:51:42 +00:00
|
|
|
(waybar.overrideAttrs (
|
|
|
|
oldAttrs: {
|
|
|
|
inherit version;
|
2022-12-06 17:44:26 +00:00
|
|
|
|
2024-02-20 09:51:42 +00:00
|
|
|
src = lib.cleanSourceWith {
|
|
|
|
filter = name: type: type != "regular" || !lib.hasSuffix ".nix" name;
|
|
|
|
src = lib.cleanSource ../.;
|
|
|
|
};
|
|
|
|
|
|
|
|
mesonFlags = lib.remove "-Dgtk-layer-shell=enabled" oldAttrs.mesonFlags;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
pushd "$sourceRoot"
|
|
|
|
cp -R --no-preserve=mode,ownership ${libcava.src} subprojects/cava-${libcava.version}
|
|
|
|
patchShebangs .
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
))
|