dapper: use buildGoModule

This commit is contained in:
Azat Bahawi 2022-06-05 23:08:44 +03:00
parent 2d012163f2
commit 5bd650e062
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -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=";
}; };
patchPhase = '' vendorSha256 = null;
substituteInPlace main.go --replace 0.0.0 ${version}
''; patchPhase = ''
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 ];
}; };
} }