aws-sso-cli: add xdg-utils dependency

Since the tool opens up the browser it requires xdg-open
This commit is contained in:
Yurii Matsiuk 2022-07-11 15:18:23 +02:00
parent bad39490e9
commit c308cc9734
No known key found for this signature in database
GPG Key ID: 61302290298601AA

View File

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, lib, makeWrapper, xdg-utils }:
buildGoModule rec {
pname = "aws-sso-cli";
version = "1.9.2";
@ -11,8 +11,12 @@
};
vendorSha256 = "BlSCLvlrKiubMtfFSZ5ppMmL2ZhJcBXxJfeRgMADYB4=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
mv $out/bin/cmd $out/bin/aws-sso
wrapProgram $out/bin/aws-sso \
--prefix PATH : ${lib.makeBinPath [ xdg-utils ]}
'';
meta = with lib; {