diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b1feff346c24..05694b99f0bc 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; 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..cfd410ff0aed --- /dev/null +++ b/pkgs/by-name/ir/iroh-ssh/package.nix @@ -0,0 +1,50 @@ +{ + 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"; + }; +})