aboutsummaryrefslogtreecommitdiff
path: root/messages
diff options
context:
space:
mode:
authorSerge Bazanski2021-01-01 22:13:39 +0100
committerSerge Bazanski2021-01-01 22:15:34 +0100
commitc5342ed3feda6f6f427fdea65a24f1ac86b3c2cc (patch)
tree694ff2aac9a9ae7c50804d8768c200d6750a9e23 /messages
parentbf16458cf15ef38db9c472b71b46a28c4eafafc5 (diff)
Switch to callPackage
Diffstat (limited to '')
-rw-r--r--messages/default.nix18
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