File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2727 nixpkgsFor = forAllSystems makeOverlay ;
2828 in
2929 {
30+ overlays = nixpkgsFor ;
3031 packages = forAllSystems ( system :
3132 let pkgs = nixpkgsFor . ${ system } ;
3233 in
Original file line number Diff line number Diff line change 11# Takes flake inputs as an attribute set, and a path to the workspace root.
2- # Output is a function that takes a system and produces an overlay for
3- # building the projects in this workspace.
2+ # Output is a an overlay for # building the projects in this
3+ # workspace.
44#
55# Specifically, we ensure there's a configured craneLib with
66# arch-specific rust args for simd instructions, and we provide a
99#
1010# It also makes sure we can build poetry projects, for better or worse.
1111let rustFlagsFor = {
12- x86_64-linux = "-C target-feature=+sse3,+avx,+avx2" ;
13- aarch64-linux = "-C target-feature=+v7,+neon" ;
12+ x86 = "-C target-feature=+sse3,+avx,+avx2" ;
13+ arm = "-C target-feature=+v7,+neon" ;
1414 } ;
1515in
1616path :
@@ -30,7 +30,7 @@ import nixpkgs {
3030 buildInputs = [
3131 final . openssl
3232 ] ;
33- RUSTFLAGS = rustFlagsFor . ${ system } ;
33+ RUSTFLAGS = if final . stdenv . hostPlatform . isAarch64 then rustFlagsFor . arm else rustFlagsFor . x86 ;
3434 src = craneLib . cleanCargoSource ( craneLib . path path ) ;
3535 strictDeps = true ;
3636 doCheck = false ;
Original file line number Diff line number Diff line change 1+ pub mod aws;
You can’t perform that action at this time.
0 commit comments