Files
nixpkgs/pkgs/by-name/ar/arc-theme/package.nix
misuzu bb657c39a7 arc-theme: fix build with meson 1.12
Fixes the `common/gnome-shell/meson.build:98:28: ERROR: File .../icons does not exist.` error.
2026-10-01 12:56:05 +03:00

91 lines
2.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
glib,
inkscape,
meson,
ninja,
python3,
sassc,
makeFontsConf,
cinnamon,
gnome-shell,
nix-update-script,
}:
stdenv.mkDerivation {
pname = "arc-theme";
version = "20221218-unstable-2025-10-18";
src = fetchFromGitHub {
owner = "jnsh";
repo = "arc-theme";
rev = "94ac8c7d67d68de0cc688bbd4c3105b9815b446e";
hash = "sha256-vvZvJmsmeYcJT3xVQLg4tmYXEgHprWJls1fbxA3Jxnw=";
};
patches = [
# Fixes `common/gnome-shell/meson.build:98:28: ERROR: File .../icons does not exist.`
# See https://github.com/jnsh/arc-theme/pull/238
./meson_1.12.patch
];
nativeBuildInputs = [
glib # for glib-compile-resources
inkscape
meson
ninja
python3
sassc
];
postPatch = ''
patchShebangs meson/install-file.py
'';
preBuild = ''
# Shut up inkscape's warnings about creating profile directory
export HOME="$TMPDIR"
'';
# Fontconfig error: Cannot load default config file: No such file: (null)
env.FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
mesonFlags = [
(lib.mesonOption "themes" (
lib.concatStringsSep "," [
"cinnamon"
"gnome-shell"
# "gtk2" (no longer supported)
"gtk3"
"gtk4"
"metacity"
"plank"
"unity"
"xfwm"
]
))
(lib.mesonOption "cinnamon_version" cinnamon.version)
(lib.mesonOption "gnome_shell_version" gnome-shell.version)
# You will need to patch gdm to make use of this.
(lib.mesonBool "gnome_shell_gresource" true)
];
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Flat theme with transparent elements for GTK 3, GTK 2 and Gnome Shell";
homepage = "https://github.com/jnsh/arc-theme";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
kira-bruneau
romildo
simonvandel
];
};
}