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