From 0692b3e52a7af1d9029562377a7b7fd5d6a8044a Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 2 Oct 2023 07:06:11 +0000 Subject: [PATCH] prosody: fix cross --- pkgs/servers/xmpp/prosody/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index 64ac2e8699ad..bb8b68c17ddf 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, lib, libidn, openssl, makeWrapper, fetchhg +{ stdenv, fetchurl, lib, libidn, openssl, makeWrapper, fetchhg, buildPackages , icu , lua , nixosTests @@ -54,9 +54,13 @@ stdenv.mkDerivation rec { configureFlags = [ "--ostype=linux" + "--with-lua-bin=${lib.getBin buildPackages.lua}/bin" "--with-lua-include=${luaEnv}/include" "--with-lua=${luaEnv}" + "--c-compiler=${stdenv.cc.targetPrefix}cc" + "--linker=${stdenv.cc.targetPrefix}cc" ]; + configurePlatforms = []; postBuild = '' make -C tools/migration