nixpkgs/pkgs
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
..
applications remmina: fix license 2021-04-26 18:38:47 +02:00
build-support Merge master into staging-next 2021-04-19 18:11:51 +00:00
common-updater common-updater-scripts: Support attribute lookup in flake 2021-04-24 04:52:48 +02:00
data Merge pull request #120628 from figsoda/qogir-theme 2021-04-26 08:54:06 -03:00
desktops Merge branch 'master' into staging-next 2021-04-25 02:50:48 +02:00
development Merge pull request #120734 from primeos/intel-media-driver 2021-04-26 18:33:06 +02:00
games soldat-unstable: run hooks for build and install phase 2021-04-25 14:11:16 +02:00
misc Merge pull request #119977 from malob/vimplugins-add-overrides 2021-04-26 06:43:48 +02:00
os-specific Merge pull request #120584 from Atemu/update/zen-kernels 2021-04-26 13:42:23 +02:00
pkgs-lib
servers Merge pull request #120520 from minijackson/jellyfin-remove-10.5 2021-04-26 17:16:43 +02:00
shells fishplugins.forgit: init "unstable-2021-04-09" 2021-04-26 20:22:40 +09:00
stdenv pkgs/stdenv/make-derivation: move hostSuffix before the version 2021-04-26 20:40:52 +02:00
test tests.vim: init (moved from vim-utils.nix) (#119467) 2021-04-21 12:55:05 +02:00
tools Merge pull request #120619 from amanjeev/semiphemeral-python-package 2021-04-26 17:29:47 +02:00
top-level Merge pull request #120619 from amanjeev/semiphemeral-python-package 2021-04-26 17:29:47 +02:00