···11-# New rust versions should first go to staging.
22-# Things to check after updating:
33-# 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin:
44-# i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github
55-# This testing can be also done by other volunteers as part of the pull
66-# request review, in case platforms cannot be covered.
77-# 2. The LLVM version used for building should match with rust upstream.
88-# Check the version number in the src/llvm-project git submodule in:
99-# https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules
1010-# 3. Firefox and Thunderbird should still build on x86_64-linux.
1111-1212-{ stdenv, lib
1313-, buildPackages
1414-, newScope, callPackage
1515-, CoreFoundation, Security
1616-, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
1717-, makeRustPlatform
1818-, llvmPackages_5, llvm_11
1919-} @ args:
2020-2121-import ./default.nix {
2222- rustcVersion = "1.49.0";
2323- rustcSha256 = "0yf7kll517398dgqsr7m3gldzj0iwsp3ggzxrayckpqzvylfy2mm";
2424-2525- llvmSharedForBuild = pkgsBuildBuild.llvm_11.override { enableSharedLibraries = true; };
2626- llvmSharedForHost = pkgsBuildHost.llvm_11.override { enableSharedLibraries = true; };
2727- llvmSharedForTarget = pkgsBuildTarget.llvm_11.override { enableSharedLibraries = true; };
2828-2929- llvmBootstrapForDarwin = llvmPackages_5;
3030-3131- # For use at runtime
3232- llvmShared = llvm_11.override { enableSharedLibraries = true; };
3333-3434- # Note: the version MUST be one version prior to the version we're
3535- # building
3636- bootstrapVersion = "1.48.0";
3737-3838- # fetch hashes by running `print-hashes.sh ${bootstrapVersion}`
3939- bootstrapHashes = {
4040- i686-unknown-linux-gnu = "7fdb8836a1f0427d5b47e6a2d496f67ebff04350407411f57cf20c9b3544e26f";
4141- x86_64-unknown-linux-gnu = "950420a35b2dd9091f1b93a9ccd5abc026ca7112e667f246b1deb79204e2038b";
4242- x86_64-unknown-linux-musl = "4ed9627f57b4e0b9807fc5e7513d9731f4791668b7f875b9e44e65e21072c56f";
4343- arm-unknown-linux-gnueabihf = "e68a81eebd4570343a0fc35cb8ee24cad911d6cee2e374f284b76546ca6636d5";
4444- armv7-unknown-linux-gnueabihf = "3aed4a63ebdd57690a31d11afbe95e6407edc224a6769be5694a1ed43bf899cb";
4545- aarch64-unknown-linux-gnu = "c4769418d8d89f432e4a3a21ad60f99629e4b13bbfc29aef7d9d51c4e8ee8a8a";
4646- aarch64-unknown-linux-musl = "ac4de580a28e45a9773b389b296d13bfeeb08263cb1f8343859577a54940dae9";
4747- x86_64-apple-darwin = "20e727cad10f43e3abcedb2a80979ae26923038e0e8a855e8a783da255054113";
4848- powerpc64le-unknown-linux-gnu = "e6457a0214f3b1b04bd5b2618bba7e3826e254216420dede2971b571a1c13bb1";
4949- };
5050-5151- selectRustPackage = pkgs: pkgs.rust_1_49;
5252-5353- rustcPatches = [
5454- ];
5555-}
5656-5757-(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_5" "llvm_11"])
+57
pkgs/development/compilers/rust/1_50.nix
···11+# New rust versions should first go to staging.
22+# Things to check after updating:
33+# 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin:
44+# i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github
55+# This testing can be also done by other volunteers as part of the pull
66+# request review, in case platforms cannot be covered.
77+# 2. The LLVM version used for building should match with rust upstream.
88+# Check the version number in the src/llvm-project git submodule in:
99+# https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules
1010+# 3. Firefox and Thunderbird should still build on x86_64-linux.
1111+1212+{ stdenv, lib
1313+, buildPackages
1414+, newScope, callPackage
1515+, CoreFoundation, Security
1616+, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
1717+, makeRustPlatform
1818+, llvmPackages_5, llvm_11
1919+} @ args:
2020+2121+import ./default.nix {
2222+ rustcVersion = "1.50.0";
2323+ rustcSha256 = "0pjs7j62maiyvkmhp9zrxl528g2n0fphp4rq6ap7aqdv0a6qz5wm";
2424+2525+ llvmSharedForBuild = pkgsBuildBuild.llvm_11.override { enableSharedLibraries = true; };
2626+ llvmSharedForHost = pkgsBuildHost.llvm_11.override { enableSharedLibraries = true; };
2727+ llvmSharedForTarget = pkgsBuildTarget.llvm_11.override { enableSharedLibraries = true; };
2828+2929+ llvmBootstrapForDarwin = llvmPackages_5;
3030+3131+ # For use at runtime
3232+ llvmShared = llvm_11.override { enableSharedLibraries = true; };
3333+3434+ # Note: the version MUST be one version prior to the version we're
3535+ # building
3636+ bootstrapVersion = "1.49.0";
3737+3838+ # fetch hashes by running `print-hashes.sh ${bootstrapVersion}`
3939+ bootstrapHashes = {
4040+ i686-unknown-linux-gnu = "5371bfa2c8e566aa283acdfa93d24b981c789d7c040ac1ca74e76bff1c7f6598";
4141+ x86_64-unknown-linux-gnu = "8b14446df82f3707d69cf58fed92f18e0bff91621c62baf89288ef70e3e92981";
4242+ x86_64-unknown-linux-musl = "f92a5a4adcfac4206a223d089a364a8375d1b6f112f3f2efa3f6d53d08a61904";
4343+ arm-unknown-linux-gnueabihf = "e5d93576eef874a9b22be9aa157cac5c8cdebebde8b57f0693248d4a589df42c";
4444+ armv7-unknown-linux-gnueabihf = "34ba3c979b144ef27d3c71d177cc1774551edf26e79d36719c86a51d9b9e34c0";
4545+ aarch64-unknown-linux-gnu = "b551bd482041307fa3373a687d6d6a2c4c0931c2e0a68b8b75dc80bc5cf5f002";
4646+ aarch64-unknown-linux-musl = "0a43d96a508c720520328112d609916d062f866a5c35f1db8f906284035d6d98";
4747+ x86_64-apple-darwin = "fe3e248bc4b0ee0a2595693687ad845c8a8bda824a56c9321520bcca02433716";
4848+ powerpc64le-unknown-linux-gnu = "365d7721dd2521e5dad12aa73651bad2be375e798e443636d2c523cad5b54359";
4949+ };
5050+5151+ selectRustPackage = pkgs: pkgs.rust_1_50;
5252+5353+ rustcPatches = [
5454+ ];
5555+}
5656+5757+(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_5" "llvm_11"])