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:
parent
5e2de6d846
commit
de0e9e7a86
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue