openvswitch: generalize builder
[NixPkgs.git] / pkgs / data / themes / arc / default.nix
blobef05338cf5aef52479a5c257c58179ceb90df6dd
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
15 stdenv.mkDerivation rec {
16   pname = "arc-theme";
17   version = "20220405";
19   src = fetchFromGitHub {
20     owner = "jnsh";
21     repo = pname;
22     rev = version;
23     sha256 = "sha256-CBj/SpBWH5xdNCQSJquqIntcmfARI7Cud76Tp8txXL4=";
24   };
26   nativeBuildInputs = [
27     meson
28     ninja
29     sassc
30     inkscape
31     glib # for glib-compile-resources
32     python3
33   ];
35   propagatedUserEnvPkgs = [
36     gnome.gnome-themes-extra
37     gtk-engine-murrine
38   ];
40   postPatch = ''
41     patchShebangs meson/install-file.py
42   '';
44   preBuild = ''
45     # Shut up inkscape's warnings about creating profile directory
46     export HOME="$TMPDIR"
47   '';
49   # Fontconfig error: Cannot load default config file: No such file: (null)
50   FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
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   ];
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   };