Files
nixpkgs/pkgs/os-specific/linux/kvmfr/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
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 = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ j-brn ];
platforms = [ "x86_64-linux" ];
broken = kernel.kernelOlder "5.3";
};
}