Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 30 lines 857 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zeromq3, jdk }: 2 3stdenv.mkDerivation rec { 4 name = "jzmq-${version}"; 5 version = "3.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "zeromq"; 9 repo = "jzmq"; 10 rev = "v${version}"; 11 sha256 = "1wlzs604mgmqmrgpk4pljx2nrlxzdfi3r8k59qlm90fx8qkqkc63"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 15 buildInputs = [ zeromq3 jdk ]; 16 17 preConfigure = '' 18 ${if stdenv.hostPlatform.system == "x86_64-darwin" then 19 '' sed -i -e 's~/Headers~/include~' -e 's~_JNI_INC_SUBDIRS=\".*\"~_JNI_INC_SUBDIRS=\"darwin\"~' configure 20 '' else ""} 21 ''; 22 23 meta = { 24 homepage = http://www.zeromq.org; 25 description = "Java bindings for ZeroMQ"; 26 platforms = stdenv.lib.platforms.unix; 27 license = stdenv.lib.licenses.lgpl3; 28 maintainers = [ stdenv.lib.maintainers.vizanto ]; 29 }; 30}