From fc8e2a3a766d2586133ef44eabff406df56d9430 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 15 Apr 2024 15:45:32 -0500 Subject: [PATCH] dotslash: add `passthru.updateScript` config This will allow `update.nix` to handle updates, too. Signed-off-by: Austin Seipp Change-Id: I8eff8e32508ced9061e54e2a478b281340571980 --- pkgs/by-name/do/dotslash/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/do/dotslash/package.nix b/pkgs/by-name/do/dotslash/package.nix index 240cfe4717b4..66726384b23f 100644 --- a/pkgs/by-name/do/dotslash/package.nix +++ b/pkgs/by-name/do/dotslash/package.nix @@ -1,4 +1,6 @@ -{ lib, rustPlatform, fetchCrate }: +{ lib, rustPlatform, fetchCrate +, testers, nix-update-script, dotslash +}: rustPlatform.buildRustPackage rec { pname = "dotslash"; @@ -12,6 +14,13 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-WkC+8epqCJWIU1f5kCLsqgGiSvWZH1mbZabQUnGVwB4="; doCheck = false; # http tests + passthru = { + updateScript = nix-update-script { }; + tests = testers.testVersion { + package = dotslash; + }; + }; + meta = with lib; { homepage = "https://dotslash-cli.com"; description = "Simplified multi-platform executable deployment";