Commit fc8e2a3a authored by Austin Seipp's avatar Austin Seipp
Browse files

dotslash: add `passthru.updateScript` config



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

Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
Change-Id: I8eff8e32508ced9061e54e2a478b281340571980
parent 1b0cd921
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
{ 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";