2015-08-14 35 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依賴問題,但我問的問題已解決。

相關問題