1 { stdenv, lib, fetchFromGitHub, kernel }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-8z/N/dbkeFd40sH7jatNmSS62B88tC0jVgNljhxslOo=";
14 hardeningDisable = [ "pic" "format" ];
15 nativeBuildInputs = kernel.moduleBuildDependencies;
18 CONFIG_RTC_HCTOSYS yes
21 makeFlags = kernel.makeFlags ++ [
23 "INSTALL_MOD_PATH=$(out)"
24 "KERNELRELEASE=${kernel.modDirVersion}"
25 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
30 "Experimental implementation of a kvmclock-derived clocksource for Linux guests under OpenBSD's hypervisor";
31 homepage = "https://github.com/voutilad/vmm_clock";
32 license = licenses.gpl2Plus;
33 maintainers = with maintainers; [ qbit ];
34 platforms = [ "i686-linux" "x86_64-linux" ];
37 enableParallelBuilding = true;