lol
1{ lib, stdenv
2, fetchFromGitHub
3, sassc
4, meson
5, ninja
6, pkg-config
7, gtk3
8, glib
9, gnome
10, gtk-engine-murrine
11, optipng
12, inkscape
13, cinnamon
14}:
15
16stdenv.mkDerivation rec {
17 pname = "arc-theme";
18 version = "20211018";
19
20 src = fetchFromGitHub {
21 owner = "jnsh";
22 repo = pname;
23 rev = version;
24 sha256 = "1rrxm5b7l8kq1h0lm08ck54xljzm8w573mxx904n3rhdg3ri9d63";
25 };
26
27 nativeBuildInputs = [
28 meson
29 ninja
30 pkg-config
31 sassc
32 optipng
33 inkscape
34 gtk3
35 glib # for glib-compile-resources
36 ];
37
38 propagatedUserEnvPkgs = [
39 gnome.gnome-themes-extra
40 gtk-engine-murrine
41 ];
42
43 preBuild = ''
44 # Shut up inkscape's warnings about creating profile directory
45 export HOME="$NIX_BUILD_ROOT"
46 '';
47
48 mesonFlags = [
49 "-Dthemes=cinnamon,gnome-shell,gtk2,gtk3,plank,xfwm,metacity"
50 "-Dvariants=light,darker,dark,lighter"
51 "-Dcinnamon_version=${cinnamon.cinnamon-common.version}"
52 "-Dgnome_shell_version=${gnome.gnome-shell.version}"
53 "-Dgtk3_version=${gtk3.version}"
54 # You will need to patch gdm to make use of this.
55 "-Dgnome_shell_gresource=true"
56 ];
57
58 meta = with lib; {
59 description = "Flat theme with transparent elements for GTK 3, GTK 2 and Gnome Shell";
60 homepage = "https://github.com/jnsh/arc-theme";
61 license = licenses.gpl3Only;
62 platforms = platforms.linux;
63 maintainers = with maintainers; [ simonvandel romildo ];
64 };
65}