mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
6b23cfe689
There are several tarballs (such as the `rust-lang/rust`-source) with a `Cargo.toml` at root and several sub-packages (with their own Cargo.toml) without using workspaces[1]. In such a case it's needed to move into a subdir to only build the specified sub-package (e.g. `rustfmt` or `rsl`), however the artifacts are at `/target` in the root-dir of the build environment. This breaks the build since `buildRustPackage` searches for executables in `target` (which is at the build-env's root) at the end of the `buildPhase`. With the optional `buildAndTestSubdir`-argument, the builder moves into the specified subdir using `pushd`/`popd` during `buildPhase` and `checkPhase`. Also moved the logic to find executables and libs to the end of the `buildPhase` from a custom `postBuild`-hook to fix packages with custom `build`/`install`-procedures such as `uutils-coreutils`. [1] https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html |
||
---|---|---|
.. | ||
abcl | ||
acme | ||
adoptopenjdk-bin | ||
adoptopenjdk-icedtea-web | ||
aldor | ||
aliceml | ||
apache-flex-sdk | ||
arachne-pnr | ||
asn1c | ||
aspectj | ||
ats | ||
ats2 | ||
avian | ||
avra | ||
bigloo | ||
binaryen | ||
bluespec | ||
bs-platform | ||
bupc | ||
carp | ||
ccl | ||
chez | ||
chicken | ||
clasp | ||
clean | ||
closure | ||
cmdstan | ||
cmucl | ||
colm | ||
compcert | ||
computecpp | ||
coreclr | ||
crystal | ||
cudatoolkit | ||
dale | ||
dev86 | ||
dmd | ||
dotnet | ||
dtc | ||
ecl | ||
edk2 | ||
eli | ||
elm | ||
emscripten | ||
eql | ||
factor-lang | ||
fasm | ||
flutter | ||
flux | ||
fpc | ||
fsharp | ||
fsharp41 | ||
fstar | ||
gambit | ||
gavrasm | ||
gcc | ||
gcc-arm-embedded | ||
gcl | ||
gerbil | ||
gforth | ||
ghc | ||
ghcjs-ng | ||
ghdl | ||
gleam | ||
glslang | ||
gnatboot | ||
gnu-cobol | ||
gnu-smalltalk | ||
go | ||
go-jsonnet | ||
gprolog | ||
graalvm | ||
gwt | ||
halide | ||
haxe | ||
hhvm | ||
hop | ||
iasl | ||
inform7 | ||
intel-graphics-compiler | ||
intercal | ||
ios-cross-compile | ||
ispc | ||
jasmin | ||
javacard-devkit | ||
jetbrains-jdk | ||
jsonnet | ||
julia | ||
jwasm | ||
kotlin | ||
ldc | ||
llvm | ||
manticore | ||
matter-compiler | ||
mcpp | ||
mercury | ||
meta-environment/meta-build-env | ||
mezzo | ||
microscheme | ||
mint | ||
mit-scheme | ||
mkcl | ||
mlton | ||
mono | ||
mosml | ||
mozart | ||
mruby | ||
nasm | ||
neko | ||
nextpnr | ||
nim | ||
nvidia-cg-toolkit | ||
obliv-c | ||
ocaml | ||
opa | ||
open-watcom-bin | ||
opendylan | ||
openjdk | ||
openspin | ||
oraclejdk | ||
orc | ||
osl | ||
owl-lisp | ||
pakcs | ||
pforth | ||
picat | ||
polyml | ||
ponyc | ||
purescript | ||
qbe | ||
rasm | ||
reason | ||
rgbds | ||
rust | ||
sagittarius-scheme | ||
sbcl | ||
scala | ||
sdcc | ||
seexpr | ||
serpent | ||
shaderc | ||
smlnj | ||
solc | ||
souffle | ||
spirv-llvm-translator | ||
squeak | ||
stalin | ||
swi-prolog | ||
swift | ||
terra | ||
teyjus | ||
tinycc | ||
tinygo | ||
unison | ||
urn | ||
urweb | ||
vala | ||
vlang | ||
wcc | ||
wla-dx | ||
x11basic | ||
yap | ||
yasm | ||
yosys | ||
z88dk | ||
zasm | ||
zig | ||
zulu | ||
zz |