mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
921664da3f
This update[1] enables support for older kernels. [1] https://github.com/voutilad/vmm_clock/releases/tag/0.2.0
39 lines
1013 B
Nix
39 lines
1013 B
Nix
{ stdenv, lib, fetchFromGitHub, kernel }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "vmm_clock";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "voutilad";
|
|
repo = "vmm_clock";
|
|
rev = "${version}";
|
|
hash = "sha256-8z/N/dbkeFd40sH7jatNmSS62B88tC0jVgNljhxslOo=";
|
|
};
|
|
|
|
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 =
|
|
"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 = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
}
|