diff options
Diffstat (limited to 'messages')
-rw-r--r-- | messages/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/messages/default.nix b/messages/default.nix index 4b1e734..f397b1d 100644 --- a/messages/default.nix +++ b/messages/default.nix @@ -1,14 +1,22 @@ -with (import <nixpkgs> { }); let - node-protoc-precompiled = pkgs.fetchzip { +{ stdenv +, autoPatchelfHook +, fetchFromGitHub +, fetchzip +, gcc-unwrapped +, yarn2nix-moretea +, ... }: + +let + node-protoc-precompiled = fetchzip { name = "node-protoc-precompiled"; url = "https://node-precompiled-binaries.grpc.io/grpc-tools/v1.10.0/linux-x64.tar.gz"; sha256 = "0dl1anpw3610q58mxf7r9dcp768krwvpa4053cjxn5r8b5xfbh4l"; }; - node-protoc-patched = pkgs.stdenv.mkDerivation { + node-protoc-patched = stdenv.mkDerivation { name = "node-protoc"; - buildInputs = [ pkgs.gcc-unwrapped.lib ]; - nativeBuildInputs = [ pkgs.autoPatchelfHook ]; + buildInputs = [ gcc-unwrapped.lib ]; + nativeBuildInputs = [ autoPatchelfHook ]; dontAutoPatchelf = true; dontUnpack = true; # protoc: symbol lookup error: /nix/store/...-node-protoc/bin/protoc: undefined symbol: , version |