2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinyssh";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "20230101";
|
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}";
|
|
|
|
hash = "sha256-yEqPrLp14AF0L1QLoIcBhTphmd6qVzOB9EVW0Miy8yM=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo /bin > conf-bin
|
|
|
|
echo /share/man > conf-man
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|