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