Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: aws-cdk-cli 0 -> 1 attrpath: aws-cdk-cli Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/4szwc22y22hdlisxll08nr4cvcipdrqw-packages.json.drv building '/nix/store/4szwc22y22hdlisxll08nr4cvcipdrqw-packages.json.drv'... Going to be running update for following packages: - aws-cdk-cli-2.1127.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - aws-cdk-cli-2.1127.0: UPDATING ... - aws-cdk-cli-2.1127.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/aw/aws-cdk-cli/package.nix b/pkgs/by-name/aw/aws-cdk-cli/package.nix index 3c6c407e32f8..72977f74fe57 100644 --- a/pkgs/by-name/aw/aws-cdk-cli/package.nix +++ b/pkgs/by-name/aw/aws-cdk-cli/package.nix @@ -18,19 +18,19 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "aws-cdk-cli"; - version = "2.1127.0"; + version = "2.1128.1"; src = fetchFromGitHub { owner = "aws"; repo = "aws-cdk-cli"; tag = "cdk@v${finalAttrs.version}"; - hash = "sha256-d55JNmWi4oTNorunkDwpdfcxHE9UC2fufKDahKgoLvk="; + hash = "sha256-F5dlS2xIwVxpgc6v+bP+vI0lP+nttvKamzWz4UEphzc="; }; missingHashes = ./missing-hashes.json; offlineCache = yarn-berry.fetchYarnBerryDeps { inherit (finalAttrs) src missingHashes; - hash = "sha256-eGj2Gx46lyypNz5e0U1AD1dVwOgJK4hkwXp03lR+6sc="; + hash = "sha256-ykFox4QTo0f0urzh1e/65Jh0H3x0wOngmEzWFekCma8="; }; nativeBuildInputs = [ No auto update branch exists Old version 2.1127.0" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, nodejs, yarn-berry_4, diffutils, zip, jq, python3, unzip, testers, nix-update-script, }: let yarn-berry = yarn-berry_4; in stdenv.mkDerivation (finalAttrs: { pname = "aws-cdk-cli"; version = "2.1128.1"; src = fetchFromGitHub { owner = "aws"; repo = "aws-cdk-cli"; tag = "cdk@v${finalAttrs.version}"; hash = "sha256-F5dlS2xIwVxpgc6v+bP+vI0lP+nttvKamzWz4UEphzc="; }; missingHashes = ./missing-hashes.json; offlineCache = yarn-berry.fetchYarnBerryDeps { inherit (finalAttrs) src missingHashes; hash = "sha256-ykFox4QTo0f0urzh1e/65Jh0H3x0wOngmEzWFekCma8="; }; nativeBuildInputs = [ yarn-berry yarn-berry.yarnBerryConfigHook nodejs python3 zip jq # tests diffutils unzip ]; env = { NX_DISABLE_REMOTE_CACHE = "true"; NX_TASKS_RUNNER_DYNAMIC_OUTPUT = "false"; NX_VERBOSE_LOGGING = "true"; # Needed to properly embed version info CODEBUILD_RESOLVED_SOURCE_VERSION = finalAttrs.version; YARN_LOCKFILE_VERSION_OVERRIDE = "8"; }; # Regular "build" is very heavy and does things we don't need. yarnBuildScript = "compile"; postPatch = let cliVersionJson = builtins.toJSON { inherit (finalAttrs) version; }; in '' echo '${cliVersionJson}' > packages/@aws-cdk/cloud-assembly-schema/cli-version.json cat >> .yarnrc.yml <<'EOF' approvedGitRepositories: - "**" enableScripts: true enableNetwork: false enableHardenedMode: false EOF ''; preBuild = '' export NX_PARALLEL="$NIX_BUILD_CORES" pushd packages/@aws-cdk/integ-runner patchShebangs build-tools/generate.sh build-tools/generate.sh popd pushd packages/aws-cdk patchShebangs generate.sh ./generate.sh popd ''; buildPhase = '' runHook preBuild yarn "$yarnBuildScript" runHook postBuild ''; installPhase = '' runHook preInstall mkdir -p $out/lib/node_modules/aws-cdk-cli cp -r . $out/lib/node_modules/aws-cdk-cli runHook postInstall ''; postInstall = '' # Manually bundle non-bundled dependencies cp -r node_modules/jsonschema $out/lib/node_modules/aws-cdk-cli/node_modules/jsonschema cp -r node_modules/decamelize $out/lib/node_modules/aws-cdk-cli/node_modules/decamelize patchShebangs "$out/lib/node_modules/aws-cdk-cli/node_modules/aws-cdk/bin" ln -s "$out/lib/node_modules/aws-cdk-cli/node_modules/aws-cdk/bin" "$out/bin" # Delete broken symlinks find "$out/lib/node_modules" -xtype l -delete # Fix version pushd $out/lib/node_modules/aws-cdk-cli/packages/aws-cdk mv package.json package.json.bak jq '.version = "${finalAttrs.version}"' < package.json.bak > package.json rm package.json.bak mv build-info.json bi.json jq '.commit = "nixpkgs"' < bi.json > build-info.json rm bi.json popd ''; # Fixup takes an absurdly long time, so disable it dontFixup = true; passthru = { tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; updateScript = nix-update-script { extraArgs = [ "--version-regex" "cdk@v(.*)" ]; }; }; meta = { description = "AWS CDK Toolkit"; homepage = "https://docs.aws.amazon.com/cdk/v2/guide/cli.html"; license = lib.licenses.asl20; maintainers = [ ]; mainProgram = "cdk"; platforms = lib.platforms.all; }; })