Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
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 = [ ];
|
|
};
|
|
})
|