From 07e726c85c8f36d3a27fb7254f09ac69c7b94c65 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 13 Jan 2015 13:53:11 +0100 Subject: Revert "mkOverridable: Use functors to allow overridable functions" This reverts commit 4ee556cfe9528a321f4a3746ca83f97feacf500e. --- default.nix | 4 ++-- lib/customisation.nix | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/default.nix b/default.nix index 84bb1af84e97b..e0df520721cf9 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,6 @@ -if ! builtins ? nixVersion || builtins.compareVersions "1.8" builtins.nixVersion == 1 then +if ! builtins ? nixVersion || builtins.compareVersions "1.7" builtins.nixVersion == 1 then - abort "This version of Nixpkgs requires Nix >= 1.8, please upgrade!" + abort "This version of Nixpkgs requires Nix >= 1.7, please upgrade!" else diff --git a/lib/customisation.nix b/lib/customisation.nix index f16043cf9a3e3..04a5cb4203358 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -65,13 +65,6 @@ rec { overrideDerivation = fdrv: makeOverridable (args: overrideDerivation (f args) fdrv) origArgs; }) - else if builtins.isFunction ff then - { override = newArgs: - makeOverridable f (origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs)); - __functor = self: ff; - deepOverride = throw "deepOverride not yet supported for functors"; - overrideDerivation = throw "overrideDerivation not yet supported for functors"; - } else ff; deepOverrider = newArgs: name: x: if builtins.isAttrs x then ( -- cgit 1.4.1