mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
3426c88bff
Switch official Erlang versions to use a common builder.
22 lines
759 B
Nix
22 lines
759 B
Nix
{ pkgs }:
|
|
|
|
rec {
|
|
|
|
/* Uses generic-builder to evaluate provided drv containing OTP-version specific data.
|
|
|
|
drv: package containing version-specific args;
|
|
builder: generic builder for all Erlang versions;
|
|
gargs: arguments passed to the generic-builder, used mostly to customize dependencies;
|
|
args: arguments merged into version-specific args, used mostly to enable/disable high-level OTP
|
|
features, like ODBC or WX support;
|
|
|
|
Please note that "mkDerivation" defined here is the one called from R16.nix and similar files.
|
|
*/
|
|
callErlang = drv: gargs: args: pkgs.callPackage drv (
|
|
let builder = pkgs.callPackage ../../development/interpreters/erlang/generic-builder.nix gargs;
|
|
in {
|
|
mkDerivation = a: builder (a // args);
|
|
});
|
|
|
|
}
|