Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "tinyssh"; 10 version = "20250201"; 11 12 src = fetchFromGitHub { 13 owner = "janmojzis"; 14 repo = "tinyssh"; 15 tag = finalAttrs.version; 16 hash = "sha256-HX531QjRrDG4dshqzR03naZptUYnoZLEdv/CGpKOaD0="; 17 }; 18 19 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration"; 20 21 installFlags = [ "PREFIX=${placeholder "out"}" ]; 22 23 passthru.updateScript = nix-update-script { }; 24 25 meta = { 26 description = "Minimalistic SSH server"; 27 homepage = "https://tinyssh.org"; 28 changelog = "https://github.com/janmojzis/tinyssh/releases/tag/${finalAttrs.version}"; 29 license = lib.licenses.cc0; 30 platforms = lib.platforms.unix; 31 maintainers = with lib.maintainers; [ kaction ]; 32 }; 33})