depot/third_party/nixpkgs/pkgs/tools/networking/tinyssh/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

34 lines
818 B
Nix

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