@@ -0,0 +1,44 @@
1+{ stdenv, fetchFromGitHub, cmake
2+, libuuid, json_c
3+, doxygen, perl, python2, python2Packages
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "opae-${version}";
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+ nativeBuildInputs = [ cmake doxygen perl python2Packages.sphinx ];
24+ buildInputs = [ libuuid json_c python2 ];
25+
26+ # Set the Epoch to 1980; otherwise the Python wheel/zip code
27+ # gets very angry
28+ preConfigure = ''
29+ find . -type f | while read file; do
30+ touch -d @315532800 $file;
31+ done
32+ '';
33+
34+ cmakeFlags = [ "-DBUILD_ASE=1" ];
35+ enableParallelBuilding = true;
36+
37+ meta = with stdenv.lib; {
38+ description = "Open Programmable Acceleration Engine SDK";
39+ homepage = https://01.org/opae;
40+ license = licenses.bsd3;
41+ platforms = [ "x86_64-linux" ];
42+ maintainers = with maintainers; [ thoughtpolice ];
43+ };
44+}