mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
35d4e5e11b
- 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>
25 lines
604 B
Nix
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}$'")
|
|
'';
|
|
}
|
|
)
|