summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick F. Kautz IV <fkautz@alumni.cmu.edu>2022-02-06 16:15:14 -0800
committerFrederick F. Kautz IV <fkautz@alumni.cmu.edu>2022-02-07 07:31:54 -0800
commit6df6f276a36d2cc18472e467f94226dd2795f6ba (patch)
tree544c8f17ef3147c504d9da70b5cad9e9e0d8c75d
parenta6c91f2ed9f23d7e8ff71460bcb40db5bea47c1f (diff)
downloadnixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.tar
nixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.tar.gz
nixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.tar.bz2
nixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.tar.lz
nixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.tar.xz
nixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.tar.zst
nixpkgs-6df6f276a36d2cc18472e467f94226dd2795f6ba.zip
witness: init at 0.1.1
Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>
Co-authored-by: Patrick Hilhorst <git@hilhorst.be>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
-rw-r--r--pkgs/tools/security/witness/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/security/witness/default.nix b/pkgs/tools/security/witness/default.nix
new file mode 100644
index 00000000000..571685afb40
--- /dev/null
+++ b/pkgs/tools/security/witness/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "witness";
+  version = "0.1.1";
+
+  src = fetchFromGitHub {
+    owner = "testifysec";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-NnDsiDUTCdjsHVA/mHnB8WRnvwFTzETkWUOd7IgMIWE=";
+  };
+
+  vendorSha256 = "sha256-zkLparWJsuqrhOQxxV37dBqt6fwpSinTO+paJkbl+sM=";
+
+  # We only want the witness binary, not the helper utilities for generating docs.
+  subPackages = [ "cmd/witness" ];
+
+  meta = with lib; {
+    description = "A pluggable framework for software supply chain security. Witness prevents tampering of build materials and verifies the integrity of the build process from source to target";
+    homepage = "https://github.com/testifysec/witness";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fkautz ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2e7134580a3..0f6b10754f1 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10851,6 +10851,8 @@ with pkgs;
     SDL = SDL_sixel;
   };
 
+  witness = callPackage ../tools/security/witness { };
+
   openconnect = openconnect_gnutls;
 
   openconnect_openssl = callPackage ../tools/networking/openconnect {