From 13a1ab440c6a1d6b16dd927339f305d3a53139fe Mon Sep 17 00:00:00 2001 From: Gleb Peregud Date: Sat, 12 Dec 2015 08:23:33 +0100 Subject: [PATCH] Replace deprecated uniqList with unique function --- pkgs/development/erlang-modules/build-hex.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/erlang-modules/build-hex.nix b/pkgs/development/erlang-modules/build-hex.nix index efeda1c6373..777a5c5047f 100644 --- a/pkgs/development/erlang-modules/build-hex.nix +++ b/pkgs/development/erlang-modules/build-hex.nix @@ -46,12 +46,8 @@ stdenv.mkDerivation (attrs // { configurePhase = let getDeps = drv: [drv] ++ (map getDeps drv.erlangDeps); - recursiveDeps = uniqList { - inputList = flatten (map getDeps erlangDeps); - }; - recursivePluginsDeps = uniqList { - inputList = flatten (map getDeps pluginDeps); - }; + recursiveDeps = unique (flatten (map getDeps erlangDeps)); + recursivePluginsDeps = unique (flatten (map getDeps pluginDeps)); in '' runHook preConfigure ${concatMapStrings (dep: ''