mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
b1cb42d3b7
cppzmq is a header-only library. As such, it is not much useful without zeromq, whose headers it includes. By having zeromq in propagatedBuildInputs, we can simplify dependent expressions. This change is motivated by https://github.com/lopsided98/nix-ros-overlay/issues/255#issuecomment-1487590226. The expressions in nix-ros-overlay are automatically generated and since packages in other distributions where ROS runs need not to explicitly depend on zeromq, the Nix expression should behave the same. This way, nix-ros-overlay will not to have manually patch/overlay the automatically generated expressions.
36 lines
988 B
Nix
36 lines
988 B
Nix
{ 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}
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|