Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 773 B view raw
1{ stdenv, fetchFromGitHub, cmake, boost, curl, leatherman }: 2 3stdenv.mkDerivation rec { 4 pname = "libwhereami"; 5 version = "0.3.1"; 6 7 src = fetchFromGitHub { 8 sha256 = "16xjb6zp60ma76aa3kq3q8i8zn0n61gf39fny12cny8nggwjpbww"; 9 rev = version; 10 repo = "libwhereami"; 11 owner = "puppetlabs"; 12 }; 13 14 NIX_CFLAGS_COMPILE = "-Wno-error=catch-value"; 15 16 nativeBuildInputs = [ cmake ]; 17 18 buildInputs = [ boost curl leatherman ]; 19 20 enableParallelBuilding = true; 21 22 meta = with stdenv.lib; { 23 inherit (src.meta) homepage; 24 description = "Library to report hypervisor information from inside a VM"; 25 license = licenses.asl20; 26 maintainers = [ maintainers.womfoo ]; 27 platforms = with platforms; [ "i686-linux" "x86_64-linux" ]; # fails on aarch64 28 }; 29 30}