2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinyssh";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "20240101";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janmojzis";
|
|
|
|
repo = "tinyssh";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-wO0fGr+pU+Y5YCZMRGNOZ6pJeCUIc64TzmRAaQCnBxk=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo /bin > conf-bin
|
|
|
|
echo /share/man > conf-man
|
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
DESTDIR = placeholder "out";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
description = "Minimalistic SSH server";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://tinyssh.org";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/janmojzis/tinyssh/releases/tag/${version}";
|
|
|
|
license = licenses.cc0;
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.unix;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ kaction ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|