mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
aws-assume-role: migrate to buildGoModule
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
ed61e2bd1b
commit
111f133db4
|
@ -1,16 +1,14 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoPackage
|
||||
, buildGoModule
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "aws-assume-role";
|
||||
version = "0.3.2";
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
goPackagePath = "github.com/remind101/assume-role";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "remind101";
|
||||
repo = "assume-role";
|
||||
|
@ -18,8 +16,14 @@ buildGoPackage rec {
|
|||
sha256 = "sha256-7+9qi9lYzv1YCFhUyla+5Gqs5nBUiiazhFwiqHzMFd4=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
postPatch = ''
|
||||
go mod init github.com/remind101/assume-role
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm444 -t $out/share/doc/$name ./go/src/${goPackagePath}/README.md
|
||||
install -Dm444 -t $out/share/doc/aws-assume-role README.md
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue