2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2023-08-04 22:07:22 +00:00
|
|
|
, gitUpdater
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "tlsclient";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.6.5";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~moody";
|
|
|
|
repo = "tlsclient";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-Ff41LZ5jbrqni2ptsUlI3L17SCHnGo4utg8etFubRNI=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildFlags = [ "tlsclient" ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
installTargets = "tlsclient.install";
|
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "tlsclient command line utility";
|
|
|
|
longDescription = "unix port of 9front's tlsclient(1) and rcpu(1)";
|
|
|
|
homepage = "https://git.sr.ht/~moody/tlsclient";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ moody ];
|
|
|
|
mainProgram = "tlsclient";
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|