diff options
author | Sandro | 2021-01-01 22:48:51 +0100 |
---|---|---|
committer | GitHub | 2021-01-01 22:48:51 +0100 |
commit | 8321fdf6e8235198613434713d80b7028960902d (patch) | |
tree | 694ff2aac9a9ae7c50804d8768c200d6750a9e23 /messages/default.nix | |
parent | bf16458cf15ef38db9c472b71b46a28c4eafafc5 (diff) | |
parent | c5342ed3feda6f6f427fdea65a24f1ac86b3c2cc (diff) |
Merge pull request #2 from q3k/q3k/callpackage
Switch to callPackage
Diffstat (limited to '')
-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 |