1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

Merge pull request #318091 from katexochen/aws-assume-role/mods

aws-assume-role: migrate to buildGoModule
This commit is contained in:
Jörg Thalheim 2024-06-11 11:30:01 +02:00 committed by GitHub
commit 7315172c7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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; {