depot/pkgs/os-specific/linux/vmm_clock/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
1,013 B
Nix

{ stdenv, lib, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
pname = "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.gpl2Plus;
maintainers = with maintainers; [ qbit ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
enableParallelBuilding = true;
}