mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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 New Issue
Block a user