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 /pusher | |
parent | bf16458cf15ef38db9c472b71b46a28c4eafafc5 (diff) | |
parent | c5342ed3feda6f6f427fdea65a24f1ac86b3c2cc (diff) |
Merge pull request #2 from q3k/q3k/callpackage
Switch to callPackage
Diffstat (limited to 'pusher')
-rw-r--r-- | pusher/default.nix | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/pusher/default.nix b/pusher/default.nix index 57c1456..a5b84d5 100644 --- a/pusher/default.nix +++ b/pusher/default.nix @@ -1,18 +1,29 @@ -with (import <nixpkgs> { }); let - workadventure-messages = import ../messages; +{ stdenv +, autoPatchelfHook +, makeWrapper +, fetchzip +, fetchFromGitHub + +, nodejs-14_x +, yarn2nix-moretea + +, workadventure-messages +}: + +let node-abi = "83"; - node-grpc-precompiled = pkgs.fetchzip { + node-grpc-precompiled = fetchzip { name = "node-grpc-precompiled-node-${node-abi}"; url = "https://node-precompiled-binaries.grpc.io/grpc/v1.24.4/node-v${node-abi}-linux-x64-glibc.tar.gz"; sha256 = "119rhhk1jpi2vwyim7byq3agacasc4q25c26wyzfmy8vk2ih6ndj"; }; - node-grpc-patched = pkgs.stdenv.mkDerivation { + node-grpc-patched = stdenv.mkDerivation { name = "node-grpc"; buildInputs = [ stdenv.cc.cc ]; - nativeBuildInputs = [ pkgs.autoPatchelfHook ]; + nativeBuildInputs = [ autoPatchelfHook ]; dontUnpack = true; # spams console dontStrip = true; |