summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorJosé Romildo <malaquias@gmail.com>2022-01-22 06:58:55 -0300
committerJosé Romildo <malaquias@gmail.com>2022-02-05 10:53:23 -0300
commitb1b19bcf9b16a3515c6d6f2870f52eab3932142a (patch)
treeaea0eb45adb730de2041a70ed1cde2584b957ba6 /pkgs/data
parent54158cc5fe1e4ebfe9a0a9b60248609d6c975717 (diff)
downloadnixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.tar
nixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.tar.gz
nixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.tar.bz2
nixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.tar.lz
nixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.tar.xz
nixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.tar.zst
nixpkgs-b1b19bcf9b16a3515c6d6f2870f52eab3932142a.zip
graphite-gtk-theme: unstable-2022-01-07 -> unstable-2022-02-04
- Update to unstable-2022-02-04
- Optionally install grub theme
- Move to pkgs/data/themes/graphite-gtk-theme, as there is also graphite-kde-theme in nixpkgs
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/themes/graphite-gtk-theme/default.nix (renamed from pkgs/data/themes/graphite/default.nix)21
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/data/themes/graphite/default.nix b/pkgs/data/themes/graphite-gtk-theme/default.nix
index 7f3ee33c039..0c9bae8ac31 100644
--- a/pkgs/data/themes/graphite/default.nix
+++ b/pkgs/data/themes/graphite-gtk-theme/default.nix
@@ -10,6 +10,8 @@
 , sizeVariants ? [] # default: standard
 , tweaks ? []
 , wallpapers ? false
+, withGrub ? false
+, grubScreens ? [] # default: 1080p
 }:
 
 let
@@ -20,16 +22,17 @@ lib.checkListOfEnum "${pname}: theme variants" [ "default" "purple" "pink" "red"
 lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants
 lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVariants
 lib.checkListOfEnum "${pname}: tweaks" [ "nord" "black" "midblack" "rimless" "normal" ] tweaks
+lib.checkListOfEnum "${pname}: grub screens" [ "1080p" "2k" "4k" ] grubScreens
 
 stdenvNoCC.mkDerivation {
   inherit pname;
-  version = "unstable-2022-01-07";
+  version = "unstable-2022-02-04";
 
   src = fetchFromGitHub {
     owner = "vinceliuice";
     repo = pname;
-    rev = "78e5421fee63b4c2a2a3d2e321538367b01a24ec";
-    sha256 = "1vfvv1gfbr9yr9mz0kb7c7ij6pxcryni1fjs87gn4hpyzns431wk";
+    rev = "7ab6a1b7eda81e914405a9931408b1d5c73e6891";
+    sha256 = "09xixd6cz2iyyyg6vskyk0wj2mahfsg21dlfcvi862h8w01hg9lr";
   };
 
   nativeBuildInputs = [
@@ -65,6 +68,18 @@ stdenvNoCC.mkDerivation {
       ''}
     ''}
 
+    ${lib.optionalString withGrub ''
+      (
+      cd other/grub2
+
+      patchShebangs install.sh
+
+      ./install.sh --justcopy --dest $out/share/grub/themes \
+        ${lib.optionalString (builtins.elem "nord" tweaks) "--theme nord"} \
+        ${lib.optionalString (grubScreens != []) "--screen " + builtins.toString grubScreens}
+      )
+    ''}
+
     jdupes -L -r $out/share
 
     runHook postInstall