mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
18 lines
424 B
Nix
18 lines
424 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "kernel-latest";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ nequissimus ];
|
|
};
|
|
|
|
machine = { pkgs, ... }:
|
|
{
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
assert "Linux" in machine.succeed("uname -s")
|
|
assert "${pkgs.linuxPackages_latest.kernel.version}" in machine.succeed("uname -a")
|
|
'';
|
|
})
|