arc-theme: 2017-05-12 -> 20180715 (#43490)
This commit is contained in:
parent
9390a261dd
commit
ca3231a9f3
@ -1,43 +1,53 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gnome3, gtk-engine-murrine }:
|
{ stdenv, fetchFromGitHub, sassc, autoreconfHook, pkgconfig, gtk3
|
||||||
|
, gnome-themes-standard, gtk-engine-murrine, optipng, inkscape}:
|
||||||
|
|
||||||
let
|
let
|
||||||
# treat versions newer than 3.22 as 3.22
|
|
||||||
gnomeVersion = if stdenv.lib.versionOlder "3.22" gnome3.version then "3.22" else gnome3.version;
|
|
||||||
pname = "arc-theme";
|
pname = "arc-theme";
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
version = "2017-05-12";
|
version = "20180715";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "horst3180";
|
owner = "NicoHood";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "8290cb813f157a22e64ae58ac3dfb5983b0416e6";
|
rev = version;
|
||||||
sha256 = "1lxiw5iq9n62xzs0fks572c5vkz202jigndxaankxb44wcgn9zyf";
|
sha256 = "1kkfnkiih0i3pds5mgd1v9lrdrp4nh4hk42mw7sa4fpbjff4jh6j";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
preBuild = ''
|
||||||
buildInputs = [ gnome3.gtk ];
|
# Shut up inkscape's warnings
|
||||||
|
export HOME="$NIX_BUILD_ROOT"
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig sassc optipng inkscape ];
|
||||||
|
buildInputs = [ gtk3 ];
|
||||||
|
|
||||||
preferLocalBuild = true;
|
propagatedUserEnvPkgs = [ gnome-themes-standard gtk-engine-murrine ];
|
||||||
|
|
||||||
configureFlags = [ "--disable-unity" "--with-gnome=${gnomeVersion}" ];
|
postPatch = ''
|
||||||
|
find . -name render-assets.sh |
|
||||||
|
while read filename
|
||||||
|
do
|
||||||
|
substituteInPlace "$filename" \
|
||||||
|
--replace "/usr/bin/inkscape" "${inkscape.out}/bin/inkscape" \
|
||||||
|
--replace "/usr/bin/optipng" "${optipng.out}/bin/optipng"
|
||||||
|
done
|
||||||
|
patchShebangs .
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = [ "--disable-unity" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/plank/themes
|
|
||||||
cp -r extra/*-Plank $out/share/plank/themes
|
|
||||||
install -Dm644 -t $out/share/doc/${pname}/Chrome extra/Chrome/*.crx
|
|
||||||
install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md
|
install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A flat theme with transparent elements for GTK 3, GTK 2 and Gnome-Shell";
|
description = "A flat theme with transparent elements for GTK 3, GTK 2 and Gnome-Shell";
|
||||||
homepage = https://github.com/horst3180/arc-theme;
|
homepage = https://github.com/NicoHood/arc-theme;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ simonvandel romildo ];
|
maintainers = with maintainers; [ simonvandel romildo ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user