depot/third_party/nixpkgs/pkgs/data/themes/arc/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

62 lines
1.2 KiB
Nix

{ stdenv
, fetchFromGitHub
, sassc
, autoreconfHook
, pkgconfig
, gtk3
, gnome3
, gtk-engine-murrine
, optipng
, inkscape
}:
stdenv.mkDerivation rec {
pname = "arc-theme";
version = "20200513";
src = fetchFromGitHub {
owner = "jnsh";
repo = pname;
rev = version;
sha256 = "1xiaf31v3j040hflhf09kpznc93a5fqs92m5jf79y46w3dgpia0p";
};
nativeBuildInputs = [
autoreconfHook
pkgconfig
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-gnome-shell=${gnome3.gnome-shell.version}"
"--disable-cinnamon" # not equipped to test
"--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.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ simonvandel romildo ];
};
}