diff --git a/pkgs/by-name/ir/iroh-ssh/package.nix b/pkgs/by-name/ir/iroh-ssh/package.nix new file mode 100644 index 000000000000..7d904499ff74 --- /dev/null +++ b/pkgs/by-name/ir/iroh-ssh/package.nix @@ -0,0 +1,52 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + autoAddDriverRunpath, + installShellFiles, + writableTmpDirAsHomeHook, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "iroh-ssh"; + version = "0.2.8"; + + src = fetchFromGitHub { + owner = "rustonbsd"; + repo = "iroh-ssh"; + tag = finalAttrs.version; + hash = "sha256-jKJ0dathwsFif2N/X4CnMAG74h0h/5hnuWWwbJrbU18="; + }; + + cargoHash = "sha256-KZu4HA5E9R4sdBW5cdhyA5E2bo2YN2TPSKDlJuzDGnU="; + + nativeBuildInputs = [ + autoAddDriverRunpath + installShellFiles + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ + versionCheckHook + writableTmpDirAsHomeHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/iroh-ssh"; + versionCheckProgramArg = "version"; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "ssh without ip"; + homepage = "https://github.com/rustonbsd/iroh-ssh"; + maintainers = "LukeDSchenk"; + license = lib.licenses.mit; + mainProgram = "iroh-ssh"; + }; +}) + +