2022-06-05 20:08:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2019-05-31 09:07:50 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2022-06-05 20:08:44 +00:00
|
|
|
buildGoModule rec {
|
2019-05-31 09:07:50 +00:00
|
|
|
pname = "dapper";
|
2022-07-08 07:26:53 +00:00
|
|
|
version = "0.6.0";
|
2019-05-31 09:07:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rancher";
|
|
|
|
repo = "dapper";
|
|
|
|
rev = "v${version}";
|
2022-07-08 07:26:53 +00:00
|
|
|
sha256 = "sha256-V+lHnOmIWjI1qmoJ7+pp+cGmJAtSeY+r2I9zykswQzM=";
|
2019-05-31 09:07:50 +00:00
|
|
|
};
|
2022-06-05 20:08:44 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace main.go --replace 0.0.0 ${version}
|
|
|
|
'';
|
2019-05-31 09:07:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-05 20:08:44 +00:00
|
|
|
description = "Docker build wrapper";
|
2019-05-31 09:07:50 +00:00
|
|
|
homepage = "https://github.com/rancher/dapper";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kuznero ];
|
|
|
|
};
|
|
|
|
}
|