Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
looking-glass-client,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "kvmfr";
|
|
version = looking-glass-client.version;
|
|
|
|
src = looking-glass-client.src;
|
|
sourceRoot = "${looking-glass-client.src.name}/module";
|
|
hardeningDisable = [
|
|
"pic"
|
|
"format"
|
|
];
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernelModuleMakeFlags ++ [
|
|
"KVER=${kernel.modDirVersion}"
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D kvmfr.ko -t "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/misc/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Optional kernel module for LookingGlass";
|
|
longDescription = ''
|
|
This kernel module implements a basic interface to the IVSHMEM device for LookingGlass when using LookingGlass in VM->VM mode
|
|
Additionally, in VM->host mode, it can be used to generate a shared memory device on the host machine that supports dmabuf
|
|
'';
|
|
homepage = "https://github.com/gnif/LookingGlass";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ j-brn ];
|
|
platforms = [ "x86_64-linux" ];
|
|
broken = kernel.kernelOlder "5.3";
|
|
};
|
|
}
|