about summary refs log tree commit diff
path: root/nix/benchmarks.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-15T07·20+0100
committerVincent Ambo <mail@tazj.in>2020-07-15T07·20+0100
commit7f19d641647ac4ef313ed88d6b5c140983ce5436 (patch)
tree31b66c81465293da5c093c5dde3e419758c0d6cc /nix/benchmarks.nix
Squashed 'third_party/immer/' content from commit ad3e3556d
git-subtree-dir: third_party/immer
git-subtree-split: ad3e3556d38bb75966dd24c61a774970a7c7957e
Diffstat (limited to 'nix/benchmarks.nix')
-rw-r--r--nix/benchmarks.nix100
1 files changed, 100 insertions, 0 deletions
diff --git a/nix/benchmarks.nix b/nix/benchmarks.nix
new file mode 100644
index 000000000000..9eaa87e291d0
--- /dev/null
+++ b/nix/benchmarks.nix
@@ -0,0 +1,100 @@
+{ nixpkgs ? <nixpkgs>}:
+
+with import nixpkgs {};
+
+rec {
+  c_rrb = stdenv.mkDerivation rec {
+    name = "c-rrb-${version}";
+    version = "git-${commit}";
+    commit = "d908617ff84515af90c454ff4d0f98675ae6b456";
+    src = fetchFromGitHub {
+      owner = "hyPiRion";
+      repo = "c-rrb";
+      rev = commit;
+      sha256 = "0zmha3xi80vgdcwzb4vwdllf97dvggjpjfgahrpsb5f5qi3yshxa";
+    };
+    nativeBuildInputs = [ autoreconfHook ];
+    propagatedBuildInputs = [ boehmgc ];
+    meta = with stdenv.lib; {
+      homepage = "http://hypirion.com/thesis";
+      description = "RRB-tree implemented as a library in C. ";
+      license = licenses.mit;
+    };
+  };
+
+  steady = stdenv.mkDerivation rec {
+    name = "steady-${version}";
+    version = "git-${commit}";
+    commit = "aac65955f18d0de856e3421d8593378d5e1832c4";
+    src = fetchFromGitHub {
+      owner = "marcusz";
+      repo = "steady";
+      rev = commit;
+      sha256 = "0zaxr9aj1q5sr99h133fzxch8lw9daw1pxs2g972s02gdq8r8fzh";
+    };
+    dontBuild = true;
+    installPhase = "mkdir -vp $out/include; cp -vr $src/steady $out/include/";
+    meta = with stdenv.lib; {
+      homepage = "https://github.com/marcusz/steady";
+      description = "This is a fast and reliable persistent (immutable) vector class for C++";
+      license = licenses.asl20;
+    };
+  };
+
+  chunkedseq = stdenv.mkDerivation rec {
+    name = "chunkedseq-${version}";
+    version = "git-${commit}";
+    commit = "f1c4f9470edcb59996fdc4aad34311767c46b25e";
+    src = fetchFromGitHub {
+      owner = "deepsea-inria";
+      repo = "chunkedseq";
+      rev = commit;
+      sha256 = "19bps5r3dy55jlvpwq8x2s4d0mwwx0djb6g2r2vvbf628bg6cx8p";
+    };
+    dontBuild = true;
+    installPhase = "mkdir -vp $out/include/chunkedseq; cp -vr $src/include/* $out/include/chunkedseq/";
+    meta = with stdenv.lib; {
+      homepage = "http://deepsea.inria.fr/chunkedseq";
+      description = "Container data structure for representing sequences by many fixed-capacity heap-allocated buffers--chunks";
+      license = licenses.mit;
+    };
+  };
+
+  immutable_cpp = stdenv.mkDerivation rec {
+    name = "immutable-cpp-${version}";
+    version = "git-${commit}";
+    commit = "a4a32022d895dd0d3c03547a2b2a2b03face01eb";
+    src = fetchFromGitHub {
+      owner = "rsms";
+      repo = "immutable-cpp";
+      rev = commit;
+      sha256 = "11zn67avqcc8baddf43fsd29bpv08p0ri6zqng12105k725fq2p7";
+    };
+    dontBuild = true;
+    installPhase = "mkdir -vp $out/include; cp -vr $src/immutable $out/include/";
+    meta = with stdenv.lib; {
+      homepage = "https://github.com/rsms/immutable-cpp";
+      description = "Persistent immutable data structures for C++";
+      license = licenses.mit;
+    };
+  };
+
+  hash_trie = stdenv.mkDerivation rec {
+    name = "hash_trie-${version}";
+    version = "git-${commit}";
+    commit = "1ce346c74923ba16329332103dc0f425b658c8be";
+    src = fetchFromGitHub {
+      owner = "philsquared";
+      repo = "hash_trie";
+      rev = commit;
+      sha256 = "0rpa1682vm0fvvrs1jr7jdkskcrgkm3qrawrcr7xrmknz5jf0v4l";
+    };
+    dontBuild = true;
+    installPhase = "mkdir -vp $out/include; cp -vr $src/hash_trie.hpp $out/include/";
+    meta = with stdenv.lib; {
+      homepage = "https://github.com/rsms/immutable-cpp";
+      description = "Persistent immutable data structures for C++";
+      license = licenses.mit;
+    };
+  };
+}