2015-08-14 56 views
1

我试图在OS X上将libgrpc构建为nixpkg。 它取决于zlib,protobuf> = 3.0和openssl> = 1.0.2。需要的特定版本的依赖关系

如何将这些版本指定为最小值?两者都包含在官方频道中,并且都成功建成。

我对尼克斯很新,这是我努力让自己的脚湿润。 现在,这是我对default.nix

{ stdenv, fetchurl, zlib, openssl, protobuf }: 

stdenv.mkDerivation rec { 
    name = "libgrpc-0.10.1"; 

    src = fetchurl { 
    url = "https://github.com/grpc/grpc/archive/release-0_10_1.tar.gz"; 
    sha256 = "2da8deef4fcc421ce8e9102e8531261b3c23073ab4d2bf459e549ed4e37b5ba1"; 
    }; 

    buildInputs = [zlib "openssl-1.0.2d" "protobuf-3.0.0-alpha-3.1"]; 

    meta = { 
    homepage = "https://github.com/grpc/grpc/"; 
    version = "0.10.1"; 
    description = "A library for a RPC service based on HTTP/2 and protobuf"; 
    license = stdenv.lib.licenses.bsd3; 
    platforms = [ 
     "i686-linux" 
     "x86_64-linux" 
     "x86_64-darwin" 
     "i686-cygwin" 
     "i686-freebsd" 
     "x86_64-freebsd" 
     "i686-openbsd" 
     "x86_64-openbsd" 
    ]; 
    downloadPage = "https://github.com/grpc/grpc/archive/release-0_10_1.tar.gz"; 
    }; 
} 

我要么寻找一种方式来完成构建下尼克斯libgrpc> 0.10 - 或为京顺路定义的要求,所以我可以尝试最低版本自己修复此问题。

谢谢!

回答

1

all-packages.nix的内部显示,这些版本可用openssl_1_0_2protobuf3_0

我仍然坚持zlib依赖问题,但我问的问题已解决。

相关问题