1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

Merge pull request #59854 from goodsoft/patch-1

buildMix: fix bootstrapping packages with hyphens in version
This commit is contained in:
Joachim F 2019-04-20 11:14:13 +00:00 committed by GitHub
commit f0a49c1152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ main(Args) ->
-spec fixup_app_name(file:name()) -> string().
fixup_app_name(Path) ->
BaseName = filename:basename(Path),
case string:tokens(BaseName, "-") of
case string:split(BaseName, "-") of
[Name, _Version] -> Name;
Name -> Name
end.