2023-01-08 11:27:51 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-11-11 17:39:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinyssh";
|
2023-01-08 11:27:51 +01:00
|
|
|
version = "20230101";
|
2021-11-11 17:39:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janmojzis";
|
|
|
|
repo = "tinyssh";
|
2023-01-08 11:27:51 +01:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-yEqPrLp14AF0L1QLoIcBhTphmd6qVzOB9EVW0Miy8yM=";
|
2021-11-11 17:39:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo /bin > conf-bin
|
|
|
|
echo /share/man > conf-man
|
|
|
|
'';
|
|
|
|
|
|
|
|
DESTDIR = placeholder "out";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-08 11:27:51 +01:00
|
|
|
description = "Minimalistic SSH server";
|
2021-11-11 17:39:39 +01:00
|
|
|
homepage = "https://tinyssh.org";
|
2023-01-08 11:27:51 +01:00
|
|
|
changelog = "https://github.com/janmojzis/tinyssh/releases/tag/${version}";
|
|
|
|
license = licenses.cc0;
|
2021-11-11 17:39:39 +01:00
|
|
|
platforms = platforms.unix;
|
2023-01-08 11:27:51 +01:00
|
|
|
maintainers = with maintainers; [ kaction ];
|
2021-11-11 17:39:39 +01:00
|
|
|
};
|
|
|
|
}
|