nixpkgs-suyu/pkgs/data/themes/arc/default.nix
Jan Tojnar 468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00

63 lines
1.2 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, sassc
, autoreconfHook
, pkg-config
, gtk3
, gnome
, gtk-engine-murrine
, optipng
, inkscape
, cinnamon
}:
stdenv.mkDerivation rec {
pname = "arc-theme";
version = "20210127";
src = fetchFromGitHub {
owner = "jnsh";
repo = pname;
rev = version;
sha256 = "sha256-P7YZTD5bAWNWepL7qsZZAMf8ujzNbHOj/SLx8Fw3bi4=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
sassc
optipng
inkscape
gtk3
];
propagatedUserEnvPkgs = [
gnome.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=${gnome.gnome-shell.version}"
"--disable-unity"
];
postInstall = ''
install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md
'';
meta = with 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 ];
};
}