4245e618e7
Introduces NonApplicable as a state of a ratchet, to be used when the ratchet doesn't make sense to have. This fixes an odd problem where before, changing an attribute to use e.g. `callPackage` suddenly requires moving it to `pkgs/by-name`, when that shouldn't have been required.
10 lines
285 B
Nix
10 lines
285 B
Nix
self: super: {
|
|
nonAttributeSet = null;
|
|
nonCallPackage = self.someDrv;
|
|
internalCallByName = self._internalCallByNamePackageFile ./some-pkg.nix;
|
|
nonDerivation = self.callPackage ({ }: { }) { };
|
|
|
|
onlyMove = self.callPackage ({ someDrv }: someDrv) { };
|
|
noEval = throw "foo";
|
|
}
|