3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libwhereami/default.nix

32 lines
760 B
Nix
Raw Normal View History

2017-09-25 11:59:17 +01:00
{ stdenv, fetchFromGitHub, cmake, boost, curl, leatherman }:
stdenv.mkDerivation rec {
pname = "libwhereami";
version = "0.3.0";
2017-09-25 11:59:17 +01:00
src = fetchFromGitHub {
sha256 = "0yq6m4kh06idp3l8cp7kswn5k8vcaip1zqhypbhszybqa0afb5az";
2017-09-25 11:59:17 +01:00
rev = version;
repo = "libwhereami";
owner = "puppetlabs";
};
NIX_CFLAGS_COMPILE = [ "-Wno-error=catch-value" ];
2018-03-03 04:58:52 +00:00
2017-09-25 11:59:17 +01:00
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;
badPlatforms = platforms.arm;
2017-09-25 11:59:17 +01:00
};
}