From 99e663d4e1acb427f450d170de89d309669e7373 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sun, 26 Aug 2018 01:53:33 +0200 Subject: [PATCH] Throw warning for nix-repl attribute --- pkgs/top-level/all-packages.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6fb84e68be4b..696664f99e13 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21419,6 +21419,14 @@ with pkgs; nix-top = callPackage ../tools/package-management/nix-top { }; + nix-repl = throw ( + "nix-repl has been removed because it's not maintained anymore, " + + (lib.optionalString (! lib.versionAtLeast "2" (lib.versions.major builtins.nixVersion)) + "ugrade your Nix installation to a newer version and ") + + "use `nix repl` instead. " + + "Also see https://github.com/NixOS/nixpkgs/pull/44903" + ); + nix-review = callPackage ../tools/package-management/nix-review { }; nix-serve = callPackage ../tools/package-management/nix-serve { };