Skip to content

Commit 1b4008c

Browse files
authored
Merge pull request #2943 from iynaix/master
nix: update libcava version and removal of gtk-layer-shell meson option
2 parents a459329 + 00ee538 commit 1b4008c

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

nix/default.nix

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,32 @@
44
, version
55
}:
66
let
7-
catch2_3 = {
8-
src = pkgs.fetchFromGitHub
9-
{
10-
owner = "catchorg";
11-
repo = "Catch2";
12-
rev = "v3.5.1";
13-
hash = "sha256-OyYNUfnu6h1+MfCF8O+awQ4Usad0qrdCtdZhYgOY+Vw=";
14-
};
7+
libcava = rec {
8+
version = "0.10.1";
9+
src = pkgs.fetchFromGitHub {
10+
owner = "LukashonakV";
11+
repo = "cava";
12+
rev = version;
13+
hash = "sha256-iIYKvpOWafPJB5XhDOSIW9Mb4I3A4pcgIIPQdQYEqUw=";
14+
};
1515
};
1616
in
17-
(waybar.overrideAttrs (oldAttrs: rec {
18-
inherit version;
17+
(waybar.overrideAttrs (
18+
oldAttrs: {
19+
inherit version;
1920

20-
src = lib.cleanSourceWith {
21-
filter = name: type: type != "regular" || !lib.hasSuffix ".nix" name;
22-
src = lib.cleanSource ../.;
23-
};
24-
})
25-
).override {
26-
catch2_3 = pkgs.catch2_3.overrideAttrs (oldAttrs: {
27-
version = "3.5.1";
28-
src = catch2_3.src;
29-
});
30-
}
21+
src = lib.cleanSourceWith {
22+
filter = name: type: type != "regular" || !lib.hasSuffix ".nix" name;
23+
src = lib.cleanSource ../.;
24+
};
25+
26+
mesonFlags = lib.remove "-Dgtk-layer-shell=enabled" oldAttrs.mesonFlags;
27+
28+
postUnpack = ''
29+
pushd "$sourceRoot"
30+
cp -R --no-preserve=mode,ownership ${libcava.src} subprojects/cava-${libcava.version}
31+
patchShebangs .
32+
popd
33+
'';
34+
}
35+
))

0 commit comments

Comments
 (0)