diff options
author | Aaron Jheng <wentworth@outlook.com> | 2023-06-24 10:00:31 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2023-06-26 15:33:38 +0000 |
commit | d954e0153f63085334cfa4b08769b228af493281 (patch) | |
tree | cf18da833cb5101bf885537bdc305e418926039b /pkgs/tools/security/notation | |
parent | f742512ccc99e6ac457d6d4ddce78f283c4bbfde (diff) |
notation: init at 1.0.0-rc.7
Diffstat (limited to 'pkgs/tools/security/notation')
-rw-r--r-- | pkgs/tools/security/notation/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/security/notation/default.nix b/pkgs/tools/security/notation/default.nix new file mode 100644 index 0000000000000..4c579f3f016d0 --- /dev/null +++ b/pkgs/tools/security/notation/default.nix @@ -0,0 +1,27 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "notation"; + version = "1.0.0-rc.7"; + + src = fetchFromGitHub { + owner = "notaryproject"; + repo = pname; + rev = "v${version}"; + hash = "sha256-EM2QunSL88Am3zgKwgI94jET3xaVfvsa4MCtMZ3ejjU="; + }; + + vendorHash = "sha256-88PCnIm7nQB8jLzrfVOyDLXWX7RZeT31n1cwvb4Qza0="; + + # This is a Go sub-module and cannot be built directly (e2e tests). + excludedPackages = [ "./test" ]; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + description = "CLI tool to sign and verify OCI artifacts and container images"; + homepage = "https://notaryproject.dev/"; + license = licenses.asl20; + maintainers = with maintainers; [ aaronjheng ]; + }; +} |