replace-dependency: don't break nixpkgs for people living in the stone age

This commit is contained in:
Shea Levy 2013-01-12 09:48:21 -05:00
parent 1f07564f8b
commit 5626c5cdfb

View File

@ -344,9 +344,9 @@ let
inherit stdenv;
};
"replace-dependency" = import ../build-support/replace-dependency.nix {
"replace-dependency" = if builtins ? langVersion then import ../build-support/replace-dependency.nix {
inherit runCommand nix lib;
};
} else args: throw "You must be using at least nix-1.2 to use replace-dependency";
nukeReferences = callPackage ../build-support/nuke-references/default.nix { };