11 src = fetchFromGitHub {
13 repo = "sbom-cli-plugin";
14 rev = "tags/v${version}";
15 hash = "sha256-i3gIogHb0oW/VDuZUo6LGBmvqs/XfMXjpvTTYeGCK7Q=";
19 # Disable tests that require a docker daemon to be running
21 ./sbom-disable-tests.patch
24 vendorHash = "sha256-XPPVAdY2NaasZ9bkf24VWWk3X5pjnryvsErYIWkeekc=";
26 nativeBuildInputs = [ docker ];
30 install -D $GOPATH/bin/sbom-cli-plugin $out/libexec/docker/cli-plugins/docker-sbom
33 ln -s $out/libexec/docker/cli-plugins/docker-sbom $out/bin/docker-sbom
38 description = "Plugin for Docker CLI to support SBOM creation using Syft";
39 mainProgram = "docker-sbom";
40 homepage = "https://github.com/docker/sbom-cli-plugin";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ raboof ];