12 stdenv.mkDerivation (finalAttrs: {
13 pname = "aws-azure-login";
16 src = fetchFromGitHub {
17 owner = "aws-azure-login";
18 repo = "aws-azure-login";
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-PvPnqaKD98h3dCjEOwF+Uc86xCJzn2b9XNHHn13h/2Y=";
23 offlineCache = fetchYarnDeps {
24 yarnLock = "${finalAttrs.src}/yarn.lock";
25 hash = "sha256-SXQPRzF6b1FJl5HkyXNm3kGoNSDXux+0RYXBX93mOts=";
38 export HOME=$(mktemp -d)
39 yarn config --offline set yarn-offline-mirror "$offlineCache"
40 fixup-yarn-lock yarn.lock
41 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
42 patchShebangs node_modules
58 yarn --offline --production install
60 mkdir -p "$out/lib/node_modules/aws-azure-login"
61 cp -r . "$out/lib/node_modules/aws-azure-login"
63 makeWrapper "${nodejs}/bin/node" "$out/bin/aws-azure-login" \
64 --add-flags "$out/lib/node_modules/aws-azure-login/lib/index.js" \
65 --set PUPPETEER_EXECUTABLE_PATH "${lib.getExe chromium}"
70 passthru.tests.aws-azure-login = callPackage ./tests.nix {
71 package = finalAttrs.finalPackage;
75 description = "Use Azure AD SSO to log into the AWS via CLI";
76 homepage = "https://github.com/aws-azure-login/aws-azure-login";
77 license = lib.licenses.mit;
78 mainProgram = "aws-azure-login";
79 maintainers = with lib.maintainers; [ l0b0 ];
80 platforms = lib.platforms.all;