summary refs log tree commit diff
path: root/nixos/modules/misc/nixpkgs/test.nix
blob: ec5fab9fb4a5e912bce65194657137a7db5a51d3 (plain) (blame)
1
2
3
4
5
6
7
8
{ evalMinimalConfig, pkgs, lib, stdenv }:
lib.recurseIntoAttrs {
  invokeNixpkgsSimple =
    (evalMinimalConfig ({ config, modulesPath, ... }: {
      imports = [ (modulesPath + "/misc/nixpkgs.nix") ];
      nixpkgs.system = stdenv.hostPlatform.system;
    }))._module.args.pkgs.hello;
}