Merge pull request #171348 from squalus/freeipmi

freeipmi: support cross compile
This commit is contained in:
7c6f434c 2022-05-04 16:02:45 +00:00 committed by GitHub
commit e97b1f87f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {