File tree Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Original file line number Diff line number Diff line change 4
4
, version
5
5
} :
6
6
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
+ } ;
15
15
} ;
16
16
in
17
- ( waybar . overrideAttrs ( oldAttrs : rec {
18
- inherit version ;
17
+ ( waybar . overrideAttrs (
18
+ oldAttrs : {
19
+ inherit version ;
19
20
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
+ ) )
You can’t perform that action at this time.
0 commit comments