Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromSourcehut 4, pkg-config 5, openssl 6, gitUpdater 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "tlsclient"; 11 version = "1.6.5"; 12 13 src = fetchFromSourcehut { 14 owner = "~moody"; 15 repo = "tlsclient"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-Ff41LZ5jbrqni2ptsUlI3L17SCHnGo4utg8etFubRNI="; 18 }; 19 20 strictDeps = true; 21 enableParallelBuilding = true; 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ openssl ]; 24 25 buildFlags = [ "tlsclient" ]; 26 installFlags = [ "PREFIX=$(out)" ]; 27 installTargets = "tlsclient.install"; 28 29 passthru.updateScript = gitUpdater { 30 rev-prefix = "v"; 31 }; 32 33 meta = with lib; { 34 description = "tlsclient command line utility"; 35 longDescription = "unix port of 9front's tlsclient(1) and rcpu(1)"; 36 homepage = "https://git.sr.ht/~moody/tlsclient"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ moody ]; 39 mainProgram = "tlsclient"; 40 platforms = platforms.all; 41 }; 42})