summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD3vil0p3r <vozaanthony@gmail.com>2024-06-30 02:17:10 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-07-09 14:29:30 +0000
commitab2cde66dace47cd0a423b9ed7f379facfe04d4e (patch)
treeab640de8febd35fe03de5cb0c57ced2e3387b40f
parentMerge pull request #325821 from JohnRTitor/backport-vscode (diff)
downloadnixpkgs-origin/backport-323487-to-release-24.05.tar.gz
nightfox-gtk-theme: unstable-2023-05-28 -> 0-unstable-2024-06-27origin/backport-323487-to-release-24.05
(cherry picked from commit 70aff8fd406524510c3377b928a0122fec2e25ee)
-rw-r--r--pkgs/by-name/ni/nightfox-gtk-theme/package.nix48
1 files changed, 32 insertions, 16 deletions
diff --git a/pkgs/by-name/ni/nightfox-gtk-theme/package.nix b/pkgs/by-name/ni/nightfox-gtk-theme/package.nix
index 2e19c9ea50e2..55f4101611ed 100644
--- a/pkgs/by-name/ni/nightfox-gtk-theme/package.nix
+++ b/pkgs/by-name/ni/nightfox-gtk-theme/package.nix
@@ -1,35 +1,51 @@
-{ lib
-, stdenvNoCC
-, fetchFromGitHub
-, gnome-themes-extra
-, gtk-engine-murrine
+{
+ lib,
+ stdenvNoCC,
+ fetchFromGitHub,
+ gnome,
+ sassc,
+ gnome-themes-extra,
+ gtk-engine-murrine,
+ colorVariants ? [] # default: install all icons
}:
-stdenvNoCC.mkDerivation {
+let
pname = "nightfox-gtk-theme";
- version = "unstable-2023-05-28";
+ colorVariantList = [
+ "dark"
+ "light"
+ ];
+
+in
+lib.checkListOfEnum "${pname}: colorVariants" colorVariantList colorVariants
+
+stdenvNoCC.mkDerivation {
+ inherit pname;
+ version = "0-unstable-2024-06-27";
src = fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = "Nightfox-GTK-Theme";
- rev = "a8b01a28f2d1d9dd57d98d3708602b0d72340338";
- hash = "sha256-GrlKYCqO9vgRbPdPhugPBg2rYtDxzbQwRPtTBIyIyx4=";
+ rev = "ef4e6e1fa3efe2a5d838d61191776abfe4d87766";
+ hash = "sha256-RsDEHauz9jQs1rqsoKbL/s0Vst3GzJXyGsE3uFtLjCY=";
};
- propagatedUserEnvPkgs = [
- gtk-engine-murrine
- ];
+ propagatedUserEnvPkgs = [ gtk-engine-murrine ];
- buildInputs = [
- gnome-themes-extra
- ];
+ nativeBuildInputs = [ gnome.gnome-shell sassc ];
+ buildInputs = [ gnome-themes-extra ];
dontBuild = true;
+ postPatch = ''
+ patchShebangs themes/install.sh
+ '';
+
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes
- cp -a themes/* $out/share/themes
+ cd themes
+ ./install.sh -n Nightfox -c ${lib.concatStringsSep " " (if colorVariants != [] then colorVariants else colorVariantList)} --tweaks macos -d "$out/share/themes"
runHook postInstall
'';