1{ stdenv, fetchFromGitHub, cmake, boost, curl, leatherman }:
2
3stdenv.mkDerivation rec {
4 name = "libwhereami-${version}";
5 version = "0.2.0";
6
7 src = fetchFromGitHub {
8 sha256 = "10phq4a11m8ly6b4dc2yg3dnjzg8ad5wnjv0ilvwylnw32800pxr";
9 rev = version;
10 repo = "libwhereami";
11 owner = "puppetlabs";
12 };
13
14 # post gcc7, upstream bug: https://tickets.puppetlabs.com/browse/FACT-1828
15 NIX_CFLAGS_COMPILE = "-Wno-error=deprecated";
16
17 nativeBuildInputs = [ cmake ];
18
19 buildInputs = [ boost curl leatherman ];
20
21 enableParallelBuilding = true;
22
23 meta = with stdenv.lib; {
24 inherit (src.meta) homepage;
25 description = "Library to report hypervisor information from inside a VM";
26 license = licenses.asl20;
27 maintainers = [ maintainers.womfoo ];
28 platforms = platforms.linux;
29 };
30
31}