2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dapper";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "0.5.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rancher";
|
|
|
|
repo = "dapper";
|
|
|
|
rev = "v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-t1w8bhwCjZHmvgBG6Tv8kgqTbC7v5P5QOvJGuTJUC04=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-06-26 10:26:21 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace main.go --replace 0.0.0 ${version}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-26 10:26:21 +00:00
|
|
|
description = "Docker build wrapper";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rancher/dapper";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kuznero ];
|
|
|
|
};
|
|
|
|
}
|