summary refs log tree commit diff
path: root/pkgs/data/themes/graphite-gtk-theme
diff options
context:
space:
mode:
authorJosé Romildo <malaquias@gmail.com>2022-02-18 15:48:19 -0300
committerJosé Romildo <malaquias@gmail.com>2022-03-22 13:23:09 -0300
commitbe37c9a4e1466e9e1610c83ab201279a31325f50 (patch)
tree17acb08f37037c1031e1ff03596ebd77c5270b9d /pkgs/data/themes/graphite-gtk-theme
parenta9777c1644da215805397251045c681dfdd65af5 (diff)
downloadnixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.tar
nixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.tar.gz
nixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.tar.bz2
nixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.tar.lz
nixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.tar.xz
nixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.tar.zst
nixpkgs-be37c9a4e1466e9e1610c83ab201279a31325f50.zip
graphite-gtk-theme: add update script
Diffstat (limited to 'pkgs/data/themes/graphite-gtk-theme')
-rw-r--r--pkgs/data/themes/graphite-gtk-theme/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/data/themes/graphite-gtk-theme/default.nix b/pkgs/data/themes/graphite-gtk-theme/default.nix
index 0c9bae8ac31..cee243fbb20 100644
--- a/pkgs/data/themes/graphite-gtk-theme/default.nix
+++ b/pkgs/data/themes/graphite-gtk-theme/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenvNoCC
 , fetchFromGitHub
+, gitUpdater
 , gnome-themes-extra
 , gtk-engine-murrine
 , jdupes
@@ -24,7 +25,7 @@ lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVaria
 lib.checkListOfEnum "${pname}: tweaks" [ "nord" "black" "midblack" "rimless" "normal" ] tweaks
 lib.checkListOfEnum "${pname}: grub screens" [ "1080p" "2k" "4k" ] grubScreens
 
-stdenvNoCC.mkDerivation {
+stdenvNoCC.mkDerivation rec {
   inherit pname;
   version = "unstable-2022-02-04";
 
@@ -85,6 +86,8 @@ stdenvNoCC.mkDerivation {
     runHook postInstall
   '';
 
+  passthru.updateScript = gitUpdater { inherit pname version; };
+
   meta = with lib; {
     description = "Flat Gtk+ theme based on Elegant Design";
     homepage = "https://github.com/vinceliuice/Graphite-gtk-theme";