Skip to content

Commit 165fa89

Browse files
committedSep 7, 2017
arc-theme: Fix build with gnome 3.24
(cherry picked from commit fefdc00)
1 parent b50193f commit 165fa89

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed
 

‎pkgs/misc/themes/arc/default.nix

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gnome3, gtk-engine-murrine }:
22

3-
stdenv.mkDerivation rec {
4-
name = "${pname}-${version}";
3+
let
4+
# treat versions newer than 3.22 as 3.22
5+
gnomeVersion = if stdenv.lib.versionOlder "3.22" gnome3.version then "3.22" else gnome3.version;
56
pname = "arc-theme";
6-
version = "2016-11-25";
7+
8+
in stdenv.mkDerivation rec {
9+
name = "${pname}-${version}";
10+
version = "2017-05-12";
711

812
src = fetchFromGitHub {
9-
owner = "horst3180";
10-
repo = pname;
11-
rev = "d641d3de1641a9aa0a0f6ac1bacec91d9fdd3326";
12-
sha256 = "06ysd19bpqsng2bp2gqzn0wpjhldxgwvlzngrs6mkm9hr7ky5z00";
13+
owner = "horst3180";
14+
repo = pname;
15+
rev = "8290cb813f157a22e64ae58ac3dfb5983b0416e6";
16+
sha256 = "1lxiw5iq9n62xzs0fks572c5vkz202jigndxaankxb44wcgn9zyf";
1317
};
1418

1519
nativeBuildInputs = [ autoreconfHook pkgconfig ];
@@ -18,7 +22,7 @@ stdenv.mkDerivation rec {
1822

1923
preferLocalBuild = true;
2024

21-
configureFlags = [ "--disable-unity" "--with-gnome=${gnome3.version}" ];
25+
configureFlags = [ "--disable-unity" "--with-gnome=${gnomeVersion}" ];
2226

2327
postInstall = ''
2428
mkdir -p $out/share/plank/themes
@@ -30,9 +34,9 @@ stdenv.mkDerivation rec {
3034

3135
meta = with stdenv.lib; {
3236
description = "A flat theme with transparent elements for GTK 3, GTK 2 and Gnome-Shell";
33-
homepage = https://github.com/horst3180/arc-theme;
34-
license = licenses.gpl3;
35-
platforms = platforms.unix;
37+
homepage = https://github.com/horst3180/arc-theme;
38+
license = licenses.gpl3;
3639
maintainers = with maintainers; [ simonvandel romildo ];
40+
platforms = platforms.unix;
3741
};
3842
}

0 commit comments

Comments
 (0)
Please sign in to comment.