dotslash: add passthru.updateScript config

This will allow `update.nix` to handle updates, too.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Change-Id: I8eff8e32508ced9061e54e2a478b281340571980
This commit is contained in:
Austin Seipp 2024-04-15 15:45:32 -05:00
parent 1b0cd9218a
commit fc8e2a3a76

View file

@ -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";