nix-community.nixvim/tests/nixpkgs-mock.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
290 B
Nix
Raw Normal View History

# This mock nixpkgs can be used as `nixpkgs.source` in nixpkgs-module-test
# if we want/need to avoid importing & instantiating a real nixpkgs
{
config ? { },
...
}:
let
pkgs = {
_type = "pkgs";
__splicedPackages = pkgs;
inherit config pkgs;
mock = true;
};
in
pkgs