···526 # preventing compilations of chromium with versions below their intended version, not about running the very
527 # exact version or even running a newer version.
528 ./patches/chromium-136-nodejs-assert-minimal-version-instead-of-exact-match.patch
000000000000000000529 ];
530531 postPatch =
···526 # preventing compilations of chromium with versions below their intended version, not about running the very
527 # exact version or even running a newer version.
528 ./patches/chromium-136-nodejs-assert-minimal-version-instead-of-exact-match.patch
529+ ]
530+ ++ lib.optionals (chromiumVersionAtLeast "138") [
531+ (fetchpatch {
532+ # Unbreak building with Rust 1.89+ which introduced
533+ # a new mismatched_lifetime_syntaxes lint.
534+ # https://issues.chromium.org/issues/424424323
535+ name = "chromium-138-rust-1.86-mismatched_lifetime_syntaxes.patch";
536+ # https://chromium-review.googlesource.com/c/chromium/src/+/6658267
537+ url = "https://chromium.googlesource.com/chromium/src/+/94a87ff38c51fd1a71980a5051d3553978391608^!?format=TEXT";
538+ decode = "base64 -d";
539+ includes = [ "build/rust/cargo_crate.gni" ];
540+ hash = "sha256-xf1Jq5v3InXkiVH0uT7+h1HPwZse5MDcHKuJNjSLR6k=";
541+ })
542+ ]
543+ ++ lib.optionals (!chromiumVersionAtLeast "138") [
544+ # Rebased variant of the patch above for
545+ # electron 35 (M134) and 36 (M136)
546+ ./patches/chromium-134-rust-1.86-mismatched_lifetime_syntaxes.patch
547 ];
548549 postPatch =
···1{
2 lib,
3 buildPythonPackage,
4- fetchPypi,
5 lark,
6 pythonOlder,
7 setuptools,
···1415 disabled = pythonOlder "3.6";
1617- src = fetchPypi {
18- inherit pname version;
19- hash = "sha256-+uYrKkGmda0zDRNNgldlJtt1X3K70OWoUN49hfwkxA4=";
0020 };
2122 build-system = [ setuptools ];
···34 This parser only supports HCL2 and isn't backwards compatible with HCL v1.
35 It can be used to parse any HCL2 config file such as Terraform.
36 '';
37- # Although this is the main homepage from PyPi but it is also a homepage
38- # of another PyPi package (python-hcl2). But these two are different.
39- homepage = "https://github.com/amplify-education/python-hcl2";
40 license = licenses.mit;
41 maintainers = with maintainers; [ anhdle14 ];
42 mainProgram = "hcl2tojson";
···1{
2 lib,
3 buildPythonPackage,
4+ fetchFromGitHub,
5 lark,
6 pythonOlder,
7 setuptools,
···1415 disabled = pythonOlder "3.6";
1617+ src = fetchFromGitHub {
18+ owner = "bridgecrewio";
19+ repo = "python-hcl2";
20+ tag = version;
21+ hash = "sha256-Auk5xDLw2UhMzWa7YMKzwUSjhD9s6xHt8RcXMzzL8M0=";
22 };
2324 build-system = [ setuptools ];
···36 This parser only supports HCL2 and isn't backwards compatible with HCL v1.
37 It can be used to parse any HCL2 config file such as Terraform.
38 '';
39+ homepage = "https://github.com/bridgecrewio/python-hcl2";
0040 license = licenses.mit;
41 maintainers = with maintainers; [ anhdle14 ];
42 mainProgram = "hcl2tojson";