tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxPackages.vmware: init at 16.2.3
deinferno
3 years ago
59e6af3d
820180c4
+49
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
vmware
default.nix
top-level
linux-kernels.nix
+47
pkgs/os-specific/linux/vmware/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib, stdenv, fetchFromGitHub, kernel, kmod, gnugrep, vmware-workstation }:
2
+
3
+
stdenv.mkDerivation rec {
4
+
pname = "vmware-modules";
5
+
version = "${vmware-workstation.version}-${kernel.version}";
6
+
7
+
src = fetchFromGitHub {
8
+
owner = "mkubecek";
9
+
repo = "vmware-host-modules";
10
+
rev = "w${vmware-workstation.version}-k5.17";
11
+
sha256 = "sha256-EM6YU2nOwNlAXpQ7cGrLS1N+gAS1KxleVjJTzo22De0=";
12
+
};
13
+
14
+
hardeningDisable = [ "pic" ];
15
+
16
+
nativeBuildInputs = kernel.moduleBuildDependencies;
17
+
18
+
enableParallelBuilding = true;
19
+
20
+
postPatch = ''
21
+
substituteInPlace Makefile \
22
+
--replace '/lib/modules/$(VM_UNAME)/misc' "$out/lib/modules/${kernel.modDirVersion}/misc" \
23
+
--replace '$(shell uname -r)' "${kernel.modDirVersion}" \
24
+
--replace /sbin/modinfo "${kmod}/bin/modinfo" \
25
+
--replace 'test -z "$(DESTDIR)"' "0"
26
+
27
+
for module in "vmmon-only" "vmnet-only"; do
28
+
substituteInPlace "./$module/Makefile" \
29
+
--replace '/lib/modules/' "${kernel.dev}/lib/modules/" \
30
+
--replace '$(shell uname -r)' "${kernel.modDirVersion}" \
31
+
--replace /bin/grep "${gnugrep}/bin/grep"
32
+
done
33
+
'';
34
+
35
+
preInstall = ''
36
+
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/misc"
37
+
'';
38
+
39
+
meta = with lib; {
40
+
description = "Kernel modules needed for VMware hypervisor";
41
+
homepage = "https://github.com/mkubecek/vmware-host-modules";
42
+
license = licenses.gpl2Only;
43
+
platforms = [ "x86_64-linux" ];
44
+
broken = kernel.kernelOlder "5.5" && kernel.isHardened;
45
+
maintainers = with maintainers; [ deinferno ];
46
+
};
47
+
}
+2
pkgs/top-level/linux-kernels.nix
···
458
459
vmm_clock = callPackage ../os-specific/linux/vmm_clock { };
460
0
0
461
wireguard = if lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;
462
463
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
···
458
459
vmm_clock = callPackage ../os-specific/linux/vmm_clock { };
460
461
+
vmware = callPackage ../os-specific/linux/vmware { };
462
+
463
wireguard = if lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;
464
465
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };