2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-05-15 21:57:56 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, sassc
|
2021-05-20 23:08:51 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2020-10-16 20:44:37 +00:00
|
|
|
, pkg-config
|
2020-05-15 21:57:56 +00:00
|
|
|
, gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
, glib
|
|
|
|
, gnome
|
2020-05-15 21:57:56 +00:00
|
|
|
, gtk-engine-murrine
|
|
|
|
, optipng
|
2020-09-25 04:45:31 +00:00
|
|
|
, inkscape
|
|
|
|
, cinnamon
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arc-theme";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "20210412";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-05-15 21:57:56 +00:00
|
|
|
owner = "jnsh";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-BNJirtBtdWsIzQfsJsZzg1zFbJEzZPq1j2qZ+1QjRH8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-10-16 20:44:37 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
sassc
|
|
|
|
optipng
|
2020-09-25 04:45:31 +00:00
|
|
|
inkscape
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
glib # for glib-compile-resources
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.gnome-themes-extra
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
# Shut up inkscape's warnings about creating profile directory
|
|
|
|
export HOME="$NIX_BUILD_ROOT"
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dthemes=cinnamon,gnome-shell,gtk2,gtk3,plank,xfwm"
|
|
|
|
"-Dvariants=light,darker,dark,lighter"
|
|
|
|
"-Dcinnamon_version=${cinnamon.cinnamon-common.version}"
|
|
|
|
"-Dgnome_shell_version=${gnome.gnome-shell.version}"
|
|
|
|
"-Dgtk3_version=${gtk3.version}"
|
|
|
|
# You will need to patch gdm to make use of this.
|
|
|
|
"-Dgnome_shell_gresource=true"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Flat theme with transparent elements for GTK 3, GTK 2 and Gnome Shell";
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://github.com/jnsh/arc-theme";
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-05-15 21:57:56 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ simonvandel romildo ];
|
|
|
|
};
|
|
|
|
}
|