nixpkgs-suyu/nixos
Arthur Gautier 18c734d7f2 nixosTest: adds support for lib.extend
When lib overrides were used, before this commit, they would not be made
available in the configuration evaluation of nixosTest's nodes.

Sample code:
``` nix
let
  pkgs = import ./. {
    overlays = [
      (new: old: {
        lib = old.lib.extend (self: super: {
          sorry_dave = builtins.trace "There are no pod bay doors" "sorry dave";
        });
      })
    ];
  };
in
pkgs.testers.nixosTest {
  name = "demo lib overlay";

  nodes = {
    machine = { lib, ... }: {
      environment.etc."got-lib-overlay".text = lib.sorry_dave;
    };
  };

  testScript = { nodes }:
    ''
      start_all()
      machine.succeed('grep dave /etc/got-lib-overlay')
    '';
}
```
2023-06-29 09:13:44 -07:00
..
doc/manual Merge pull request #240394 from gaelreyrol/prometheus-php-fpm-exporter-init 2023-06-29 09:55:42 +02:00
lib nixosTest: adds support for lib.extend 2023-06-29 09:13:44 -07:00
maintainers nixos/amazon-image: embiggen 2023-06-07 08:42:47 +03:00
modules Merge pull request #240261 from bobby285271/upd/pantheon 2023-06-29 23:31:46 +08:00
tests Merge pull request #240397 from Ma27/linux-kernel-updates 2023-06-29 10:00:19 +02:00
COPYING
default.nix
README
release-combined.nix
release-small.nix
release.nix nixos/release: add deepin closure 2023-05-08 18:25:41 +08:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.