Remove Erlang specific version retrieval

This commit is contained in:
Justin Wood 2017-06-27 14:03:14 -04:00
parent cc09faa6fb
commit a19f9668f2
No known key found for this signature in database
GPG Key ID: AD57C47E5F931181

View File

@ -12,15 +12,6 @@ rec {
callPackage = callPackageWith pkgs;
/* Erlang/OTP-specific version retrieval, returns 19 for OTP R19 */
getVersion = x:
let
parse = drv: (builtins.parseDrvName drv).version;
in builtins.replaceStrings ["B" "-"] ["." "."] (
if builtins.isString x
then parse x
else x.version or (parse x.name));
/* Uses generic-builder to evaluate provided drv containing OTP-version
specific data.