mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
c54682539b
Upstream mentions[1] the oldest tested kernel is 4.19, so mark anything older as broken. ZHF: #172160 [1] https://github.com/voutilad/vmm_clock#tested-platforms-and-configs
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ stdenv, lib, fetchFromGitHub, kernel }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "vmm_clock";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "voutilad";
|
|
repo = "vmm_clock";
|
|
rev = "${version}";
|
|
sha256 = "0hg7ywznh6v11fywsz6f7w298bxph0wwm046zqaqncjvr4aizla4";
|
|
};
|
|
|
|
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; {
|
|
broken = kernel.kernelOlder "4.19";
|
|
description =
|
|
"Experimental implementation of a kvmclock-derived clocksource for Linux guests under OpenBSD's hypervisor";
|
|
homepage = "https://github.com/voutilad/vmm_clock";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ qbit ];
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
}
|