7 fetchurl = pkgs.fetchurl;
9 curl = pkgs.curl.override {
14 openssl = pkgs.openssl;
16 libs = [ stdenv.cc.cc curl glibc openssl ];
20 assert pkgs.stdenv.system == "x86_64-linux";
23 name = "nodegit-${version}";
26 url = "https://nodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v${version}-node-v51-linux-x64.tar.gz";
27 sha256 = "d022a88e58fa70f78b59b475fa6ecc6724d372a779b132264cf571f71bc50020";
32 libPath = stdenv.lib.makeLibraryPath libs;
35 tar --extract --file=$src Release/nodegit.node --transform 's/Release\//linux-/'
36 lib=$out/lib/nodegit.node
38 mv linux-nodegit.node $lib
42 lib=$out/lib/nodegit.node
43 patchelf --set-rpath "$libPath" "$lib"