Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 asio,
6 boost,
7 cmake,
8 hwloc,
9 gperftools,
10 pkg-config,
11 python3,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "hpx";
16 version = "1.11.0";
17
18 src = fetchFromGitHub {
19 owner = "STEllAR-GROUP";
20 repo = "hpx";
21 rev = "v${version}";
22 hash = "sha256-AhByaw1KnEDuRfKiN+/vQMbkG0BJ6Z3+h+QT8scFzAY=";
23 };
24
25 propagatedBuildInputs = [ hwloc ];
26 buildInputs = [
27 asio
28 boost
29 gperftools
30 ];
31 nativeBuildInputs = [
32 cmake
33 pkg-config
34 python3
35 ];
36
37 strictDeps = true;
38
39 meta = {
40 description = "C++ standard library for concurrency and parallelism";
41 homepage = "https://github.com/STEllAR-GROUP/hpx";
42 license = lib.licenses.boost;
43 platforms = [ "x86_64-linux" ]; # lib.platforms.linux;
44 maintainers = with lib.maintainers; [ bobakker ];
45 };
46}