From c5342ed3feda6f6f427fdea65a24f1ac86b3c2cc Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Fri, 1 Jan 2021 22:13:39 +0100 Subject: Switch to callPackage --- back/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'back') diff --git a/back/default.nix b/back/default.nix index e634467..5a5a973 100644 --- a/back/default.nix +++ b/back/default.nix @@ -1,18 +1,26 @@ -with (import { }); let - workadventure-messages = import ../messages; +{ stdenv +, autoPatchelfHook +, fetchFromGitHub +, fetchzip +, makeWrapper +, nodejs-14_x +, workadventure-messages +, yarn2nix-moretea +, ... }: +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; -- cgit v1.2.3