1{ lib
2, stdenv
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation rec {
7 pname = "tinyssh";
8 version = "20230101";
9
10 src = fetchFromGitHub {
11 owner = "janmojzis";
12 repo = "tinyssh";
13 rev = "refs/tags/${version}";
14 hash = "sha256-yEqPrLp14AF0L1QLoIcBhTphmd6qVzOB9EVW0Miy8yM=";
15 };
16
17 preConfigure = ''
18 echo /bin > conf-bin
19 echo /share/man > conf-man
20 '';
21
22 DESTDIR = placeholder "out";
23
24 meta = with lib; {
25 description = "Minimalistic SSH server";
26 homepage = "https://tinyssh.org";
27 changelog = "https://github.com/janmojzis/tinyssh/releases/tag/${version}";
28 license = licenses.cc0;
29 platforms = platforms.unix;
30 maintainers = with maintainers; [ kaction ];
31 };
32}