1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/tests/drbd-driver.nix
birkb 35d4e5e11b linuxPackages.drbd: 9.2.8 -> 9.2.9
- 6.8 kernel support added
- aligned to Nix standard build environment
- test added
- redundant installPhase and postFixup definitions removed

Signed-off-by: birkb <birk@batchworks.de>
Signed-off-by: Julian Stecklina <julian.stecklina@cyberus-technology.de>
2024-12-01 16:38:06 +01:00

25 lines
604 B
Nix

import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
name = "drbd-driver";
meta.maintainers = with pkgs.lib.maintainers; [ birkb ];
nodes = {
machine =
{ config, pkgs, ... }:
{
boot = {
kernelModules = [ "drbd" ];
extraModulePackages = with config.boot.kernelPackages; [ drbd ];
kernelPackages = pkgs.linuxPackages;
};
};
};
testScript = ''
machine.start();
machine.succeed("modinfo drbd | grep --extended-regexp '^version:\s+${pkgs.linuxPackages.drbd.version}$'")
'';
}
)