mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
Trying to make nixUnstable cross-build.
It fails because it builds bin2c for the host system, instead of the build system. I will wait for a fix upstream. svn path=/nixpkgs/trunk/; revision=20445
This commit is contained in:
parent
3b54414f31
commit
997723ec9b
@ -1,5 +1,11 @@
|
|||||||
{ stdenv, fetchurl, perl }:
|
{ stdenv, fetchurl, perl }:
|
||||||
|
|
||||||
|
let
|
||||||
|
opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ]
|
||||||
|
(throw "openssl needs its platform name cross building" null)
|
||||||
|
stdenv.cross;
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "openssl-0.9.8l";
|
name = "openssl-0.9.8l";
|
||||||
|
|
||||||
@ -10,12 +16,24 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./darwin-arch.patch ];
|
patches = [ ./darwin-arch.patch ];
|
||||||
|
|
||||||
buildInputs = [ perl ];
|
buildNativeInputs = [ perl ];
|
||||||
|
|
||||||
configureScript = "./config";
|
configureScript = "./config";
|
||||||
|
|
||||||
configureFlags = "shared";
|
configureFlags = "shared";
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
configurePhase = ''
|
||||||
|
export cross=$crossSystem-
|
||||||
|
./Configure --prefix=$out ${opensslCrossSystem} shared
|
||||||
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
make CC=$crossConfig-gcc \
|
||||||
|
AR="$crossConfig-ar r" \
|
||||||
|
RANLIB=$crossConfig-ranlib
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.openssl.org/;
|
homepage = http://www.openssl.org/;
|
||||||
description = "A cryptographic library that implements the SSL and TLS protocols";
|
description = "A cryptographic library that implements the SSL and TLS protocols";
|
||||||
|
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "844e5878d55a68ae2aac657718a1960dcfc943f6738ebdfb2bc93e8c462d0ad7";
|
sha256 = "844e5878d55a68ae2aac657718a1960dcfc943f6738ebdfb2bc93e8c462d0ad7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [perl curl openssl];
|
buildNativeInputs = [perl];
|
||||||
|
buildInputs = [curl openssl];
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
||||||
|
@ -710,6 +710,7 @@ let
|
|||||||
float = "soft";
|
float = "soft";
|
||||||
withTLS = true;
|
withTLS = true;
|
||||||
platform = pkgs.platforms.sheevaplug;
|
platform = pkgs.platforms.sheevaplug;
|
||||||
|
openssl.system = "linux-generic32";
|
||||||
};
|
};
|
||||||
nativePlatforms = linux;
|
nativePlatforms = linux;
|
||||||
in {
|
in {
|
||||||
@ -722,6 +723,7 @@ in {
|
|||||||
xorg = {
|
xorg = {
|
||||||
#xorgserver = nativePlatforms;
|
#xorgserver = nativePlatforms;
|
||||||
};
|
};
|
||||||
|
nixUnstable = linux;
|
||||||
linuxPackages_2_6_32.kernel = linux;
|
linuxPackages_2_6_32.kernel = linux;
|
||||||
linuxPackages_2_6_33.kernel = linux;
|
linuxPackages_2_6_33.kernel = linux;
|
||||||
gdbCross = nativePlatforms;
|
gdbCross = nativePlatforms;
|
||||||
@ -745,6 +747,7 @@ let
|
|||||||
kernelAutoModules = false;
|
kernelAutoModules = false;
|
||||||
kernelTarget = "vmlinux.bin";
|
kernelTarget = "vmlinux.bin";
|
||||||
};
|
};
|
||||||
|
openssl.system = "linux-generic32";
|
||||||
};
|
};
|
||||||
nativePlatforms = linux;
|
nativePlatforms = linux;
|
||||||
in {
|
in {
|
||||||
@ -757,6 +760,7 @@ in {
|
|||||||
xorg = {
|
xorg = {
|
||||||
#xorgserver = nativePlatforms;
|
#xorgserver = nativePlatforms;
|
||||||
};
|
};
|
||||||
|
nixUnstable = linux;
|
||||||
linuxPackages_2_6_32.kernel = linux;
|
linuxPackages_2_6_32.kernel = linux;
|
||||||
linuxPackages_2_6_33.kernel = linux;
|
linuxPackages_2_6_33.kernel = linux;
|
||||||
gdbCross = nativePlatforms;
|
gdbCross = nativePlatforms;
|
||||||
@ -781,6 +785,7 @@ let
|
|||||||
kernelTarget = "zImage";
|
kernelTarget = "zImage";
|
||||||
uboot = null;
|
uboot = null;
|
||||||
};
|
};
|
||||||
|
openssl.system = "linux64-sparcv9";
|
||||||
};
|
};
|
||||||
nativePlatforms = linux;
|
nativePlatforms = linux;
|
||||||
in {
|
in {
|
||||||
@ -793,6 +798,7 @@ in {
|
|||||||
xorg = {
|
xorg = {
|
||||||
#xorgserver = nativePlatforms;
|
#xorgserver = nativePlatforms;
|
||||||
};
|
};
|
||||||
|
nixUnstable = linux;
|
||||||
linuxPackages_2_6_32.kernel = linux;
|
linuxPackages_2_6_32.kernel = linux;
|
||||||
linuxPackages_2_6_33.kernel = linux;
|
linuxPackages_2_6_33.kernel = linux;
|
||||||
gdbCross = nativePlatforms;
|
gdbCross = nativePlatforms;
|
||||||
|
Loading…
Reference in New Issue
Block a user