cppzmq: make zeromq propagatedBuildInput

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.
This commit is contained in:
Michal Sojka 2023-03-31 18:14:09 +02:00
parent 9a6aabc474
commit b1cb42d3b7
8 changed files with 8 additions and 15 deletions

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, git, doxygen, graphviz
, boost, miniupnpc, openssl, unbound, cppzmq
, zeromq, pcsclite, readline, libsodium
, pcsclite, readline, libsodium
}:
let
@ -22,7 +22,7 @@ stdenv.mkDerivation {
buildInputs = [
boost miniupnpc openssl unbound
cppzmq zeromq pcsclite readline libsodium
cppzmq pcsclite readline libsodium
];
cmakeFlags = [

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, unbound, openssl, boost
, lmdb, miniupnpc, readline, git, zeromq, libsodium, rapidjson, cppzmq }:
, lmdb, miniupnpc, readline, git, libsodium, rapidjson, cppzmq }:
stdenv.mkDerivation rec {
pname = "masari";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
buildInputs = [
boost miniupnpc openssl unbound
zeromq readline libsodium
readline libsodium
rapidjson cppzmq
];

View File

@ -25,7 +25,6 @@
, SDL
, gsl
, cppzmq
, zeromq
# Needed only if qt-gui is disabled, from some reason
, icu
# GUI related
@ -203,7 +202,7 @@ let
runtime = [ gsl ];
};
gr-zeromq = {
runtime = [ cppzmq zeromq ];
runtime = [ cppzmq ];
cmakeEnableFlag = "GR_ZEROMQ";
};
};

View File

@ -28,7 +28,6 @@
, libunwind
, thrift
, cppzmq
, zeromq
# Needed only if qt-gui is disabled, from some reason
, icu
# GUI related
@ -228,7 +227,7 @@ let
runtime = [ gsl libsodium ];
};
gr-zeromq = {
runtime = [ cppzmq zeromq ];
runtime = [ cppzmq ];
cmakeEnableFlag = "GR_ZEROMQ";
};
gr-network = {

View File

@ -30,7 +30,6 @@
, libunwind
, thrift
, cppzmq
, zeromq
# Needed only if qt-gui is disabled, from some reason
, icu
# GUI related
@ -247,7 +246,7 @@ let
runtime = [ gsl libsodium ];
};
gr-zeromq = {
runtime = [ cppzmq zeromq ];
runtime = [ cppzmq ];
cmakeEnableFlag = "GR_ZEROMQ";
};
gr-network = {

View File

@ -19,7 +19,6 @@
, speex
, speexdsp
, cppzmq
, zeromq
}:
gnuradio3_8.pkgs.mkDerivation rec {
@ -67,7 +66,6 @@ gnuradio3_8.pkgs.mkDerivation rec {
libftdi
libsndfile
cppzmq
zeromq
gnuradio3_8.qwt
] ++ lib.optionals (gnuradio3_8.hasFeature "gr-ctrlport") [
thrift

View File

@ -19,7 +19,6 @@
, python3
, sqlite
, wrapGAppsHook
, zeromq
}:
stdenv.mkDerivation rec {
@ -48,7 +47,6 @@ stdenv.mkDerivation rec {
podofo
python3
sqlite
zeromq
];
nativeBuildInputs = [

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zeromq ];
propagatedBuildInputs = [ zeromq ];
cmakeFlags = [
# Tests try to download googletest at compile time; there is no option