forked from mirrors/nixpkgs
skarnet.org packages: fix darwin build
The configure scripts have been changed so that `--build` is now the way to specify (non-cross compiling) build target, which is necessary on darwin for binary compatibility across darwin versions.
This commit is contained in:
parent
eab30996bd
commit
09a5007797
|
@ -30,7 +30,7 @@ in stdenv.mkDerivation rec {
|
||||||
# Explicitly setting target ensures code can be compiled against a skalibs
|
# Explicitly setting target ensures code can be compiled against a skalibs
|
||||||
# binary built on a different version of darwin.
|
# binary built on a different version of darwin.
|
||||||
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
|
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
|
||||||
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://skarnet.org/software/skalibs/;
|
homepage = http://skarnet.org/software/skalibs/;
|
||||||
|
|
|
@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
|
||||||
"--with-dynlib=${skalibs}/lib"
|
"--with-dynlib=${skalibs}/lib"
|
||||||
]
|
]
|
||||||
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
||||||
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://skarnet.org/software/execline/;
|
homepage = http://skarnet.org/software/execline/;
|
||||||
|
|
|
@ -13,17 +13,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
|
|
||||||
nativeBuildInputs = []
|
|
||||||
++ optional stdenv.isDarwin gcc;
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-absolute-paths"
|
"--enable-absolute-paths"
|
||||||
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
||||||
"--with-include=${skalibs}/include"
|
"--with-include=${skalibs}/include"
|
||||||
"--with-lib=${skalibs}/lib"
|
"--with-lib=${skalibs}/lib"
|
||||||
"--with-dynlib=${skalibs}/lib"
|
"--with-dynlib=${skalibs}/lib"
|
||||||
];
|
]
|
||||||
|
# On darwin, the target triplet from -dumpmachine includes version number, but
|
||||||
|
# skarnet.org software uses the triplet to test binary compatibility.
|
||||||
|
# Explicitly setting target ensures code can be compiled against a skalibs
|
||||||
|
# binary built on a different version of darwin.
|
||||||
|
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
|
||||||
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
||||||
|
|
|
@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
|
||||||
"--with-dynlib=${skalibs}/lib"
|
"--with-dynlib=${skalibs}/lib"
|
||||||
]
|
]
|
||||||
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
||||||
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.skarnet.org/software/s6-dns/;
|
homepage = http://www.skarnet.org/software/s6-dns/;
|
||||||
|
|
|
@ -34,7 +34,7 @@ in stdenv.mkDerivation rec {
|
||||||
"--with-dynlib=${s6}/lib"
|
"--with-dynlib=${s6}/lib"
|
||||||
"--with-dynlib=${s6Dns}/lib"
|
"--with-dynlib=${s6Dns}/lib"
|
||||||
]
|
]
|
||||||
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.skarnet.org/software/s6-networking/;
|
homepage = http://www.skarnet.org/software/s6-networking/;
|
||||||
|
|
|
@ -32,7 +32,7 @@ in stdenv.mkDerivation rec {
|
||||||
"--with-dynlib=${s6}/lib"
|
"--with-dynlib=${s6}/lib"
|
||||||
]
|
]
|
||||||
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
||||||
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://skarnet.org/software/s6-rc/;
|
homepage = http://skarnet.org/software/s6-rc/;
|
||||||
|
|
|
@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
|
||||||
"--with-dynlib=${execline}/lib"
|
"--with-dynlib=${execline}/lib"
|
||||||
]
|
]
|
||||||
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
||||||
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.skarnet.org/software/s6/;
|
homepage = http://www.skarnet.org/software/s6/;
|
||||||
|
|
Loading…
Reference in a new issue