diff options
author | José Romildo <malaquias@gmail.com> | 2022-07-18 16:00:52 -0300 |
---|---|---|
committer | José Romildo <malaquias@gmail.com> | 2022-07-18 16:00:52 -0300 |
commit | 0c4eb785f647ca4bda9938ce361f48f3f64ecac5 (patch) | |
tree | 0bb385bbe55ac947f025a474896722921b169cf0 | |
parent | fc9e22fca12e71f5a43ab616aa0e669392174e12 (diff) | |
download | nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.tar nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.tar.gz nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.tar.bz2 nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.tar.lz nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.tar.xz nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.tar.zst nixpkgs-0c4eb785f647ca4bda9938ce361f48f3f64ecac5.zip |
colloid-gtk-theme: init at 2022-07-18
-rw-r--r-- | pkgs/data/themes/colloid-gtk-theme/default.nix | 76 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 78 insertions, 0 deletions
diff --git a/pkgs/data/themes/colloid-gtk-theme/default.nix b/pkgs/data/themes/colloid-gtk-theme/default.nix new file mode 100644 index 00000000000..dabe19d68d7 --- /dev/null +++ b/pkgs/data/themes/colloid-gtk-theme/default.nix @@ -0,0 +1,76 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, gitUpdater +, gnome-themes-extra +, gtk-engine-murrine +, jdupes +, sassc +, themeVariants ? [] # default: blue +, colorVariants ? [] # default: all +, sizeVariants ? [] # default: standard +, tweaks ? [] +}: + +let + pname = "colloid-gtk-theme"; + +in +lib.checkListOfEnum "${pname}: theme variants" [ "default" "purple" "pink" "red" "orange" "yellow" "green" "teal" "grey" "all" ] themeVariants +lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants +lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVariants +lib.checkListOfEnum "${pname}: tweaks" [ "nord" "black" "dracula" "rimless" "normal" ] tweaks + +stdenvNoCC.mkDerivation rec { + inherit pname; + version = "2022-07-18"; + + src = fetchFromGitHub { + owner = "vinceliuice"; + repo = pname; + rev = version; + hash = "sha256-dWYRTwfQRMBdg+htxpWatF325rToaovF/43LxX6I1GI="; + }; + + nativeBuildInputs = [ + jdupes + sassc + ]; + + buildInputs = [ + gnome-themes-extra + ]; + + propagatedUserEnvPkgs = [ + gtk-engine-murrine + ]; + + postPatch = '' + patchShebangs install.sh clean-old-theme.sh + ''; + + installPhase = '' + runHook preInstall + + name= HOME="$TMPDIR" ./install.sh \ + ${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \ + ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \ + ${lib.optionalString (sizeVariants != []) "--size " + builtins.toString sizeVariants} \ + ${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks} \ + --dest $out/share/themes + + jdupes --link-soft --recurse $out/share + + runHook postInstall + ''; + + passthru.updateScript = gitUpdater { inherit pname version; }; + + meta = with lib; { + description = "A modern and clean Gtk theme"; + homepage = "https://github.com/vinceliuice/Colloid-gtk-theme"; + license = licenses.gpl3Only; + platforms = platforms.unix; + maintainers = [ maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6c8af61fe2f..6454e1ce484 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24630,6 +24630,8 @@ with pkgs; cnstrokeorder = callPackage ../data/fonts/cnstrokeorder {}; + colloid-gtk-theme = callPackage ../data/themes/colloid-gtk-theme { }; + comfortaa = callPackage ../data/fonts/comfortaa {}; comic-mono = callPackage ../data/fonts/comic-mono { }; |