about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/blockchains/masari
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/blockchains/masari')
-rw-r--r--nixpkgs/pkgs/applications/blockchains/masari/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/blockchains/masari/default.nix b/nixpkgs/pkgs/applications/blockchains/masari/default.nix
new file mode 100644
index 000000000000..27bf5a0aad16
--- /dev/null
+++ b/nixpkgs/pkgs/applications/blockchains/masari/default.nix
@@ -0,0 +1,39 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, unbound, openssl, boost
+, lmdb, miniupnpc, readline, git, libsodium, rapidjson, cppzmq }:
+
+stdenv.mkDerivation rec {
+  pname = "masari";
+  version = "unstable-2022-10-09";
+
+  src = fetchFromGitHub {
+    owner = "masari-project";
+    repo = "masari";
+    rev = "ff71f52220858b84a4403dab9a14339bcad57826";
+    sha256 = "sha256-GunNFqZNgpLfyAA9BiBC98axgTQuK76z3BUl5T0iJqs=";
+  };
+
+  postPatch = ''
+    # remove vendored libraries
+    rm -r external/{miniupnpc,rapidjson}
+
+    # include missing headers
+    sed -i "1i #include <map>" src/device/device_default.hpp
+    sed -i "1i #include <boost/mpl/contains.hpp>" contrib/epee/include/storages/portable_storage.h
+  '';
+
+  nativeBuildInputs = [ cmake pkg-config git ];
+
+  buildInputs = [
+    boost miniupnpc openssl unbound
+    readline libsodium
+    rapidjson cppzmq
+  ];
+
+  meta = with lib; {
+    description = "scalability-focused, untraceable, secure, and fungible cryptocurrency using the RingCT protocol";
+    homepage = "https://www.getmasari.org/";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ matthewcroughan ];
+    platforms = platforms.linux;
+  };
+}