Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: gn 0 -> 1 attrpath: gn Checking auto update branch... [version] [version] skipping because derivation has updateScript [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/b3j1s6068wvl45gnxa5dqmmxpxaill1v-packages.json.drv building '/nix/store/b3j1s6068wvl45gnxa5dqmmxpxaill1v-packages.json.drv'... Going to be running update for following packages: - gn-0-unstable-2026-01-07 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - gn-0-unstable-2026-01-07: UPDATING ... - gn-0-unstable-2026-01-07: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/gn/gn/package.nix b/pkgs/by-name/gn/gn/package.nix index 6dc3f07a3613..66f02fcc542a 100644 --- a/pkgs/by-name/gn/gn/package.nix +++ b/pkgs/by-name/gn/gn/package.nix @@ -11,11 +11,11 @@ version ? # This is a workaround for update-source-version to be able to update this let - _version = "0-unstable-2026-01-07"; + _version = "0-unstable-2026-03-05"; in _version, - rev ? "5550ba0f4053c3cbb0bff3d60ded9d867b6fa371", - hash ? "sha256-SoXVnpCuNee80N4YdsTEHQd3jZNoHOwKVP6O8a67Ym0=", + rev ? "d8c2f07d653520568da7cace755a87dad241b72d", + hash ? "sha256-3AfExm7NL5GJXyC5JCPbGC70D59doRfIZIgpt6MLy9Y=", }: stdenv.mkDerivation { No auto update branch exists Old version 0-unstable-2026-01-07" not present in staging derivation file with contents: { stdenv, lib, fetchgit, cctools, ninja, python3, # Note: Please use the recommended version for Chromium stable, i.e. from # /pkgs/applications/networking/browsers/chromium/info.json version ? # This is a workaround for update-source-version to be able to update this let _version = "0-unstable-2026-02-05"; in _version, rev ? "304bbef6c7e9a86630c12986b99c8654eb7fe648", hash ? "sha256-wFCuu4GR0N7QZCwT8UAhqH5moicYQjZ4ZLI58AM4pJ0=", }: stdenv.mkDerivation { pname = "gn"; inherit version; src = fetchgit { url = "https://gn.googlesource.com/gn"; inherit rev hash; leaveDotGit = true; deepClone = true; postFetch = '' cd "$out" mkdir .nix-files git rev-parse --short=12 HEAD > .nix-files/REV_SHORT git describe --match initial-commit | cut -d- -f3 > .nix-files/REV_NUM find "$out" -name .git -print0 | xargs -0 rm -rf ''; }; nativeBuildInputs = [ ninja python3 ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ cctools ]; env.NIX_CFLAGS_COMPILE = "-Wno-error"; # Relax hardening as otherwise gn unstable 2024-06-06 and later fail with: # cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security] hardeningDisable = [ "format" ]; configurePhase = '' runHook preConfigure python build/gen.py --no-last-commit-position cat > out/last_commit_position.h << EOF #ifndef OUT_LAST_COMMIT_POSITION_H_ #define OUT_LAST_COMMIT_POSITION_H_ #define LAST_COMMIT_POSITION_NUM $(<.nix-files/REV_NUM) #define LAST_COMMIT_POSITION "$(<.nix-files/REV_NUM) ($(<.nix-files/REV_SHORT))" #endif // OUT_LAST_COMMIT_POSITION_H_ EOF runHook postConfigure ''; buildPhase = '' runHook preBuild ninja -v -j $NIX_BUILD_CORES -C out gn runHook postBuild ''; installPhase = '' runHook preInstall install -vD out/gn "$out/bin/gn" runHook postInstall ''; setupHook = ./setup-hook.sh; passthru.updateScript = ./update.sh; meta = { description = "Meta-build system that generates build files for Ninja"; mainProgram = "gn"; homepage = "https://gn.googlesource.com/gn"; license = lib.licenses.bsd3; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ marcin-serwin emilylange ]; }; }