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
commit f8230518a2
11 changed files with 29 additions and 16 deletions

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig
, djvulibre, qt4, xorg, libtiff }:
, djvulibre, qt4, xorg, libtiff
, darwin }:
stdenv.mkDerivation rec {
name = "djview-${version}";
@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ djvulibre qt4 xorg.libXt libtiff ];
buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];
passthru = {
mozillaPlugin = "/lib/netscape/plugins";

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

View File

@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
makeFlags = [ "DESTDIR=$(out)" ];
postInstall =
''
mkdir -p $out/share/exult/music

View File

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
stdenv.cc.cc
];
postInstall = ''
postInstall = optionalString (!stdenv.isDarwin) ''
patchelf --set-rpath "$libPath" "$out/bin/sysdig"
patchelf --set-rpath "$libPath" "$out/bin/csysdig"
'' + optionalString (kernel != null) ''

View File

@ -17,9 +17,7 @@ stdenv.mkDerivation rec {
zstd lz4
];
buildPhase = ''
make zstdmt lz4mt
'';
makeFlags = [ "CC=cc" "zstdmt" "lz4mt" ];
installPhase = ''
mkdir -p $out/bin/

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff
, tcl-8_5 }:
, tcl-8_5, darwin }:
stdenv.mkDerivation rec {
name = "rrdtool-1.6.0";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext perl libxml2 pango cairo groff ]
++ stdenv.lib.optional stdenv.isDarwin tcl-8_5;
++ stdenv.lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ];
postInstall = ''
# for munin and rrdtool support

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
unpackPhase = ":";
buildPhase = ''
gcc -O2 -o nuttcp $src
cc -O2 -o nuttcp $src
'';
installPhase = ''

View File

@ -39,6 +39,6 @@ cat makefile | \
> "$nixMakefile" && \
mkdir -p "$out/bin" && mkdir -p "$out/lib" \
mkdir -p "$out/man" && mkdir -p "$out/doc/lout" && \
make -f "$nixMakefile" install installman && \
make -f "$nixMakefile" CC=cc install installman && \
installDoc && \
fixupPhase