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