From 8797e3edd28a917d6a62cf3f9a10d5a35a85ab0f Mon Sep 17 00:00:00 2001 From: Volth Date: Wed, 28 Jun 2017 21:15:16 +0000 Subject: [PATCH] certstrap: init at 1.0.1 --- pkgs/tools/security/certstrap/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/security/certstrap/default.nix diff --git a/pkgs/tools/security/certstrap/default.nix b/pkgs/tools/security/certstrap/default.nix new file mode 100644 index 000000000000..bf659f19e9be --- /dev/null +++ b/pkgs/tools/security/certstrap/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "certstrap-${version}"; + version = "1.0.1"; + + goPackagePath = "github.com/square/certstrap"; + + src = fetchFromGitHub { + owner = "square"; + repo = "certstrap"; + rev = "v${version}"; + sha256 = "0pw1g6nyb212ayic42rkm6i0cf4n2003f02qym6zp130m6aysb47"; + }; + + meta = with stdenv.lib; { + inherit (src.meta) homepage; + description = "Tools to bootstrap CAs, certificate requests, and signed certificates"; + platforms = platforms.all; + license = licenses.asl20; + maintainers = with maintainers; [ volth ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7939bca69404..d3436c1d18eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1388,6 +1388,8 @@ with pkgs; c14 = callPackage ../applications/networking/c14 { }; + certstrap = callPackage ../tools/security/certstrap { }; + cfssl = callPackage ../tools/security/cfssl { }; checkbashisms = callPackage ../development/tools/misc/checkbashisms { };