3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/themes/arc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.5 KiB
Nix
Raw Normal View History

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