2022-01-10 23:48:24 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, kernel }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "virtio_vmmci";
|
2024-02-24 06:57:17 +00:00
|
|
|
version = "0.6.0";
|
2022-01-10 23:48:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "voutilad";
|
|
|
|
repo = "virtio_vmmci";
|
2023-07-02 18:48:26 +00:00
|
|
|
rev = version;
|
2024-02-24 06:57:17 +00:00
|
|
|
hash = "sha256-dMh6bqlhsp/cWKqiJ9xjVI9yJj2w1ap7agKSnRjadXA=";
|
2022-01-10 23:48:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" "format" ];
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
CONFIG_RTC_HCTOSYS yes
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
|
|
"DEPMOD=echo"
|
|
|
|
"INSTALL_MOD_PATH=$(out)"
|
|
|
|
"KERNELRELEASE=${kernel.modDirVersion}"
|
|
|
|
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenBSD VMM Control Interface (vmmci) for Linux";
|
|
|
|
homepage = "https://github.com/voutilad/virtio_vmmci";
|
2024-05-26 12:16:07 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-01-10 23:48:24 +00:00
|
|
|
maintainers = with maintainers; [ qbit ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
}
|