Files

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

59 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenvNoCC,
fetchFromGitHub,
python3,
gnome-shell,
dconf,
writableTmpDirAsHomeHook,
colors ? [ "all" ], # Default to install all available colors
additionalInstallationTweaks ? [ ], # Additional installation tweaks
}:
assert lib.assertMsg (colors != [ ]) "The `colors` list can not be empty";
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "marble-shell-theme";
version = "48.3.2";
src = fetchFromGitHub {
owner = "imarkoff";
repo = "Marble-shell-theme";
tag = finalAttrs.version;
hash = "sha256-EYQmtVq852YG4Pmk6Nj4RF+aZUJmIZwhegHIR+Xxu8A=";
};
nativeBuildInputs = [
python3
gnome-shell
dconf
writableTmpDirAsHomeHook
];
postPatch = ''
substituteInPlace scripts/config.py \
--replace-fail "~/.themes" ".themes"
'';
installPhase = ''
runHook preInstall
python install.py ${
lib.escapeShellArgs (map (color: "--${color}") colors)
} ${lib.escapeShellArgs additionalInstallationTweaks}
mkdir -p $out/share
cp -r .themes $out/share/themes
runHook postInstall
'';
meta = {
description = "Shell theme for GNOME DE";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
homepage = "https://github.com/imarkoff/Marble-shell-theme";
changelog = "https://github.com/imarkoff/Marble-shell-theme/releases/tag/${finalAttrs.version}";
maintainers = [ ];
};
})