git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24762 from matthewbauer/darwin-misc-fixes

darwin: miscellaneous fixes

commitf8230518a2618963d3fcd2278b773c4dc075c1ba authorDaiderd Jordan <daiderd@gmail.com> dateMon 10 Apr 2017, 08:50 (10 years ago) parent3766b87dd25b6d
11 files changed+29−16
pkgs/applications/graphics/djview/default.nix+4−2 pkgs/development/libraries/botan/generic.nix+3−1 pkgs/development/libraries/liblastfm/default.nix+3−1 pkgs/development/libraries/wxsqlite3/default.nix+8−2 pkgs/development/tools/misc/cwebbin/default.nix+3−2 pkgs/games/exult/default.nix+2 pkgs/os-specific/linux/sysdig/default.nix+1−1 pkgs/tools/compression/zstdmt/default.nix+1−3 pkgs/tools/misc/rrdtool/default.nix+2−2 pkgs/tools/networking/nuttcp/default.nix+1−1 pkgs/tools/typesetting/lout/builder.sh+1−1
pkgs/applications/graphics/djview/default.nix+4−2
@@ -1,5 +1,6 @@
11{ stdenv, fetchurl, pkgconfig
2−, djvulibre, qt4, xorg, libtiff }:
2+, djvulibre, qt4, xorg, libtiff
3+, darwin }:
34
45stdenv.mkDerivation rec {
56 name = "djview-${version}";
@@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
1213
1314 nativeBuildInputs = [ pkgconfig ];
1415
15− buildInputs = [ djvulibre qt4 xorg.libXt libtiff ];
16+ buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
17+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];
1618
1719 passthru = {
1820 mozillaPlugin = "/lib/netscape/plugins";
pkgs/development/libraries/botan/generic.nix+3−1
@@ -3,6 +3,7 @@
33, baseVersion, revision, sha256
44, extraConfigureFlags ? ""
55, postPatch ? null
6+, darwin
67, ...
78}:
89
@@ -20,7 +21,8 @@ stdenv.mkDerivation rec {
2021 };
2122 inherit postPatch;
2223
23− buildInputs = [ python bzip2 zlib gmp openssl boost ];
24+ buildInputs = [ python bzip2 zlib gmp openssl boost ]
25+ ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2426
2527 configurePhase = ''
2628 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 "" }
pkgs/development/libraries/liblastfm/default.nix+3−1
@@ -1,4 +1,5 @@
1−{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake }:
1+{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake
2+, darwin }:
23
34let version = "1.0.9"; in
45
@@ -15,6 +16,7 @@ stdenv.mkDerivation rec {
1516 prefixKey = "--prefix ";
1617 propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
1718 nativeBuildInputs = [ pkgconfig which cmake ];
19+ buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
1820
1921 meta = {
2022 homepage = http://github.com/lastfm/liblastfm;
pkgs/development/libraries/wxsqlite3/default.nix+8−2
@@ -1,4 +1,5 @@
1−{ stdenv, fetchFromGitHub, wxGTK, sqlite }:
1+{ stdenv, fetchFromGitHub, wxGTK, sqlite
2+, darwin }:
23
34stdenv.mkDerivation rec {
45 name = "wxsqlite3-${version}";
@@ -11,7 +12,12 @@ stdenv.mkDerivation rec {
1112 sha1 = "bb8p58g88nkdcsj3h4acx7h925n2cy9g";
1213 };
1314
14− buildInputs = [ wxGTK sqlite ];
15+ preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
16+ cp build28/Info.plist.in build28/wxmac.icns build/
17+ '';
18+
19+ buildInputs = [ wxGTK sqlite ]
20+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa darwin.stubs.setfile darwin.stubs.rez darwin.stubs.derez ];
1521
1622 meta = with stdenv.lib; {
1723 homepage = http://utelle.github.io/wxsqlite3/ ;
pkgs/development/tools/misc/cwebbin/default.nix+3−2
@@ -7,12 +7,12 @@ stdenv.mkDerivation rec {
77 src = fetchFromGitHub {
88 owner = "ascherer";
99 repo = "cwebbin";
10− rev = name;
10+ rev = "2016-05-20-22p";
1111 sha256 = "0zf93016hm9i74i2v384rwzcw16y3hg5vc2mibzkx1rzvqa50yfr";
1212 };
1313
1414 cweb = fetchurl {
15− url = https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb.tar.gz;
15+ url = https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb-3.64ah.tgz;
1616 sha256 = "1hdzxfzaibnjxjzgp6d2zay8nsarnfy9hfq55hz1bxzzl23n35aj";
1717 };
1818
@@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
2727 "CP=cp"
2828 "RM=rm"
2929 "PDFTEX=echo"
30+ "CC=c++"
3031 ];
3132
3233 buildPhase = ''
pkgs/games/exult/default.nix+2
@@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
3030
3131 enableParallelBuilding = true;
3232
33+ makeFlags = [ "DESTDIR=$(out)" ];
34+
3335 postInstall =
3436 ''
3537 mkdir -p $out/share/exult/music
pkgs/os-specific/linux/sysdig/default.nix+1−1
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
4444 stdenv.cc.cc
4545 ];
4646
47− postInstall = ''
47+ postInstall = optionalString (!stdenv.isDarwin) ''
4848 patchelf --set-rpath "$libPath" "$out/bin/sysdig"
4949 patchelf --set-rpath "$libPath" "$out/bin/csysdig"
5050 '' + optionalString (kernel != null) ''
pkgs/tools/compression/zstdmt/default.nix+1−3
@@ -17,9 +17,7 @@ stdenv.mkDerivation rec {
1717 zstd lz4
1818 ];
1919
20− buildPhase = ''
21− make zstdmt lz4mt
22− '';
20+ makeFlags = [ "CC=cc" "zstdmt" "lz4mt" ];
2321
2422 installPhase = ''
2523 mkdir -p $out/bin/
pkgs/tools/misc/rrdtool/default.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff
2−, tcl-8_5 }:
2+, tcl-8_5, darwin }:
33
44stdenv.mkDerivation rec {
55 name = "rrdtool-1.6.0";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 nativeBuildInputs = [ pkgconfig ];
1313
1414 buildInputs = [ gettext perl libxml2 pango cairo groff ]
15− ++ stdenv.lib.optional stdenv.isDarwin tcl-8_5;
15+ ++ stdenv.lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ];
1616
1717 postInstall = ''
1818 # for munin and rrdtool support
pkgs/tools/networking/nuttcp/default.nix+1−1
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
2121 unpackPhase = ":";
2222
2323 buildPhase = ''
24− gcc -O2 -o nuttcp $src
24+ cc -O2 -o nuttcp $src
2525 '';
2626
2727 installPhase = ''
pkgs/tools/typesetting/lout/builder.sh+1−1
@@ -39,6 +39,6 @@ cat makefile | \
3939 > "$nixMakefile" && \
4040mkdir -p "$out/bin" && mkdir -p "$out/lib" \
4141mkdir -p "$out/man" && mkdir -p "$out/doc/lout" && \
42−make -f "$nixMakefile" install installman && \
42+make -f "$nixMakefile" CC=cc install installman && \
4343installDoc && \
4444fixupPhase