2023-08-25 13:51:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "diffoci";
|
2023-11-29 16:32:33 +00:00
|
|
|
version = "0.1.4";
|
2023-08-25 13:51:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "reproducible-containers";
|
|
|
|
repo = "diffoci";
|
|
|
|
rev = "v${version}";
|
2023-11-29 16:32:33 +00:00
|
|
|
hash = "sha256-BTggky5behIxbVxyDZ09uobw0FBopboE9uUBEVgCgR4=";
|
2023-08-25 13:51:28 +00:00
|
|
|
};
|
|
|
|
|
2023-11-29 16:32:33 +00:00
|
|
|
vendorHash = "sha256-4C35LBxSm6EkcOznQY1hT2vX9bwFfps/q76VqqPKBfI=";
|
2023-08-25 13:51:28 +00:00
|
|
|
|
2023-10-28 11:05:03 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=github.com/reproducible-containers/diffoci/cmd/diffoci/version.Version=v${version}"
|
|
|
|
];
|
2023-08-25 13:51:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Diff for Docker and OCI container images";
|
|
|
|
homepage = "https://github.com/reproducible-containers/diffoci/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jk ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "diffoci";
|
2023-08-25 13:51:28 +00:00
|
|
|
};
|
|
|
|
}
|