mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
zeromq: build with cmake
This way CMake config modules are installed.
This commit is contained in:
parent
2803d0ddd7
commit
77ebac7ba9
@ -1,16 +1,23 @@
|
||||
{ stdenv, fetchurl, libuuid, pkgconfig, libsodium }:
|
||||
{ stdenv, fetchFromGitHub, cmake, asciidoc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "zeromq-${version}";
|
||||
version = "4.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/zeromq/libzmq/releases/download/v${version}/${name}.tar.gz";
|
||||
sha256 = "0syzwsiqblimfjb32fr6hswhdvp3cmbk0pgm7ayxaigmkv5g88sv";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zeromq";
|
||||
repo = "libzmq";
|
||||
rev = "v${version}";
|
||||
sha256 = "09317g4zkalp3k11x6vbidcm4qf02ciml1wxgp3742lrlgcblgxy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ libuuid libsodium ];
|
||||
nativeBuildInputs = [ cmake asciidoc ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's,''${PACKAGE_PREFIX_DIR}/,,g' ZeroMQConfig.cmake.in
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
branch = "4";
|
||||
|
Loading…
Reference in New Issue
Block a user