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 21:35:17 +02:00
, fetchFromGitHub
, sassc
, meson
, ninja
, glib
, gnome
2020-05-13 21:35:17 +02:00
, gtk-engine-murrine
, 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
}:
stdenv.mkDerivation rec {
2019-02-16 23:58:09 +01:00
pname = "arc-theme";
2022-12-19 17:55:09 +01:00
version = "20221218";
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=";
};
2018-10-24 16:57:47 +02:00
nativeBuildInputs = [
meson
ninja
2018-10-24 16:57:47 +02:00
sassc
inkscape
glib # for glib-compile-resources
2022-03-22 06:27:45 +01:00
python3
2018-10-24 16:57:47 +02:00
];
2018-10-24 16:57:47 +02:00
propagatedUserEnvPkgs = [
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 = [ ]; };
mesonFlags = [
2022-03-22 06:27:45 +01: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 11:58:59 +02:00
meta = with lib; {
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;
maintainers = with maintainers; [ simonvandel romildo ];
};
}