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
95 lines
2.1 KiB
Nix
95 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
gdk-pixbuf,
|
|
gnome-themes-extra,
|
|
gtk-engine-murrine,
|
|
jdupes,
|
|
librsvg,
|
|
sassc,
|
|
which,
|
|
themeVariants ? [ ], # default: blue
|
|
colorVariants ? [ ], # default: all
|
|
tweaks ? [ ],
|
|
}:
|
|
|
|
let
|
|
pname = "qogir-theme";
|
|
|
|
in
|
|
lib.checkListOfEnum "${pname}: theme variants" [ "default" "manjaro" "ubuntu" "all" ] themeVariants
|
|
lib.checkListOfEnum
|
|
"${pname}: color variants"
|
|
[ "standard" "light" "dark" ]
|
|
colorVariants
|
|
lib.checkListOfEnum
|
|
"${pname}: tweaks"
|
|
[ "image" "square" "round" ]
|
|
tweaks
|
|
|
|
stdenv.mkDerivation
|
|
rec {
|
|
inherit pname;
|
|
version = "2025-08-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = "qogir-theme";
|
|
rev = version;
|
|
hash = "sha256-LS1BE2jR08/JW2+rixYhTmctAfK2yZVWIE4QnAX9PDQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
jdupes
|
|
sassc
|
|
which
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf # pixbuf engine for Gtk2
|
|
gnome-themes-extra # adwaita engine for Gtk2
|
|
librsvg # pixbuf loader for svg
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine # murrine engine for Gtk2
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs install.sh clean-old-theme.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/themes
|
|
|
|
name= HOME="$TMPDIR" ./install.sh \
|
|
${lib.optionalString (themeVariants != [ ]) "--theme " + toString themeVariants} \
|
|
${lib.optionalString (colorVariants != [ ]) "--color " + toString colorVariants} \
|
|
${lib.optionalString (tweaks != [ ]) "--tweaks " + toString tweaks} \
|
|
--dest $out/share/themes
|
|
|
|
mkdir -p $out/share/doc/qogir-theme
|
|
cp -a src/firefox $out/share/doc/qogir-theme
|
|
|
|
rm $out/share/themes/*/{AUTHORS,COPYING}
|
|
|
|
jdupes --quiet --link-soft --recurse $out/share
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Flat Design theme for GTK based desktop environments";
|
|
homepage = "https://github.com/vinceliuice/Qogir-theme";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|