orchis-theme: 2021-06-25 -> 2021-12-13

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Mihai Fufezan 2021-10-17 15:42:16 +03:00
parent 091567a336
commit a4faf5e1d4
No known key found for this signature in database
GPG key ID: 3AC82B48170331D3

View file

@ -5,18 +5,28 @@
, gnome-themes-extra , gnome-themes-extra
, gtk-engine-murrine , gtk-engine-murrine
, sassc , sassc
, accentColor ? "default" , tweaks ? [ ] # can be "solid" "compact" "black" "primary"
}: }:
stdenvNoCC.mkDerivation rec { let
validTweaks = [ "solid" "compact" "black" "primary" ];
unknownTweaks = lib.subtractLists validTweaks tweaks;
in
assert lib.assertMsg (unknownTweaks == [ ]) ''
You entered wrong tweaks: ${toString unknownTweaks}
Valid tweaks are: ${toString validTweaks}
'';
stdenvNoCC.mkDerivation
rec {
pname = "orchis-theme"; pname = "orchis-theme";
version = "2021-06-25"; version = "2021-12-13";
src = fetchFromGitHub { src = fetchFromGitHub {
repo = "Orchis-theme"; repo = "Orchis-theme";
owner = "vinceliuice"; owner = "vinceliuice";
rev = version; rev = version;
sha256 = "sha256-j0nsw1yR1yOckXiIMtzhC3w6kvfzxQQHgwdY6l0OuXw="; sha256 = "sha256-PN2ucGMDzRv4v86X1zVIs9+GkbMWuja2WaSQLFvJYd0=";
}; };
nativeBuildInputs = [ gtk3 sassc ]; nativeBuildInputs = [ gtk3 sassc ];
@ -31,7 +41,7 @@ stdenvNoCC.mkDerivation rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
bash install.sh -d $out/share/themes -t ${accentColor} bash install.sh -d $out/share/themes -t all ${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks}
runHook postInstall runHook postInstall
''; '';