2020-12-23 00:06:27 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, pcsclite
|
|
|
|
, PCSC
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2019-12-12 05:38:15 +01:00
|
|
|
|
2020-12-23 00:06:27 +01:00
|
|
|
buildGoModule rec {
|
2019-12-12 05:38:15 +01:00
|
|
|
pname = "step-ca";
|
2021-02-18 12:58:41 +01:00
|
|
|
version = "0.15.11";
|
2019-12-12 05:38:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smallstep";
|
|
|
|
repo = "certificates";
|
|
|
|
rev = "v${version}";
|
2021-02-18 12:58:41 +01:00
|
|
|
sha256 = "wFRs3n6V0z2keNVtqFw1q5jpA6BvNK5EftsNhichfsY=";
|
2019-12-12 05:38:15 +01:00
|
|
|
};
|
|
|
|
|
2021-02-18 12:58:41 +01:00
|
|
|
vendorSha256 = "f1NdszqYYx6X1HqwqG26jjfjXq1gDXLOrh64ccKRQ90=";
|
2020-12-23 00:06:27 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs =
|
2021-02-18 12:58:41 +01:00
|
|
|
lib.optionals (stdenv.isLinux) [ pcsclite ]
|
|
|
|
++ lib.optionals (stdenv.isDarwin) [ PCSC ];
|
2020-12-23 00:06:27 +01:00
|
|
|
|
|
|
|
# Tests fail on darwin with
|
|
|
|
# panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted [recovered]
|
|
|
|
# probably some sandboxing issue
|
|
|
|
doCheck = stdenv.isLinux;
|
2019-12-12 05:38:15 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH";
|
|
|
|
homepage = "https://smallstep.com/certificates/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ cmcdragonkai ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|