mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
zmq: add enableDrafts option
This is needed by emacs-zmq, and will be used by it.
This commit is contained in:
parent
3531a229d1
commit
3b8e595810
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, asciidoc }:
|
||||
{ stdenv, fetchFromGitHub, cmake, asciidoc, enableDrafts ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "zeromq-${version}";
|
||||
|
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = false; # fails all the tests (ctest)
|
||||
|
||||
cmakeFlags = if enableDrafts then [ "-DENABLE_DRAFTS=ON" ] else null;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
branch = "4";
|
||||
homepage = http://www.zeromq.org;
|
||||
|
|
|
@ -434,7 +434,10 @@ let
|
|||
};
|
||||
stripDebugList = [ "share" ];
|
||||
packageRequires = [ emacs ];
|
||||
nativeBuildInputs = [ external.autoconf external.automake external.pkgconfig external.libtool external.zeromq ];
|
||||
nativeBuildInputs = [
|
||||
external.autoconf external.automake external.pkgconfig external.libtool
|
||||
(external.zeromq.override { enableDrafts = true; })
|
||||
];
|
||||
preBuild = ''
|
||||
make
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue