943592f698
Among other things, this will allow *2nix tools to output plain data while still being composable with the traditional callPackage/.override interfaces.
5 lines
199 B
Nix
5 lines
199 B
Nix
f: { system ? builtins.currentSystem, ... } @ args:
|
|
|
|
with import ../lib/testing.nix { inherit system; };
|
|
|
|
makeTest (if lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f)
|