depot/third_party/nixpkgs/pkgs/data/themes/arc/default.nix
Default email 9c6d255489 Project import generated by Copybara.
GitOrigin-RevId: 8133b9cb5f7c00d4fe31c8c2c4b525bc2650bfc0
2020-10-16 20:44:37 +00:00

63 lines
1.2 KiB
Nix

{ stdenv
, fetchFromGitHub
, sassc
, autoreconfHook
, pkg-config
, gtk3
, gnome3
, gtk-engine-murrine
, optipng
, inkscape
, cinnamon
}:
stdenv.mkDerivation rec {
pname = "arc-theme";
version = "20201013";
src = fetchFromGitHub {
owner = "jnsh";
repo = pname;
rev = version;
sha256 = "1x2l1mwjx68dwf3jb1i90c1q8nqsl1wf2zggcn8im6590k5yv39s";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
sassc
optipng
inkscape
gtk3
];
propagatedUserEnvPkgs = [
gnome3.gnome-themes-extra
gtk-engine-murrine
];
enableParallelBuilding = true;
preBuild = ''
# Shut up inkscape's warnings about creating profile directory
export HOME="$NIX_BUILD_ROOT"
'';
configureFlags = [
"--with-cinnamon=${cinnamon.cinnamon-common.version}"
"--with-gnome-shell=${gnome3.gnome-shell.version}"
"--disable-unity"
];
postInstall = ''
install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md
'';
meta = with stdenv.lib; {
description = "Flat theme with transparent elements for GTK 3, GTK 2 and Gnome Shell";
homepage = "https://github.com/jnsh/arc-theme";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ simonvandel romildo ];
};
}