python312Packages.vdf: avoid using pname for src.repo
[NixPkgs.git] / pkgs / os-specific / linux / virtio_vmmci / default.nix
blobabb359fe06e4cc0ba35bf0f43a7f81238d15ac4b
1 { stdenv, lib, fetchFromGitHub, kernel }:
3 stdenv.mkDerivation rec {
4   name = "virtio_vmmci";
5   version = "0.6.0";
7   src = fetchFromGitHub {
8     owner = "voutilad";
9     repo = "virtio_vmmci";
10     rev = version;
11     hash = "sha256-dMh6bqlhsp/cWKqiJ9xjVI9yJj2w1ap7agKSnRjadXA=";
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 = "OpenBSD VMM Control Interface (vmmci) for Linux";
30     homepage = "https://github.com/voutilad/virtio_vmmci";
31     license = licenses.gpl2Plus;
32     maintainers = with maintainers; [ qbit ];
33     platforms = platforms.linux;
34   };
36   enableParallelBuilding = true;