nixpkgs/pkgs/tools/admin/tlsclient/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
982 B
Nix
Raw Normal View History

2023-07-01 20:24:17 +02:00
{ lib
, stdenv
, fetchFromSourcehut
, pkg-config
, openssl
2023-07-22 02:33:02 +02:00
, gitUpdater
2023-07-01 20:24:17 +02:00
}:
2023-07-20 18:19:25 +02:00
stdenv.mkDerivation (finalAttrs: {
2023-07-01 20:24:17 +02:00
pname = "tlsclient";
2023-09-03 09:21:55 +02:00
version = "1.6.5";
2023-07-01 20:24:17 +02:00
src = fetchFromSourcehut {
owner = "~moody";
repo = "tlsclient";
2023-07-20 18:19:25 +02:00
rev = "v${finalAttrs.version}";
2023-09-03 09:21:55 +02:00
hash = "sha256-Ff41LZ5jbrqni2ptsUlI3L17SCHnGo4utg8etFubRNI=";
2023-07-01 20:24:17 +02:00
};
strictDeps = true;
enableParallelBuilding = true;
2023-07-22 02:34:02 +02:00
nativeBuildInputs = [ pkg-config ];
2023-07-01 20:24:17 +02:00
buildInputs = [ openssl ];
2023-07-22 02:34:02 +02:00
buildFlags = [ "tlsclient" ];
installFlags = [ "PREFIX=$(out)" ];
installTargets = "tlsclient.install";
2023-07-01 20:24:17 +02:00
2023-07-22 02:33:02 +02:00
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
2023-07-01 20:24:17 +02: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-07-20 18:19:25 +02:00
})