nixpkgs/pkgs/stdenv
sternenseemann b0c26d2c40 pkgs/stdenv/make-derivation: move hostSuffix before the version
Adding the hostSuffix to the end of the derivation's name is problematic
since some stuff, including user facing programs like nix-env rely on
the behavior of parseDrvName instead of pname and version.
builtins.parseDrvName currently thinks that the cross compilation target
added via hostSuffix is part of the version. This has the practical
consequence for example that nix-env would think a cross compiled
derivation would be an updated version of a native derivation of the
same package and version — breaking user's profiles.

We can easily prevent this by moving the hostSuffix in between pname and
version. In case name is passed to mkDerivation this is of course not
possible and we are forced to fall back to the old behavior.

This change could serve as a replacement for the migitation we
introduced with the -static appendix to pname in order to avoid
confusion between nix and nixStatic as outlined in the comment added
with this commit.
2021-04-26 20:40:52 +02:00
..
cross llvmPackages: select version by targetPlatform 2021-01-11 11:10:53 +01:00
custom stdenv: allow custom stdenv to take crossOverlays 2019-01-07 20:53:10 -06:00
cygwin treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
darwin darwin: move deployment target and sdk version to platform config 2021-03-26 15:10:22 +09:00
freebsd stdenv/freebsd/cc: make overrideable fixing nixpkgs eval 2021-04-15 12:49:41 +02:00
generic pkgs/stdenv/make-derivation: move hostSuffix before the version 2021-04-26 20:40:52 +02:00
linux stdenv/bootstrap-tools: remove powerpc64 special case 2021-03-15 19:27:41 -07:00
native stdenv/{native,nix}: add lib to cc-wrapper args 2021-04-21 11:56:55 -04:00
nix stdenv/{native,nix}: add lib to cc-wrapper args 2021-04-21 11:56:55 -04:00
adapters.nix treewide: stdenv.lib -> lib 2021-01-27 13:08:40 +07:00
booter.nix pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery 2019-12-30 18:09:45 -05:00
common-path.nix
default.nix stdenv: add powerpc64-linux 2021-01-30 12:34:30 -08:00