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

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

37 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
2019-05-21 15:54:41 +01:00
2020-02-29 00:20:00 +00:00
buildGoModule rec {
2019-05-21 15:54:41 +01:00
pname = "certigo";
2022-03-26 11:21:55 +00:00
version = "1.15.1";
2019-05-21 15:54:41 +01:00
src = fetchFromGitHub {
owner = "square";
repo = pname;
rev = "v${version}";
2022-03-26 11:21:55 +00:00
sha256 = "sha256-XGR6xIXdFLnJTFd+mJneRb/WkLmi0Jscta9Bj3paM1M=";
2019-05-21 15:54:41 +01:00
};
patches = [
(fetchpatch {
name = "backport_TestConnect-Apple-Fixes.patch";
url = "https://github.com/square/certigo/commit/5332ac7ca20bdea63657cc8319e8b8fda4326938.patch";
sha256 = "sha256-mSNuiui2dxkXnCrXJ/asIzC8F1mtPecOVOIu6mE5jq4=";
})
(fetchpatch {
name = "backport_TestConnect-Expected-CipherSuite-Fixes.patch";
url = "https://github.com/square/certigo/commit/7ef0417bde4aafc69cbb72f0dd6d3577a56054a1.patch";
sha256 = "sha256-TUQ8B23HKheaPUjj4NkvjmZBAAhDNTyo2c8jf4qukds=";
})
];
2019-05-21 15:54:41 +01:00
vendorSha256 = "sha256-qS/tIi6umSuQcl43SI4LyL0k5eWfRWs7kVybRPGKcbs=";
meta = with lib; {
2019-05-21 15:54:41 +01:00
description = "A utility to examine and validate certificates in a variety of formats";
homepage = "https://github.com/square/certigo";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}