diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libwhereami')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libwhereami/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libwhereami/default.nix b/nixpkgs/pkgs/development/libraries/libwhereami/default.nix new file mode 100644 index 000000000000..880ebcc1e468 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libwhereami/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, cmake, boost, curl, leatherman }: + +stdenv.mkDerivation rec { + name = "libwhereami-${version}"; + version = "0.2.0"; + + src = fetchFromGitHub { + sha256 = "10phq4a11m8ly6b4dc2yg3dnjzg8ad5wnjv0ilvwylnw32800pxr"; + 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; + }; + +} |