-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
34 lines (31 loc) · 1.01 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "VMWare Player";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
};
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlay ];
};
run-nginx = pkgs.callPackage ./local-images.nix { mkDerivation = pkgs.stdenv.mkDerivation; };
in
{
vmware-player-12 = pkgs.allVmware.vmware-player-12;
vmware-player-14 = pkgs.allVmware.vmware-player-14;
vmware-player-15 = pkgs.allVmware.vmware-player-15;
vmware-player-16 = pkgs.allVmware.vmware-player-16;
inherit run-nginx;
overlay = final: prev: let
allVmware = final.callPackage ./default.nix { kernel = final.linux_5_15; };
in {
inherit allVmware;
vmware-player-12 = allVmware.vmware-player-12.fhs;
vmware-player-14 = allVmware.vmware-player-14.fhs;
vmware-player-15 = allVmware.vmware-player-15.fhs;
vmware-player-16 = allVmware.vmware-player-16.fhs;
};
defaultPackage.x86_64-linux = pkgs.vmware-player-16;
};
}