diff options
author | Gleb Peregud <gleber.p@gmail.com> | 2017-06-24 12:30:04 +0200 |
---|---|---|
committer | Gleb Peregud <gleber.p@gmail.com> | 2017-06-24 12:30:04 +0200 |
commit | de0e9e7a86c2603d0f978b0a6e51040a3adf01ea (patch) | |
tree | 3cdc074d4955558d791c917c816c992c1fee566b /pkgs/development/beam-modules | |
parent | 5e2de6d846e7e7f88378b730936b07f2fb410e0a (diff) |
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.
Diffstat (limited to 'pkgs/development/beam-modules')
-rw-r--r-- | pkgs/development/beam-modules/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/beam-modules/default.nix b/pkgs/development/beam-modules/default.nix index 0db695befe6d4..d1a2a785a9c92 100644 --- a/pkgs/development/beam-modules/default.nix +++ b/pkgs/development/beam-modules/default.nix @@ -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 |