erlang: put Elixir/LFE into per-OTP packageset.
This makes beam.package.erlangR19.abnf to be actually built with R19,
instead of the default R18. It means that Elixir and LFE are provided in
two versions, one built with R18 and with R19.
Please note that Elixir does not build with R16 and R17 - trying to
access beam.packages.erlang{R16,R17}.elixir will throw an error.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs }:
|
||||
{ pkgs, stdenv }:
|
||||
|
||||
rec {
|
||||
|
||||
@@ -12,6 +12,15 @@ 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user