about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/zig/shell-completions.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/zig/shell-completions.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/zig/shell-completions.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/compilers/zig/shell-completions.nix b/nixpkgs/pkgs/development/compilers/zig/shell-completions.nix
index 74beb5f63d65..db76250bf802 100644
--- a/nixpkgs/pkgs/development/compilers/zig/shell-completions.nix
+++ b/nixpkgs/pkgs/development/compilers/zig/shell-completions.nix
@@ -2,9 +2,10 @@
 , stdenv
 , fetchFromGitHub
 , installShellFiles
+, unstableGitUpdater
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "zig-shell-completions";
   version = "unstable-2023-08-17";
 
@@ -29,11 +30,13 @@ stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
-  meta = with lib; {
+  passthru.updateScript = unstableGitUpdater { };
+
+  meta = {
     homepage = "https://github.com/ziglang/shell-completions";
     description = "Shell completions for the Zig compiler";
-    license = licenses.mit;
-    maintainers = with maintainers; [ aaronjheng ];
-    platforms = platforms.all;
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ aaronjheng ];
+    platforms = lib.platforms.all;
   };
-}
+})