about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/proto-plus
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-26 19:04:29 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-26 20:40:52 +0200
commitb0c26d2c4038d2768b9b0191ddeed16377419f7b (patch)
treec42d25ada5e3fee55886a66b8d3356a3c5cf3881 /nixpkgs/pkgs/development/python-modules/proto-plus
parent99de33bb1d8724c5a60369c4605b4f517bb78fc9 (diff)
downloadnixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.tar
nixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.tar.gz
nixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.tar.bz2
nixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.tar.lz
nixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.tar.xz
nixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.tar.zst
nixlib-b0c26d2c4038d2768b9b0191ddeed16377419f7b.zip
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.
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/proto-plus')
0 files changed, 0 insertions, 0 deletions