Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake 2, libuuid, json_c 3, doxygen, perl, python3 4}: 5 6stdenv.mkDerivation rec { 7 pname = "opae"; 8 version = "1.0.0"; 9 10 # the tag has a silly name for some reason. drop this in the future if 11 # possible 12 tver = "${version}-5"; 13 14 src = fetchFromGitHub { 15 owner = "opae"; 16 repo = "opae-sdk"; 17 rev = "refs/tags/${tver}"; 18 sha256 = "1dmkpnr9dqxwjhbdzx2r3fdfylvinda421yyg319am5gzlysxwi8"; 19 }; 20 21 doCheck = false; 22 23 env.NIX_CFLAGS_COMPILE = toString [ 24 "-Wno-error=format-truncation" 25 "-Wno-error=address-of-packed-member" 26 "-Wno-array-bounds" 27 ]; 28 29 nativeBuildInputs = [ cmake doxygen perl python3.pkgs.sphinx ]; 30 buildInputs = [ libuuid json_c python3 ]; 31 32 # Set the Epoch to 1980; otherwise the Python wheel/zip code 33 # gets very angry 34 preConfigure = '' 35 find . -type f | while read file; do 36 touch -d @315532800 $file; 37 done 38 ''; 39 40 cmakeFlags = [ "-DBUILD_ASE=1" ]; 41 42 meta = with lib; { 43 description = "Open Programmable Acceleration Engine SDK"; 44 homepage = "https://01.org/opae"; 45 license = licenses.bsd3; 46 platforms = [ "x86_64-linux" ]; 47 maintainers = with maintainers; [ thoughtpolice ]; 48 }; 49}