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-09-09 14:08:57 +00:00
|
|
|
version = "0.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rancher";
|
|
|
|
repo = "dapper";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-V+lHnOmIWjI1qmoJ7+pp+cGmJAtSeY+r2I9zykswQzM=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|