2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, kernel, looking-glass-client }:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "kvmfr";
|
|
|
|
version = looking-glass-client.version;
|
|
|
|
|
|
|
|
src = looking-glass-client.src;
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${looking-glass-client.src.name}/module";
|
2021-07-14 22:03:04 +00:00
|
|
|
hardeningDisable = [ "pic" "format" ];
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"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" ];
|
2022-01-19 23:45:15 +00:00
|
|
|
broken = kernel.kernelOlder "5.3";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|