mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/nixpkgs.nix: Make independent
This commit is contained in:
parent
18672bf275
commit
62e7f0eda1
3 changed files with 11 additions and 0 deletions
|
@ -64,6 +64,8 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [ ./assertions.nix ];
|
||||||
|
|
||||||
options.nixpkgs = {
|
options.nixpkgs = {
|
||||||
|
|
||||||
pkgs = mkOption {
|
pkgs = mkOption {
|
||||||
|
|
8
nixos/modules/misc/nixpkgs/test.nix
Normal file
8
nixos/modules/misc/nixpkgs/test.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ lib, stdenv }:
|
||||||
|
lib.recurseIntoAttrs {
|
||||||
|
invokeNixpkgsSimple =
|
||||||
|
(lib.nixos.core ({ config, modules, ... }: {
|
||||||
|
imports = [ modules.invokeNixpkgs ];
|
||||||
|
nixpkgs.system = stdenv.hostPlatform.system;
|
||||||
|
}))._module.args.pkgs.hello;
|
||||||
|
}
|
|
@ -322,6 +322,7 @@ in
|
||||||
nix-serve-ssh = handleTest ./nix-serve-ssh.nix {};
|
nix-serve-ssh = handleTest ./nix-serve-ssh.nix {};
|
||||||
nixops = handleTest ./nixops/default.nix {};
|
nixops = handleTest ./nixops/default.nix {};
|
||||||
nixos-generate-config = handleTest ./nixos-generate-config.nix {};
|
nixos-generate-config = handleTest ./nixos-generate-config.nix {};
|
||||||
|
nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { };
|
||||||
node-red = handleTest ./node-red.nix {};
|
node-red = handleTest ./node-red.nix {};
|
||||||
nomad = handleTest ./nomad.nix {};
|
nomad = handleTest ./nomad.nix {};
|
||||||
novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};
|
novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue