Skip to content

Commit 62e7f0e

Browse files
committed
nixos/nixpkgs.nix: Make independent
1 parent 18672bf commit 62e7f0e

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

nixos/modules/misc/nixpkgs.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ let
6464
in
6565

6666
{
67+
imports = [ ./assertions.nix ];
68+
6769
options.nixpkgs = {
6870

6971
pkgs = mkOption {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{ lib, stdenv }:
2+
lib.recurseIntoAttrs {
3+
invokeNixpkgsSimple =
4+
(lib.nixos.core ({ config, modules, ... }: {
5+
imports = [ modules.invokeNixpkgs ];
6+
nixpkgs.system = stdenv.hostPlatform.system;
7+
}))._module.args.pkgs.hello;
8+
}

nixos/tests/all-tests.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ in
322322
nix-serve-ssh = handleTest ./nix-serve-ssh.nix {};
323323
nixops = handleTest ./nixops/default.nix {};
324324
nixos-generate-config = handleTest ./nixos-generate-config.nix {};
325+
nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { };
325326
node-red = handleTest ./node-red.nix {};
326327
nomad = handleTest ./nomad.nix {};
327328
novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};

0 commit comments

Comments
 (0)