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/02139vbq5iva5mfg1a1rpy7lxgb8aqgr-packages.json.drv building '/nix/store/02139vbq5iva5mfg1a1rpy7lxgb8aqgr-packages.json.drv'... Going to be running update for following packages: - gn-0-unstable-2025-12-01 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - gn-0-unstable-2025-12-01: UPDATING ... - gn-0-unstable-2025-12-01: 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 edfc0f2536e5..6dc3f07a3613 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-2025-12-01"; + _version = "0-unstable-2026-01-07"; in _version, - rev ? "6e0b557db44b3c164094e57687d20ba036a80667", - hash ? "sha256-04h38X/hqWwMiAOVsVu4OUrt8N+S7yS/JXc5yvRGo1I=", + rev ? "5550ba0f4053c3cbb0bff3d60ded9d867b6fa371", + hash ? "sha256-SoXVnpCuNee80N4YdsTEHQd3jZNoHOwKVP6O8a67Ym0=", }: stdenv.mkDerivation { No auto update branch exists Old version 0-unstable-2025-12-01" 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-01-07"; in _version, rev ? "5550ba0f4053c3cbb0bff3d60ded9d867b6fa371", hash ? "sha256-SoXVnpCuNee80N4YdsTEHQd3jZNoHOwKVP6O8a67Ym0=", }: 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 ]; }; }