freeipmi: support cross compile

This commit is contained in:
squalus 2022-05-02 20:16:33 -07:00
parent 986fc6057c
commit a0ab345013

View file

@ -1,4 +1,4 @@
{ fetchurl, lib, stdenv, libgcrypt, readline, libgpg-error }:
{ buildPackages, fetchurl, lib, stdenv, libgcrypt, readline, libgpg-error }:
stdenv.mkDerivation rec {
version = "1.6.9";
@ -9,8 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-8l4cNfPQ8bWpnMMezCNTyoPtRqFRY4QvuocBJ9ycggY=";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [ libgcrypt readline libgpg-error ];
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform)
[ "ac_cv_file__dev_urandom=true" "ac_cv_file__dev_random=true" ];
doCheck = true;
meta = {