nettle: Enable cross-compilation
This commit is contained in:
parent
cea0765a29
commit
5b761a8687
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, gmp, gnum4
|
||||
{ stdenv, buildPackages, gmp, gnum4
|
||||
|
||||
# Version specific args
|
||||
, version, src
|
||||
|
@ -12,16 +12,18 @@ stdenv.mkDerivation (rec {
|
|||
outputs = [ "out" "dev" ];
|
||||
outputBin = "dev";
|
||||
|
||||
buildInputs = [ gnum4 ];
|
||||
nativeBuildInputs = [ gnum4 buildPackages.stdenv.cc ];
|
||||
propagatedBuildInputs = [ gmp ];
|
||||
|
||||
doCheck = (stdenv.system != "i686-cygwin" && !stdenv.isDarwin);
|
||||
doCheck = (stdenv.system != "i686-cygwin" && !stdenv.isDarwin && stdenv.buildPlatform == stdenv.hostPlatform);
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patches = stdenv.lib.optional (stdenv.system == "i686-cygwin")
|
||||
./cygwin.patch;
|
||||
|
||||
configureFlags = '' CC_FOR_BUILD=${buildPackages.stdenv.cc.targetPrefix}gcc '';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cryptographic library";
|
||||
|
||||
|
|
Loading…
Reference in a new issue