|
|
|
@ -93,28 +93,6 @@ let |
|
|
|
|
rustc = toolchain; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO build all of these |
|
|
|
|
#build_debug_and_release = (target: { |
|
|
|
|
# debug = (compile { |
|
|
|
|
# inherit system target gitVersion pkgsSrc cargo2nixOverlay; |
|
|
|
|
# release = false; |
|
|
|
|
# }).workspace.garage { compileMode = "build"; }; |
|
|
|
|
|
|
|
|
|
# release = (compile { |
|
|
|
|
# inherit system target gitVersion pkgsSrc cargo2nixOverlay; |
|
|
|
|
# release = true; |
|
|
|
|
# }).workspace.garage { compileMode = "build"; }; |
|
|
|
|
#}); |
|
|
|
|
|
|
|
|
|
#test = (rustPkgs: |
|
|
|
|
# pkgs.symlinkJoin { |
|
|
|
|
# name = "garage-tests"; |
|
|
|
|
# paths = |
|
|
|
|
# builtins.map (key: rustPkgs.workspace.${key} { compileMode = "test"; }) |
|
|
|
|
# (builtins.attrNames rustPkgs.workspace); |
|
|
|
|
# }); |
|
|
|
|
|
|
|
|
|
builtFeatures = if features != null then |
|
|
|
|
features |
|
|
|
|
else ( |
|
|
|
@ -186,13 +164,4 @@ in { |
|
|
|
|
} // buildEnv); |
|
|
|
|
|
|
|
|
|
shell = pkgsCross.mkShell buildEnv; |
|
|
|
|
|
|
|
|
|
# TODO |
|
|
|
|
#clippy = { |
|
|
|
|
# amd64 = (compile { |
|
|
|
|
# inherit system gitVersion pkgsSrc cargo2nixOverlay; |
|
|
|
|
# target = "x86_64-unknown-linux-musl"; |
|
|
|
|
# compiler = "clippy"; |
|
|
|
|
# }).workspace.garage { compileMode = "build"; }; |
|
|
|
|
#}; |
|
|
|
|
} |
|
|
|
|