nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchurl,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "virt-what";
9 version = "1.27";
10
11 src = fetchurl {
12 url = "https://people.redhat.com/~rjones/virt-what/files/${pname}-${version}.tar.gz";
13 sha256 = "sha256-1Nm9nUrlkJVZdEP6xmNJUxXH60MwuHKqXwYt84rGm/E=";
14 };
15
16 meta = with lib; {
17 description = "Detect if running in a virtual machine and prints its type";
18 homepage = "https://people.redhat.com/~rjones/virt-what/";
19 maintainers = with maintainers; [ fpletz ];
20 license = licenses.gpl2Plus;
21 platforms = platforms.linux;
22 mainProgram = "virt-what";
23 };
24}