summary refs log tree commit diff
path: root/pkgs/development/libraries/libwhereami/default.nix
blob: fe59eb736589174d3cae70ae19f5db8299c6004e (plain) (blame)
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
{ stdenv, fetchFromGitHub, cmake, boost, curl, leatherman }:

stdenv.mkDerivation rec {
  name = "libwhereami-${version}";
  version = "0.1.3";

  src = fetchFromGitHub {
    sha256 = "0mpy2rkxcm2nz1qvldih01czxlsksqfkzgh58pnrw8yva31wv9q6";
    rev = version;
    repo = "libwhereami";
    owner = "puppetlabs";
  };

  # post gcc7, upstream bug: https://tickets.puppetlabs.com/browse/FACT-1828
  NIX_CFLAGS_COMPILE = "-Wno-error=deprecated";

  nativeBuildInputs = [ cmake ];

  buildInputs = [ boost curl leatherman ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    inherit (src.meta) homepage;
    description = "Library to report hypervisor information from inside a VM";
    license = licenses.asl20;
    maintainers = [ maintainers.womfoo ];
    platforms = platforms.linux;
  };

}