mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
vmm_clock: init at 0.1.0
This commit is contained in:
parent
e4eed15d8b
commit
40e761918d
2 changed files with 40 additions and 0 deletions
38
pkgs/os-specific/linux/vmm_clock/default.nix
Normal file
38
pkgs/os-specific/linux/vmm_clock/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ 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; {
|
||||||
|
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;
|
||||||
|
}
|
|
@ -439,6 +439,8 @@ in {
|
||||||
|
|
||||||
vm-tools = callPackage ../os-specific/linux/vm-tools { };
|
vm-tools = callPackage ../os-specific/linux/vm-tools { };
|
||||||
|
|
||||||
|
vmm_clock = callPackage ../os-specific/linux/vmm_clock { };
|
||||||
|
|
||||||
wireguard = if lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;
|
wireguard = if lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;
|
||||||
|
|
||||||
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
|
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue