···1212let
1313 debug = a: trace a a;
1414 last = l: elemAt l ((length l) - 1);
1515-1616- throwIfOldNix = let required = "2.0"; in
1717- if compareVersions nixVersion required == -1
1818- then throw "nix (v${nixVersion} =< v${required}) is too old for nix-gitignore"
1919- else true;
2015in rec {
2116 # [["good/relative/source/file" true] ["bad.tmpfile" false]] -> root -> path
2217 filterPattern = patterns: root:
···31263227 # string -> [[regex bool]]
3328 gitignoreToPatterns = gitignore:
3434- assert throwIfOldNix;
3529 let
3630 # ignore -> bool
3731 isComment = i: (match "^(#.*|$)" i) != null;
-1
pkgs/top-level/all-packages.nix
···33779337793378033780 nix-repl = throw (
3378133781 "nix-repl has been removed because it's not maintained anymore, " +
3378233782- (lib.optionalString (!lib.versionAtLeast "2" (lib.versions.major builtins.nixVersion)) "ugrade your Nix installation to a newer version and ") +
3378333782 "use `nix repl` instead. Also see https://github.com/NixOS/nixpkgs/pull/44903"
3378433783 );
3378533784