From 50a629cc3ade2e77c807702c14460239258a8016 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 25 Aug 2022 00:17:57 +0300 Subject: [PATCH] libmpack: fix cross libmpack-aarch64-unknown-linux-gnu> libtool: link: gcc -shared -fPIC -DPIC build/debug/src/.libs/core.o build/debug/src/.libs/conv.o build/debug/src/.libs/object.o build/debug/src/.libs/rpc.o -Wl,-soname -Wl,libmpack.so.0 -o build/debug/.libs/libmpack.so.0.0.0 libmpack-aarch64-unknown-linux-gnu> /nix/store/6rdvl63vp5p0gyknf0c3svlwfjd5nbjg-libtool-2.4.7/bin/libtool: line 10840: gcc: command not found libmpack-aarch64-unknown-linux-gnu> make: *** [Makefile:151: build/debug/libmpack.la] Error 127 --- pkgs/development/libraries/libmpack/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libmpack/default.nix b/pkgs/development/libraries/libmpack/default.nix index b62da40499cd..a3e902c0f59f 100644 --- a/pkgs/development/libraries/libmpack/default.nix +++ b/pkgs/development/libraries/libmpack/default.nix @@ -10,9 +10,7 @@ stdenv.mkDerivation rec { sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2"; }; - nativeBuildInputs = [ libtool ]; - - makeFlags = [ "LIBTOOL=libtool" "PREFIX=$(out)" ]; + makeFlags = [ "LIBTOOL=${libtool}/bin/libtool" "PREFIX=$(out)" ]; meta = with lib; { description = "Simple implementation of msgpack in C";