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
|
|
|
|
, glib
|
|
|
|
, gnome
|
2020-05-15 21:57:56 +00:00
|
|
|
, gtk-engine-murrine
|
2020-09-25 04:45:31 +00:00
|
|
|
, inkscape
|
|
|
|
, cinnamon
|
2022-03-30 09:31:56 +00:00
|
|
|
, makeFontsConf
|
|
|
|
, python3
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arc-theme";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "20221218";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-05-15 21:57:56 +00:00
|
|
|
owner = "jnsh";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-7VmqsUCeG5GwmrVdt9BJj0eZ/1v+no/05KwGFb7E9ns=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
sassc
|
2020-09-25 04:45:31 +00:00
|
|
|
inkscape
|
2021-05-20 23:08:51 +00:00
|
|
|
glib # for glib-compile-resources
|
2022-03-30 09:31:56 +00:00
|
|
|
python3
|
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
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson/install-file.py
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
# Shut up inkscape's warnings about creating profile directory
|
2022-03-30 09:31:56 +00:00
|
|
|
export HOME="$TMPDIR"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# Fontconfig error: Cannot load default config file: No such file: (null)
|
|
|
|
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
mesonFlags = [
|
2022-03-30 09:31:56 +00:00
|
|
|
# "-Dthemes=cinnamon,gnome-shell,gtk2,gtk3,plank,xfwm,metacity"
|
|
|
|
# "-Dvariants=light,darker,dark,lighter"
|
2021-05-20 23:08:51 +00:00
|
|
|
"-Dcinnamon_version=${cinnamon.cinnamon-common.version}"
|
|
|
|
"-Dgnome_shell_version=${gnome.gnome-shell.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 ];
|
|
|
|
};
|
|
|
|
}
|