Change:
consistently fails on 23.11. Steps to reproduce the behavior: to NixOS 23.11 This should work like . Debug output: Installing via or via does not fix this. , but no mention of Chromium itself. It looks like the error message is from . . system: host os: multi-user?: sandbox: version: channels(root): channels(username): nixpkgs: (I'll be tweaking this in case I come up with a working solution.) to a new directory, for example a containing the following: the built package like this: Unfortunately, the override doesn't work as expected: ERROR: Failed to set up Chromium r982053! Set "PUPPETEERSKIP_DOWNLOAD" env variable to skip download. I'm not sure how to proceed. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Unfortunately I'm not using this anymore and should remove myself as maintainer. Any volunteers? Looks like we have a fix now too. Can anyone verify?
I'm still using it for the foreseeable, so I've .

Discussion:
{ lib <ins> , callPackage </ins> , stdenv <ins> , chromium </ins> , fetchFromGitHub , fetchYarnDeps , makeWrapper

, prefetch-yarn-deps , yarn }: <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation (finalAttrs: { </ins> pname = "aws-azure-login"; version = "3.6.1"; src = fetchFromGitHub { owner = "aws-azure-login"; repo = "aws-azure-login"; <del> rev = "v${version}"; </del> <ins> rev = "v${finalAttrs.version}"; </ins> hash = "sha256-PvPnqaKD98h3dCjEOwF+Uc86xCJzn2b9XNHHn13h/2Y="; }; offlineCache = fetchYarnDeps { <del> yarnLock = "${src}/yarn.lock"; </del> <ins> yarnLock = "${finalAttrs.src}/yarn.lock"; </ins> hash = "sha256-SXQPRzF6b1FJl5HkyXNm3kGoNSDXux+0RYXBX93mOts="; }; <del> nativeBuildInputs  = [ </del> <ins> nativeBuildInputs = [ </ins> makeWrapper nodejs prefetch-yarn-deps

cp -r . "$out/lib/node_modules/aws-azure-login" makeWrapper "${nodejs}/bin/node" "$out/bin/aws-azure-login"  <del> --add-flags "$out/lib/node_modules/aws-azure-login/lib/index.js" </del> <ins> --add-flags "$out/lib/node_modules/aws-azure-login/lib/index.js"  --set PUPPETEER_EXECUTABLE_PATH "${lib.getExe chromium}" </ins> runHook postInstall ''; <ins> passthru.tests.aws-azure-login = callPackage ./tests.nix { package = finalAttrs.finalPackage; }; </ins> meta = { description = "Use Azure AD SSO to log into the AWS via CLI"; homepage = "https://github.com/aws-azure-login/aws-azure-login"; license = lib.licenses.mit; mainProgram = "aws-azure-login"; <del> maintainers = with lib.maintainers; [ yurrriq ]; </del> <ins> maintainers = with lib.maintainers; [ l0b0 ]; </ins> platforms = lib.platforms.all; }; <del> } </del> <ins> }) </ins>

<ins> { lib , runCommand , package }: runCommand "${package.pname}-tests" { HOME = "/tmp/home"; } '' mkdir -p "''${HOME}/.aws" cat > "''${HOME}/.aws/config" <<'EOF' [profile my-profile] azure_tenant_id=3f03e308-ada1-45f7-9cc3-ab777eaba2d3 azure_app_id_uri=4fbf61f5-7302-42e5-9585-b18ad0e4649d azure_default_username=user@example.org azure_default_role_arn= azure_default_duration_hours=1 azure_default_remember_me=false EOF ! ${lib.getExe package} --profile=my-profile 2> stderr [[ "$(cat stderr)" == 'Unable to recognize page state! A screenshot has been dumped to aws-azure-login-unrecognized-state.png. If this problem persists, try running with --mode=gui or --mode=debug' ]] touch $out '' </ins>