mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
16 lines
290 B
Nix
16 lines
290 B
Nix
|
# 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
|