Merge pull request #24762 from matthewbauer/darwin-misc-fixes

darwin: miscellaneous fixes
This commit is contained in:
Daiderd Jordan
2017-04-10 08:50:15 +02:00
committed by GitHub
11 changed files with 29 additions and 16 deletions

View File

@@ -3,6 +3,7 @@
, baseVersion, revision, sha256
, extraConfigureFlags ? ""
, postPatch ? null
, darwin
, ...
}:
@@ -20,7 +21,8 @@ stdenv.mkDerivation rec {
};
inherit postPatch;
buildInputs = [ python bzip2 zlib gmp openssl boost ];
buildInputs = [ python bzip2 zlib gmp openssl boost ]
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
configurePhase = ''
python configure.py --prefix=$out --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""} ${extraConfigureFlags}${if stdenv.cc.isClang then " --cc=clang" else "" }

View File

@@ -1,4 +1,5 @@
{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake }:
{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake
, darwin }:
let version = "1.0.9"; in
@@ -15,6 +16,7 @@ stdenv.mkDerivation rec {
prefixKey = "--prefix ";
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
nativeBuildInputs = [ pkgconfig which cmake ];
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
meta = {
homepage = http://github.com/lastfm/liblastfm;

View File

@@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, wxGTK, sqlite }:
{ stdenv, fetchFromGitHub, wxGTK, sqlite
, darwin }:
stdenv.mkDerivation rec {
name = "wxsqlite3-${version}";
@@ -11,7 +12,12 @@ stdenv.mkDerivation rec {
sha1 = "bb8p58g88nkdcsj3h4acx7h925n2cy9g";
};
buildInputs = [ wxGTK sqlite ];
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
cp build28/Info.plist.in build28/wxmac.icns build/
'';
buildInputs = [ wxGTK sqlite ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa darwin.stubs.setfile darwin.stubs.rez darwin.stubs.derez ];
meta = with stdenv.lib; {
homepage = http://utelle.github.io/wxsqlite3/ ;

View File

@@ -7,12 +7,12 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "ascherer";
repo = "cwebbin";
rev = name;
rev = "2016-05-20-22p";
sha256 = "0zf93016hm9i74i2v384rwzcw16y3hg5vc2mibzkx1rzvqa50yfr";
};
cweb = fetchurl {
url = https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb.tar.gz;
url = https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb-3.64ah.tgz;
sha256 = "1hdzxfzaibnjxjzgp6d2zay8nsarnfy9hfq55hz1bxzzl23n35aj";
};
@@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
"CP=cp"
"RM=rm"
"PDFTEX=echo"
"CC=c++"
];
buildPhase = ''