1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/compilers
Maximilian Bosch 6b23cfe689
rustPlatform: add buildAndTestSubdir-argument
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
2020-05-13 01:47:17 +02:00
..
abcl abcl: 1.6.0 -> 1.6.1 2020-05-04 19:56:43 -07:00
acme
adoptopenjdk-bin
adoptopenjdk-icedtea-web
aldor
aliceml
apache-flex-sdk
arachne-pnr
asn1c
aspectj
ats
ats2
avian
avra treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
bigloo
binaryen binaryen: 91 -> 93 2020-05-02 02:50:12 +00:00
bluespec
bs-platform
bupc
carp
ccl
chez
chicken treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
clasp
clean
closure closurecompiler: 20200315 -> 20200406 2020-05-04 18:15:39 +00:00
cmdstan
cmucl
colm
compcert
computecpp
coreclr
crystal Merge pull request #85445 from manveru/crystal-all-llvm 2020-05-07 07:49:03 -04:00
cudatoolkit
dale
dev86
dmd Patch bash in test6952.d 2020-04-29 07:31:52 +08:00
dotnet dotnet: add initial support for arm64 2020-04-27 14:16:00 +12:00
dtc
ecl
edk2 ed2k/OVMF: Put URLs in quotes 2020-05-04 16:00:37 +02:00
eli
elm makeDotElm: fix 2020-05-03 21:54:20 +03:00
emscripten
eql
factor-lang
fasm fasm: 1.73.23 -> 1.73.24 2020-05-04 21:13:50 -07:00
flutter
flux
fpc lazarus: 2.0.6 -> 2.0.8 2020-05-05 19:15:24 +00:00
fsharp
fsharp41
fstar fstar: install completions 2020-04-29 04:20:00 -05:00
gambit
gavrasm
gcc gcc10, gfortran10, gnat10: init at 10.1.0 2020-05-08 07:49:35 +02:00
gcc-arm-embedded
gcl
gerbil
gforth treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
ghc Nail a few typos 2020-05-08 21:11:46 +02:00
ghcjs-ng
ghdl
gleam
glslang
gnatboot
gnu-cobol treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
gnu-smalltalk
go go: 1.14.1 -> 1.14.2 2020-05-05 17:59:19 +01:00
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 kotlin: 1.3.71 -> 1.3.72 2020-05-02 13:16:07 +00:00
ldc ldc: 1.17.0 -> 1.20.1 2020-04-29 07:31:53 +08:00
llvm Merge master into staging-next 2020-05-05 19:51:09 +02:00
manticore
matter-compiler
mcpp
mercury mercury: 20.01.1 -> 20.01.2 2020-05-08 08:11:38 +00:00
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 open-watcom-bin: fix EOVERFLOW on stat() calls 2020-05-08 17:29:38 +02:00
opendylan
openjdk treewide: per RFC45, remove more unquoted URLs 2020-05-08 15:20:47 +02:00
openspin
oraclejdk
orc
osl
owl-lisp
pakcs
pforth
picat
polyml
ponyc
purescript
qbe
rasm
reason
rgbds
rust rustPlatform: add buildAndTestSubdir-argument 2020-05-13 01:47:17 +02:00
sagittarius-scheme
sbcl
scala
sdcc
seexpr
serpent
shaderc
smlnj
solc
souffle
spirv-llvm-translator
squeak
stalin
swi-prolog
swift
terra
teyjus
tinycc
tinygo
unison unison-ucm: 1.0.M1j-alpha -> 1.0.M1l-alpha 2020-04-28 12:04:40 -07:00
urn
urweb
vala
vlang
wcc
wla-dx
x11basic
yap
yasm
yosys
z88dk
zasm
zig
zulu
zz