Unverified Commit 8ccb3c0e authored by Ramses's avatar Ramses Committed by GitHub
Browse files

iroh-ssh: init at 0.2.9 (#488529)

parents 0f239459 2e894335
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -15796,6 +15796,12 @@
    githubId = 84395723;
    name = "Lukas Wurzinger";
  };
  luke = {
    email = "luke@maraud.earth";
    github = "LukeDSchenk";
    githubId = 41804945;
    name = "Luke Schenk";
  };
  lukebfox = {
    email = "lbentley-fox1@sheffield.ac.uk";
    github = "lukebfox";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  installShellFiles,
  writableTmpDirAsHomeHook,
  versionCheckHook,
  nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "iroh-ssh";
  version = "0.2.9";

  src = fetchFromGitHub {
    owner = "rustonbsd";
    repo = "iroh-ssh";
    tag = finalAttrs.version;
    hash = "sha256-0G2RZbxyxi96FpVPEamfcTrOgPxpFYHmyYg1kQfo7TQ=";
  };

  cargoHash = "sha256-2/hc1K6zUyQlWorZh34HP9PCdV4YD1ob9l1DFiW7c1Y=";

  nativeBuildInputs = [
    installShellFiles
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [
    versionCheckHook
    writableTmpDirAsHomeHook
  ];
  versionCheckProgram = "${placeholder "out"}/bin/iroh-ssh";
  versionCheckProgramArg = "version";

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "SSH to any machine without IP";
    homepage = "https://github.com/rustonbsd/iroh-ssh";
    maintainers = with lib.maintainers; [
      luke
      rvdp
    ];
    license = lib.licenses.mit;
    mainProgram = "iroh-ssh";
  };
})