gn: 2168 -> 2233 (2024-05-03 -> 2025-04-28) (#403859)
This commit is contained in:
@@ -85,16 +85,6 @@ let
|
||||
url = "https://gn.googlesource.com/gn";
|
||||
inherit (upstream-info.deps.gn) rev hash;
|
||||
};
|
||||
|
||||
# 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" ];
|
||||
|
||||
# At the time of writing, gn is at v2024-05-13 and has a backported patch.
|
||||
# This patch appears to be already present in v2024-09-09 (from M130), which
|
||||
# results in the patch not applying and thus failing the build.
|
||||
# As a work around until gn is updated again, we filter specifically that patch out.
|
||||
patches = lib.filter (e: lib.getName e != "LFS64.patch") oldAttrs.patches;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -40,15 +40,6 @@ stdenv.mkDerivation {
|
||||
inherit rev sha256;
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "LFS64.patch";
|
||||
url = "https://gn.googlesource.com/gn/+/b5ff50936a726ff3c8d4dfe2a0ae120e6ce1350d%5E%21/?format=TEXT";
|
||||
decode = "base64 -d";
|
||||
hash = "sha256-/kh8t/Ip1EG2OIhydS//st/C80KJ4P31vGx7j8QpFh0=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
ninja
|
||||
python3
|
||||
@@ -58,6 +49,9 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
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" ];
|
||||
|
||||
buildPhase = ''
|
||||
python build/gen.py --no-last-commit-position
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ callPackage, ... }@args:
|
||||
|
||||
callPackage ./generic.nix args {
|
||||
# Note: Please use the recommended version for Chromium stabe, i.e. from
|
||||
# <nixpkgs>/pkgs/applications/networking/browsers/chromium/upstream-info.nix
|
||||
rev = "df98b86690c83b81aedc909ded18857296406159";
|
||||
revNum = "2168"; # git describe $rev --match initial-commit | cut -d- -f3
|
||||
version = "2024-05-13";
|
||||
sha256 = "sha256-mNoQeHSSM+rhR0UHrpbyzLJC9vFqfxK1SD0X8GiRsqw=";
|
||||
# Note: Please use the recommended version for Chromium stable, i.e. from
|
||||
# <nixpkgs>/pkgs/applications/networking/browsers/chromium/info.json
|
||||
rev = "85cc21e94af590a267c1c7a47020d9b420f8a033";
|
||||
revNum = "2233"; # git describe $rev --match initial-commit | cut -d- -f3
|
||||
version = "2025-04-28";
|
||||
sha256 = "sha256-+nKP2hBUKIqdNfDz1vGggXSdCuttOt0GwyGUQ3Z1ZHI=";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user