jasper-gtk-theme: init at 0-unstable-2025-04-02

+102
+102
pkgs/by-name/ja/jasper-gtk-theme/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchFromGitHub, 5 + gnome-themes-extra, 6 + gtk-engine-murrine, 7 + jdupes, 8 + sassc, 9 + themeVariants ? [ ], # default: teal 10 + colorVariants ? [ ], # default: all 11 + sizeVariants ? [ ], # default: standard 12 + tweaks ? [ ], 13 + }: 14 + 15 + let 16 + pname = "jasper-gtk-theme"; 17 + 18 + in 19 + lib.checkListOfEnum "${pname}: theme variants" 20 + [ 21 + "default" 22 + "purple" 23 + "pink" 24 + "red" 25 + "orange" 26 + "yellow" 27 + "green" 28 + "blue" 29 + "grey" 30 + "all" 31 + ] 32 + themeVariants 33 + lib.checkListOfEnum 34 + "${pname}: color variants" 35 + [ "standard" "light" "dark" ] 36 + colorVariants 37 + lib.checkListOfEnum 38 + "${pname}: size variants" 39 + [ "standard" "compact" ] 40 + sizeVariants 41 + lib.checkListOfEnum 42 + "${pname}: tweaks" 43 + [ 44 + "nord" 45 + "dracula" 46 + "black" 47 + "macos" 48 + ] 49 + tweaks 50 + 51 + stdenvNoCC.mkDerivation 52 + rec { 53 + inherit pname; 54 + version = "0-unstable-2025-04-02"; 55 + 56 + src = fetchFromGitHub { 57 + owner = "vinceliuice"; 58 + repo = "Jasper-gtk-theme"; 59 + rev = "71cb99a6618d839b1058cb8e6660a3b2f63aca70"; 60 + hash = "sha256-ZWPUyVszDPUdzttAJuIA9caDpP4SQ7mIbCoczxwvsus="; 61 + }; 62 + 63 + nativeBuildInputs = [ 64 + jdupes 65 + sassc 66 + ]; 67 + 68 + buildInputs = [ 69 + gnome-themes-extra 70 + ]; 71 + 72 + propagatedUserEnvPkgs = [ 73 + gtk-engine-murrine 74 + ]; 75 + 76 + postPatch = '' 77 + patchShebangs install.sh 78 + ''; 79 + 80 + installPhase = '' 81 + runHook preInstall 82 + 83 + name= HOME="$TMPDIR" ./install.sh \ 84 + ${lib.optionalString (themeVariants != [ ]) "--theme " + builtins.toString themeVariants} \ 85 + ${lib.optionalString (colorVariants != [ ]) "--color " + builtins.toString colorVariants} \ 86 + ${lib.optionalString (sizeVariants != [ ]) "--size " + builtins.toString sizeVariants} \ 87 + ${lib.optionalString (tweaks != [ ]) "--tweaks " + builtins.toString tweaks} \ 88 + --dest $out/share/themes 89 + 90 + jdupes --quiet --link-soft --recurse $out/share 91 + 92 + runHook postInstall 93 + ''; 94 + 95 + meta = { 96 + description = "Modern and clean Gtk theme"; 97 + homepage = "https://github.com/vinceliuice/Jasper-gtk-theme"; 98 + license = lib.licenses.gpl3Only; 99 + platforms = lib.platforms.unix; 100 + maintainers = [ lib.maintainers.romildo ]; 101 + }; 102 + }