diff options
author | Serge Bazanski | 2021-01-01 22:13:39 +0100 |
---|---|---|
committer | Serge Bazanski | 2021-01-01 22:15:34 +0100 |
commit | c5342ed3feda6f6f427fdea65a24f1ac86b3c2cc (patch) | |
tree | 694ff2aac9a9ae7c50804d8768c200d6750a9e23 /messages | |
parent | bf16458cf15ef38db9c472b71b46a28c4eafafc5 (diff) |
Switch to callPackage
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 |