Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
845 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tinyssh";
version = "20250501";
src = fetchFromGitHub {
owner = "janmojzis";
repo = "tinyssh";
tag = finalAttrs.version;
hash = "sha256-72UHCJ8XaJ2lwXAOnLlhDUQOEElFkyCVswgFtYEuxPA=";
};
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";
installFlags = [ "PREFIX=${placeholder "out"}" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Minimalistic SSH server";
homepage = "https://tinyssh.org";
changelog = "https://github.com/janmojzis/tinyssh/releases/tag/${finalAttrs.version}";
license = lib.licenses.cc0;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ kaction ];
};
})