-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
nixVersions.nix_2_27: init (and refactor _2_26) #394957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9aa683e
nixVersions.*: Remove coroutine sp patch and factor out nixDependencies
roberth b3e4aff
nixVersions.nix_2_26: Move .version to parameter
roberth 6b1e374
nixVersions.nix_2_26: Move source.json to parameter
roberth d087e8e
nixVersions.nix_2_26: vendor/2_26/ -> modular/
roberth f670684
nixVersions.nix_2_26: Add README to modular/
roberth 53fa586
nixVersions.nix_2_27: init
roberth a4f7e16
Format
roberth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| lib, | ||
| generateSplicesForMkScope, | ||
| newScope, | ||
| splicePackages, | ||
| callPackage, | ||
| }: | ||
|
|
||
| let | ||
| otherSplices = generateSplicesForMkScope [ "nixDependencies" ]; | ||
| in | ||
| lib.makeScopeWithSplicing' | ||
| { | ||
| inherit splicePackages; | ||
| inherit newScope; # layered directly on pkgs, unlike nixComponents above | ||
| } | ||
| { | ||
| # Technically this should point to the nixDependencies set only, but | ||
| # this is ok as long as the scopes don't intersect. | ||
| inherit otherSplices; | ||
| f = (callPackage ./dependencies.nix { }).scopeFunction; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| regular@{ | ||
| lib, | ||
| boehmgc, | ||
| aws-sdk-cpp, | ||
| fetchFromGitHub, | ||
| pkgs, | ||
| stdenv, | ||
| }: | ||
|
|
||
| let | ||
| stdenv = | ||
| if regular.stdenv.isDarwin && regular.stdenv.isx86_64 then darwinStdenv else regular.stdenv; | ||
|
|
||
| # Fix the following error with the default x86_64-darwin SDK: | ||
| # | ||
| # error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer | ||
| # | ||
| # Despite the use of the 10.13 deployment target here, the aligned | ||
| # allocation function Clang uses with this setting actually works | ||
| # all the way back to 10.6. | ||
| darwinStdenv = regular.pkgs.overrideSDK regular.stdenv { darwinMinVersion = "10.13"; }; | ||
| in | ||
|
|
||
| { | ||
| scopeFunction = scope: { | ||
| inherit stdenv; | ||
|
|
||
| boehmgc = regular.boehmgc.override { enableLargeConfig = true; }; | ||
|
|
||
| # old nix fails to build with newer aws-sdk-cpp and the patch doesn't apply | ||
| aws-sdk-cpp-old = | ||
| (regular.aws-sdk-cpp.override { | ||
| apis = [ | ||
| "s3" | ||
| "transfer" | ||
| ]; | ||
| customMemoryManagement = false; | ||
| }).overrideAttrs | ||
| (args: rec { | ||
| # intentionally overriding postPatch | ||
| version = "1.9.294"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "aws"; | ||
| repo = "aws-sdk-cpp"; | ||
| rev = version; | ||
| hash = "sha256-Z1eRKW+8nVD53GkNyYlZjCcT74MqFqqRMeMc33eIQ9g="; | ||
| }; | ||
| postPatch = | ||
| '' | ||
| # Avoid blanket -Werror to evade build failures on less | ||
| # tested compilers. | ||
| substituteInPlace cmake/compiler_settings.cmake \ | ||
| --replace '"-Werror"' ' ' | ||
|
|
||
| # Missing includes for GCC11 | ||
| sed '5i#include <thread>' -i \ | ||
| aws-cpp-sdk-cloudfront-integration-tests/CloudfrontOperationTest.cpp \ | ||
| aws-cpp-sdk-cognitoidentity-integration-tests/IdentityPoolOperationTest.cpp \ | ||
| aws-cpp-sdk-dynamodb-integration-tests/TableOperationTest.cpp \ | ||
| aws-cpp-sdk-elasticfilesystem-integration-tests/ElasticFileSystemTest.cpp \ | ||
| aws-cpp-sdk-lambda-integration-tests/FunctionTest.cpp \ | ||
| aws-cpp-sdk-mediastore-data-integration-tests/MediaStoreDataTest.cpp \ | ||
| aws-cpp-sdk-queues/source/sqs/SQSQueue.cpp \ | ||
| aws-cpp-sdk-redshift-integration-tests/RedshiftClientTest.cpp \ | ||
| aws-cpp-sdk-s3-crt-integration-tests/BucketAndObjectOperationTest.cpp \ | ||
| aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp \ | ||
| aws-cpp-sdk-s3control-integration-tests/S3ControlTest.cpp \ | ||
| aws-cpp-sdk-sqs-integration-tests/QueueOperationTest.cpp \ | ||
| aws-cpp-sdk-transfer-tests/TransferTests.cpp | ||
| # Flaky on Hydra | ||
| rm aws-cpp-sdk-core-tests/aws/auth/AWSCredentialsProviderTest.cpp | ||
| # Includes aws-c-auth private headers, so only works with submodule build | ||
| rm aws-cpp-sdk-core-tests/aws/auth/AWSAuthSignerTest.cpp | ||
| # TestRandomURLMultiThreaded fails | ||
| rm aws-cpp-sdk-core-tests/http/HttpClientTest.cpp | ||
| '' | ||
| + lib.optionalString aws-sdk-cpp.stdenv.hostPlatform.isi686 '' | ||
| # EPSILON is exceeded | ||
| rm aws-cpp-sdk-core-tests/aws/client/AdaptiveRetryStrategyTest.cpp | ||
| ''; | ||
|
|
||
| patches = (args.patches or [ ]) ++ [ ./patches/aws-sdk-cpp-TransferManager-ContentEncoding.patch ]; | ||
|
|
||
| # only a stripped down version is build which takes a lot less resources to build | ||
| requiredSystemFeatures = [ ]; | ||
| }); | ||
|
|
||
| aws-sdk-cpp = | ||
| (regular.aws-sdk-cpp.override { | ||
| apis = [ | ||
| "s3" | ||
| "transfer" | ||
| ]; | ||
| customMemoryManagement = false; | ||
| }).overrideAttrs | ||
| { | ||
| # only a stripped down version is build which takes a lot less resources to build | ||
| requiredSystemFeatures = [ ]; | ||
| }; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # `nix/modular` | ||
|
|
||
| This directory follows a directory structure similar to that in the upstream repo, | ||
| to make comparisons easier. | ||
|
|
||
| The files are maintained separately from the upstream repo, so differences are expected. |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.