-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
Update Boost to 1.65 and make it default #29814
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
16 commits
Select commit
Hold shift + click to select a range
f804a8f
encrypted devices: don't override default cryptoModules
Lassulus 77be4d9
encrypted devices: provide working example
Lassulus 6838762
Merge pull request #30477 from Lassulus/encrypted-devices
Mic92 cd52a3d
aiger: fix stupid incorrect download link
thoughtpolice 774d058
nixos/tests: unbreak prometheus test
bjornfor 12d6fed
nixos/tests: enable prometheus test
bjornfor 38ffe0e
steam-run-native: init
abbradar 188a413
sc2-headless: init at 3.17
155b163
Merge pull request #30481 from obsidiansystems/sc2-headless
Ericson2314 6e1f864
sc2-headless: License is unfree
Ericson2314 2a036ca
buildFHSEnv: fix NIX_* compiler flags
abbradar 23ea2e9
boost165: init at 1.65.1
abbradar c6c67c4
Merge branch 'master' into HEAD
abbradar b173651
boost: make 1.65 the default
abbradar e2a7f50
rstudio: enable parallel building
abbradar b1e4997
boost: add numpy support
abbradar 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
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
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
54 changes: 54 additions & 0 deletions
54
pkgs/applications/science/machine-learning/sc2-headless/default.nix
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,54 @@ | ||
| { stdenv | ||
| , lib | ||
| , fetchurl | ||
| , unzip | ||
| , licenseAccepted ? false | ||
| }: | ||
|
|
||
| if !licenseAccepted then throw '' | ||
| You must accept the Blizzard® Starcraft® II AI and Machine Learning License at | ||
| https://blzdistsc2-a.akamaihd.net/AI_AND_MACHINE_LEARNING_LICENSE.html | ||
| by setting nixpkgs config option 'sc2-headless.accept_license = true;' | ||
| '' | ||
| else assert licenseAccepted; | ||
| stdenv.mkDerivation rec { | ||
| version = "3.17"; | ||
| name = "sc2-headless-${version}"; | ||
|
|
||
| src = fetchurl { | ||
| url = "https://blzdistsc2-a.akamaihd.net/Linux/SC2.${version}.zip"; | ||
| sha256 = "1biyxpf7n95hali1pw30h91rhzrj6sbwrx6s52d00mlnwdhmf2v0"; | ||
| }; | ||
|
|
||
| unpackCmd = '' | ||
| unzip -P 'iagreetotheeula' $curSrc | ||
| ''; | ||
|
|
||
| nativeBuildInputs = [ unzip ]; | ||
|
|
||
| installPhase = '' | ||
| mkdir -p $out | ||
| cp -r . "$out" | ||
| rm -r $out/Libs | ||
| ''; | ||
|
|
||
| preFixup = '' | ||
| find $out -type f -print0 | while IFS=''' read -d ''' -r file; do | ||
| isELF "$file" || continue | ||
| patchelf \ | ||
| --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ | ||
| --set-rpath ${lib.makeLibraryPath [stdenv.cc.cc stdenv.cc.libc]} \ | ||
| "$file" | ||
| done | ||
| ''; | ||
|
|
||
| meta = { | ||
| platforms = stdenv.lib.platforms.linux; | ||
| description = "Starcraft II headless linux client for machine learning research"; | ||
| license = { | ||
| fullName = "BLIZZARD® STARCRAFT® II AI AND MACHINE LEARNING LICENSE"; | ||
| url = "https://blzdistsc2-a.akamaihd.net/AI_AND_MACHINE_LEARNING_LICENSE.html"; | ||
| free = false; | ||
| }; | ||
| }; | ||
| } |
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,12 @@ | ||
| { stdenv, callPackage, fetchurl, ... } @ args: | ||
|
|
||
| callPackage ./generic.nix (args // rec { | ||
| version = "1.65.1"; | ||
|
|
||
| src = fetchurl { | ||
| url = "mirror://sourceforge/boost/boost_1_65_1.tar.bz2"; | ||
| # SHA256 from http://www.boost.org/users/history/version_1_65_1.html | ||
| sha256 = "9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81"; | ||
| }; | ||
|
|
||
| }) |
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This build needs both boost155 and boost162?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a subpackage tree, some altcoins seem to need older Boosts.