2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-05-13 21:35:17 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, sassc
|
2021-05-07 21:01:02 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-05-13 21:35:17 +02:00
|
|
|
, gtk-engine-murrine
|
2020-09-10 20:38:25 +02:00
|
|
|
, inkscape
|
2020-09-05 21:36:17 +02:00
|
|
|
, cinnamon
|
2022-03-22 06:27:45 +01:00
|
|
|
, makeFontsConf
|
|
|
|
, python3
|
2020-05-13 21:35:17 +02:00
|
|
|
}:
|
2015-10-24 18:55:26 +02:00
|
|
|
|
2017-12-19 23:08:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-02-16 23:58:09 +01:00
|
|
|
pname = "arc-theme";
|
2022-12-19 17:55:09 +01:00
|
|
|
version = "20221218";
|
2016-06-03 13:22:40 +02:00
|
|
|
|
2015-10-24 18:55:26 +02:00
|
|
|
src = fetchFromGitHub {
|
2020-05-13 21:35:17 +02:00
|
|
|
owner = "jnsh";
|
|
|
|
repo = pname;
|
2020-05-13 22:01:10 +02:00
|
|
|
rev = version;
|
2022-12-19 17:55:09 +01:00
|
|
|
sha256 = "sha256-7VmqsUCeG5GwmrVdt9BJj0eZ/1v+no/05KwGFb7E9ns=";
|
2015-10-24 18:55:26 +02:00
|
|
|
};
|
|
|
|
|
2018-10-24 16:57:47 +02:00
|
|
|
nativeBuildInputs = [
|
2021-05-07 21:01:02 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2018-10-24 16:57:47 +02:00
|
|
|
sassc
|
2020-09-10 20:38:25 +02:00
|
|
|
inkscape
|
2021-05-07 21:01:02 +02:00
|
|
|
glib # for glib-compile-resources
|
2022-03-22 06:27:45 +01:00
|
|
|
python3
|
2018-10-24 16:57:47 +02:00
|
|
|
];
|
2018-09-26 15:56:47 +02:00
|
|
|
|
2018-10-24 16:57:47 +02:00
|
|
|
propagatedUserEnvPkgs = [
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.gnome-themes-extra
|
2018-10-24 16:57:47 +02:00
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
2016-05-14 18:05:03 +02:00
|
|
|
|
2022-03-22 06:27:45 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson/install-file.py
|
|
|
|
'';
|
|
|
|
|
2018-10-24 16:57:47 +02:00
|
|
|
preBuild = ''
|
|
|
|
# Shut up inkscape's warnings about creating profile directory
|
2022-03-22 06:27:45 +01:00
|
|
|
export HOME="$TMPDIR"
|
2018-10-24 16:57:47 +02:00
|
|
|
'';
|
|
|
|
|
2022-03-22 06:27:45 +01:00
|
|
|
# Fontconfig error: Cannot load default config file: No such file: (null)
|
|
|
|
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
|
|
|
|
2021-05-07 21:01:02 +02:00
|
|
|
mesonFlags = [
|
2022-03-22 06:27:45 +01:00
|
|
|
# "-Dthemes=cinnamon,gnome-shell,gtk2,gtk3,plank,xfwm,metacity"
|
|
|
|
# "-Dvariants=light,darker,dark,lighter"
|
2021-05-07 21:01:02 +02: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"
|
2019-09-13 15:19:51 +02:00
|
|
|
];
|
2016-10-14 11:58:59 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-13 15:19:51 +02:00
|
|
|
description = "Flat theme with transparent elements for GTK 3, GTK 2 and Gnome Shell";
|
2020-05-13 21:35:17 +02:00
|
|
|
homepage = "https://github.com/jnsh/arc-theme";
|
2020-10-13 14:33:15 +02:00
|
|
|
license = licenses.gpl3Only;
|
2020-05-13 21:35:17 +02:00
|
|
|
platforms = platforms.linux;
|
2016-06-03 13:22:40 +02:00
|
|
|
maintainers = with maintainers; [ simonvandel romildo ];
|
2015-10-24 18:55:26 +02:00
|
|
|
};
|
|
|
|
}
|