linux_6_1: 6.1.117 -> 6.1.118
[NixPkgs.git] / pkgs / os-specific / linux / vmm_clock / default.nix
blob686a20ada2438e34001c79d6816fc09c688638ab
1 { stdenv, lib, fetchFromGitHub, kernel }:
3 stdenv.mkDerivation rec {
4   pname = "vmm_clock";
5   version = "0.2.0";
7   src = fetchFromGitHub {
8     owner = "voutilad";
9     repo = "vmm_clock";
10     rev = version;
11     hash = "sha256-8z/N/dbkeFd40sH7jatNmSS62B88tC0jVgNljhxslOo=";
12   };
14   hardeningDisable = [ "pic" "format" ];
15   nativeBuildInputs = kernel.moduleBuildDependencies;
17   extraConfig = ''
18     CONFIG_RTC_HCTOSYS yes
19   '';
21   makeFlags = kernel.makeFlags ++ [
22     "DEPMOD=echo"
23     "INSTALL_MOD_PATH=$(out)"
24     "KERNELRELEASE=${kernel.modDirVersion}"
25     "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
26   ];
28   meta = with lib; {
29     description =
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" ];
35   };
37   enableParallelBuilding = true;