1 { __splicedPackages, lib }:
4 pkgs = __splicedPackages;
8 /* Similar to callPackageWith/callPackage, but without makeOverridable
10 callPackageWith = autoArgs: fn: args:
12 f = if pkgs.lib.isFunction fn then fn else import fn;
13 auto = builtins.intersectAttrs (lib.functionArgs f) autoArgs;
16 callPackage = callPackageWith pkgs;
18 /* Uses generic-builder to evaluate provided drv containing OTP-version
21 drv: package containing version-specific args;
22 builder: generic builder for all Erlang versions;
23 args: arguments merged into version-specific args, used mostly to customize
26 Arguments passed to the generic-builder are overridable, used to
27 enable/disable high-level OTP features, like ODBC or WX support;
29 Please note that "mkDerivation" defined here is the one called from R16.nix
32 callErlang = drv: args:
34 builder = callPackage ../../development/interpreters/erlang/generic-builder.nix args;
37 mkDerivation = pkgs.makeOverridable builder;
40 /* Uses generic-builder to evaluate provided drv containing Elixir version
43 drv: package containing version-specific args;
44 builder: generic builder for all Erlang versions;
45 args: arguments merged into version-specific args, used mostly to customize
48 Arguments passed to the generic-builder are overridable.
50 Please note that "mkDerivation" defined here is the one called from 1.4.nix
53 callElixir = drv: args:
55 builder = callPackage ../interpreters/elixir/generic-builder.nix args;
58 mkDerivation = pkgs.makeOverridable builder;
61 /* Uses generic-builder to evaluate provided drv containing Elixir version
64 drv: package containing version-specific args;
65 builder: generic builder for all Erlang versions;
66 args: arguments merged into version-specific args, used mostly to customize
69 Arguments passed to the generic-builder are overridable.
71 Please note that "mkDerivation" defined here is the one called from 1.2.nix
76 builder = callPackage ../interpreters/lfe/generic-builder.nix args;
79 mkDerivation = pkgs.makeOverridable builder;