3
0
Fork 0
forked from mirrors/nixpkgs

erlang: refactor: switch to lib.makeExtensible

Use standardized implementation of attribute set extensibility mechanism
instead of manually re-implementing it.

Suggested by @cstrahan at https://github.com/NixOS/nixpkgs/pull/26668.
This commit is contained in:
Gleb Peregud 2017-06-24 12:30:04 +02:00
parent 5e2de6d846
commit de0e9e7a86

View file

@ -1,7 +1,7 @@
{ stdenv, pkgs, erlang, overrides ? (self: super: {}) }:
{ stdenv, pkgs, erlang }:
let
inherit (stdenv.lib) fix' extends getVersion versionAtLeast;
inherit (stdenv.lib) getVersion versionAtLeast makeExtensible;
lib = pkgs.callPackage ./lib.nix {};
@ -50,4 +50,4 @@ let
cuter = callPackage ../tools/erlang/cuter {};
relxExe = callPackage ../tools/erlang/relx-exe {};
};
in fix' (extends overrides packages)
in makeExtensible packages