nixpkgs/pkgs
Maximilian Bosch d2694d936e
rustPlatform: don't install artifacts modified by checkPhase
While the artifacts from `buildPhase` should be used for testing as
well, it should be avoided that those are modified during `checkPhase`.

This can happen if a package is built e.g. with special
`cargoBuildFlags` that don't apply to the `checkPhase`. In that case, a
binary would be installed into `$out` without those flags since
`checkPhase` overrides the binary in the `target`-directory.

This patch copies the state of `target/release` into a temporary
location at the end of the `buildPhase` and installs the results from
that temporary directory into `$out` while `checkPhase` can continue
using the configured build-dir.

cc #91689
Closes #93119
Closes #91191
2020-07-15 20:08:30 +02:00
..
applications Merge staging-next into staging 2020-07-11 09:00:18 +02:00
build-support rustPlatform: don't install artifacts modified by checkPhase 2020-07-15 20:08:30 +02:00
common-updater
data Merge pull request #92336 from romildo/upd.marwaita 2020-07-09 19:53:16 -03:00
desktops Merge pull request #92886 from jtojnar/fix/gse-sysmon 2020-07-10 20:35:40 +02:00
development Revert "buildRustPackage: fix cargoBuildFlags" 2020-07-14 17:39:09 +02:00
games
misc Merge master into staging-next 2020-07-11 08:59:54 +02:00
os-specific lvm2: passthru tests 2020-07-14 12:56:35 +02:00
servers Merge master into staging-next 2020-07-11 08:59:54 +02:00
shells Merge pull request #92718 from KyleOndy/enable-spaceship-prompt-on-darwin 2020-07-10 00:15:57 -05:00
stdenv
test
tools Merge staging-next into staging 2020-07-11 09:00:18 +02:00
top-level lvm2: rename enable_{cmdlib,dmeventd} to enable{Cmdlib,Dmeventd} 2020-07-14 12:00:33 +02:00