diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-02-09 23:35:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 23:35:56 +0100 |
commit | 82d0545a001967f19344768f84c4aa8b43ff83b9 (patch) | |
tree | 5f407cd413acf724e305ad2e2ed79a892b24256c /pkgs/data | |
parent | 3e2c9a8d55654b8060b55ff4ae532d4adb0c63df (diff) | |
parent | b1b19bcf9b16a3515c6d6f2870f52eab3932142a (diff) | |
download | nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.tar nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.tar.gz nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.tar.bz2 nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.tar.lz nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.tar.xz nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.tar.zst nixlib-82d0545a001967f19344768f84c4aa8b43ff83b9.zip |
Merge pull request #158244 from romildo/upd.graphite-gtk-theme
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 7f3ee33c039c..0c9bae8ac31e 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 |