Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 38 lines 1.0 kB view raw
1{ stdenv, lib, fetchFromGitHub, kernel }: 2 3stdenv.mkDerivation rec { 4 pname = "vmm_clock"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "voutilad"; 9 repo = "vmm_clock"; 10 rev = version; 11 hash = "sha256-8z/N/dbkeFd40sH7jatNmSS62B88tC0jVgNljhxslOo="; 12 }; 13 14 hardeningDisable = [ "pic" "format" ]; 15 nativeBuildInputs = kernel.moduleBuildDependencies; 16 17 extraConfig = '' 18 CONFIG_RTC_HCTOSYS yes 19 ''; 20 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 ]; 27 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 }; 36 37 enableParallelBuilding = true; 38}