haskell-generic-builder: pass pname and version as is

This is a full set rebuild, however it improves the name generation
for the static and cross case since the respective additional
components are now inserted between pname and version instead of after
name like before. This prevents builtins.parseDrvName from mistaking a
platform config string for a version component.
This commit is contained in:
sternenseemann 2021-06-21 14:05:57 +02:00
parent 29229016f9
commit 5e0c55b581

View file

@ -289,7 +289,7 @@ in lib.fix (drv:
assert allPkgconfigDepends != [] -> pkg-config != null;
stdenv.mkDerivation ({
name = "${pname}-${version}";
inherit pname version;
outputs = [ "out" ]
++ (optional enableSeparateDataOutput "data")