mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-01 01:57:37 +03:00
dapper: use buildGoModule
This commit is contained in:
parent
2d012163f2
commit
5bd650e062
@ -1,30 +1,29 @@
|
|||||||
{ buildGoPackage
|
{ lib
|
||||||
, lib
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "dapper";
|
pname = "dapper";
|
||||||
version = "0.5.8";
|
version = "0.5.8";
|
||||||
|
|
||||||
goPackagePath = "github.com/rancher/dapper";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rancher";
|
owner = "rancher";
|
||||||
repo = "dapper";
|
repo = "dapper";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-t1w8bhwCjZHmvgBG6Tv8kgqTbC7v5P5QOvJGuTJUC04=";
|
sha256 = "sha256-t1w8bhwCjZHmvgBG6Tv8kgqTbC7v5P5QOvJGuTJUC04=";
|
||||||
};
|
};
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace main.go --replace 0.0.0 ${version}
|
substituteInPlace main.go --replace 0.0.0 ${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Docker Build Wrapper";
|
description = "Docker build wrapper";
|
||||||
homepage = "https://github.com/rancher/dapper";
|
homepage = "https://github.com/rancher/dapper";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ kuznero ];
|
maintainers = with maintainers; [ kuznero ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user