13 src = fetchFromGitHub {
14 owner = "reproducible-containers";
17 hash = "sha256-ZVWnfg5uWYuqsNd4X6t1gWBGMfdcirSp7QZZDhqAfaI=";
20 vendorHash = "sha256-qb4HvK4UbJbtP/ypeptV/MMbhOu5UZDaGartq/RGpDM=";
25 "-X=github.com/reproducible-containers/diffoci/cmd/diffoci/version.Version=v${version}"
28 nativeBuildInputs = [ installShellFiles ];
32 diffoci = if stdenv.buildPlatform.canExecute stdenv.hostPlatform then placeholder "out" else buildPackages.diffoci;
35 installShellCompletion --cmd trivy \
36 --bash <(${diffoci}/bin/diffoci completion bash) \
37 --fish <(${diffoci}/bin/diffoci completion fish) \
38 --zsh <(${diffoci}/bin/diffoci completion zsh)
42 description = "Diff for Docker and OCI container images";
43 homepage = "https://github.com/reproducible-containers/diffoci/";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ jk ];
46 mainProgram = "diffoci";