Skip to content

Commit

Permalink
linuxPackages.vm-tools: init
Browse files Browse the repository at this point in the history
needed for mce-test
  • Loading branch information
evils authored and tomberek committed Oct 31, 2021
1 parent 788920f commit 27ba20d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkgs/os-specific/linux/vm-tools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ lib, stdenv, linux }:

stdenv.mkDerivation {
pname = "vm-tools";
inherit (linux) version src;

makeFlags = [ "sbindir=${placeholder "out"}/bin" ];

preConfigure = "cd tools/vm";

meta = with lib; {
inherit (linux.meta) license platforms;
description = "Set of virtual memory tools";
maintainers = [ maintainers.evils ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/linux-kernels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ in {
virtualbox = pkgs.virtualboxHardened;
};

vm-tools = callPackage ../os-specific/linux/vm-tools { };

wireguard = if lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;

x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
Expand Down

0 comments on commit 27ba20d

Please sign in to comment.