From b59f013860edef42fbabcb010932d4e2bb63d5f2 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 7 Aug 2022 06:27:50 +0300 Subject: [PATCH] uhttpmock: fix cross no idea why this still happens here when this issue was fixed in gobject-introspection hook and the fix works for other packages --- pkgs/development/libraries/uhttpmock/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/uhttpmock/default.nix b/pkgs/development/libraries/uhttpmock/default.nix index 7a27cd1fd678..a5bd2fd36162 100644 --- a/pkgs/development/libraries/uhttpmock/default.nix +++ b/pkgs/development/libraries/uhttpmock/default.nix @@ -16,6 +16,13 @@ stdenv.mkDerivation rec { preConfigure = "NOCONFIGURE=1 ./autogen.sh"; + # while cross + # /build/source/tmp-introspect3xf43lf3/.libs/Uhm-0.0: error while loading shared libraries: libuhttpmock-0.0.so.0: cannot open shared object file: No such file or directory + preBuild = '' + mkdir -p ${placeholder "out"}/lib + ln -s $PWD/libuhttpmock/.libs/libuhttpmock-0.0.so.0 ${placeholder "out"}/lib/libuhttpmock-0.0.so.0 + ''; + meta = with lib; { description = "Project for mocking web service APIs which use HTTP or HTTPS"; homepage = "https://gitlab.com/groups/uhttpmock/";