{bintools,cc}-wrapper: don't fallback to version = null

mkDerivation cannot handle that
This commit is contained in:
Sandro Jäckel 2023-02-18 19:42:55 +01:00
parent a7dbdb7644
commit 7090651071
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ in
stdenv.mkDerivation {
pname = targetPrefix
+ (if name != "" then name else "${bintoolsName}-wrapper");
version = if bintools == null then null else bintoolsVersion;
version = if bintools == null then "" else bintoolsVersion;
preferLocalBuild = true;

View File

@ -126,7 +126,7 @@ assert nativePrefix == bintools.nativePrefix;
stdenv.mkDerivation {
pname = targetPrefix
+ (if name != "" then name else "${ccName}-wrapper");
version = if cc == null then null else ccVersion;
version = if cc == null then "" else ccVersion;
preferLocalBuild = true;