nixpkgs/pkgs/development/tools/dapper/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
640 B
Nix
Raw Normal View History

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
};
vendorHash = null;
2022-06-05 20:08:44 +00:00
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";
mainProgram = "dapper";
2019-05-31 09:07:50 +00:00
homepage = "https://github.com/rancher/dapper";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ kuznero ];
};
}