34 lines
845 B
Nix
34 lines
845 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tinyssh";
|
|
version = "20260601";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janmojzis";
|
|
repo = "tinyssh";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-/BvJ+y4AaUUmIs+uB9Qlt39N7x/8KyiPUH5pd7IWpRw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|