File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ in rec {
32
32
supportedSystems = if hostInfo . kernel . name == "linux" then [
33
33
"aarch64-linux"
34
34
"x86_64-linux"
35
- ] else if host == "x86_64-darwin" then [
36
- # "aarch64-darwin" # Temporarily broken. TODO: fix
37
- "x86_64-darwin"
38
- ] else if host == "aarch64-darwin" then
35
+ ] else if host == "x86_64-darwin" then
36
+ [
37
+ # "aarch64-darwin" # Temporarily broken. TODO: fix
38
+ "x86_64-darwin"
39
+ ]
40
+ else if host == "aarch64-darwin" then
39
41
[ "aarch64-darwin" ]
40
42
else
41
43
throw "unsupported host system ${ host } " ;
@@ -85,8 +87,9 @@ in rec {
85
87
86
88
crossParams = if host == target then {
87
89
cc = pkgs . stdenv . cc ;
88
- extraBuildEnv = {
89
- RUST_SRC_PATH = "${ pkgs . rust . packages . stable . rustPlatform . rustLibSrc } " ;
90
+ extraBuildEnv = {
91
+ RUST_SRC_PATH =
92
+ "${ pkgs . rust . packages . stable . rustPlatform . rustLibSrc } " ;
90
93
} ;
91
94
} else rec {
92
95
cc = pkgsCross . stdenv . cc ;
@@ -107,6 +110,7 @@ in rec {
107
110
doCheck = host == target ;
108
111
propagatedBuildInputs = [ crossParams . cc ] ;
109
112
inherit buildInputs ;
113
+ cargoBuildOptions = args : args ++ [ "--locked" ] ;
110
114
CARGO_BUILD_TARGET = buildCfg . rustTarget ;
111
115
} // crossParams . extraBuildEnv ) ;
112
116
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ sed -i "$sedcmd" "$cargotoml"
20
20
21
21
git add " $cargotoml "
22
22
git commit -m " bump version to v$version "
23
-
23
+ cargo lock
You can’t perform that action at this time.
0 commit comments