Throw warning for nix-repl attribute

This commit is contained in:
Silvan Mosberger 2018-08-26 01:53:33 +02:00
parent 490ca6aa8a
commit 99e663d4e1
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -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 { };