Merge pull request #24762 from matthewbauer/darwin-misc-fixes
darwin: miscellaneous fixes
This commit is contained in:
commit
f8230518a2
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, djvulibre, qt4, xorg, libtiff }:
|
, djvulibre, qt4, xorg, libtiff
|
||||||
|
, darwin }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "djview-${version}";
|
name = "djview-${version}";
|
||||||
@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
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 = {
|
passthru = {
|
||||||
mozillaPlugin = "/lib/netscape/plugins";
|
mozillaPlugin = "/lib/netscape/plugins";
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
, baseVersion, revision, sha256
|
, baseVersion, revision, sha256
|
||||||
, extraConfigureFlags ? ""
|
, extraConfigureFlags ? ""
|
||||||
, postPatch ? null
|
, postPatch ? null
|
||||||
|
, darwin
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -20,7 +21,8 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
inherit postPatch;
|
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 = ''
|
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 "" }
|
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 "" }
|
||||||
|
@ -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
|
let version = "1.0.9"; in
|
||||||
|
|
||||||
@ -15,6 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
prefixKey = "--prefix ";
|
prefixKey = "--prefix ";
|
||||||
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
||||||
nativeBuildInputs = [ pkgconfig which cmake ];
|
nativeBuildInputs = [ pkgconfig which cmake ];
|
||||||
|
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://github.com/lastfm/liblastfm;
|
homepage = http://github.com/lastfm/liblastfm;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, wxGTK, sqlite }:
|
{ stdenv, fetchFromGitHub, wxGTK, sqlite
|
||||||
|
, darwin }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "wxsqlite3-${version}";
|
name = "wxsqlite3-${version}";
|
||||||
@ -11,7 +12,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha1 = "bb8p58g88nkdcsj3h4acx7h925n2cy9g";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://utelle.github.io/wxsqlite3/ ;
|
homepage = http://utelle.github.io/wxsqlite3/ ;
|
||||||
|
@ -7,12 +7,12 @@ stdenv.mkDerivation rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ascherer";
|
owner = "ascherer";
|
||||||
repo = "cwebbin";
|
repo = "cwebbin";
|
||||||
rev = name;
|
rev = "2016-05-20-22p";
|
||||||
sha256 = "0zf93016hm9i74i2v384rwzcw16y3hg5vc2mibzkx1rzvqa50yfr";
|
sha256 = "0zf93016hm9i74i2v384rwzcw16y3hg5vc2mibzkx1rzvqa50yfr";
|
||||||
};
|
};
|
||||||
|
|
||||||
cweb = fetchurl {
|
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";
|
sha256 = "1hdzxfzaibnjxjzgp6d2zay8nsarnfy9hfq55hz1bxzzl23n35aj";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
"CP=cp"
|
"CP=cp"
|
||||||
"RM=rm"
|
"RM=rm"
|
||||||
"PDFTEX=echo"
|
"PDFTEX=echo"
|
||||||
|
"CC=c++"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
makeFlags = [ "DESTDIR=$(out)" ];
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
''
|
''
|
||||||
mkdir -p $out/share/exult/music
|
mkdir -p $out/share/exult/music
|
||||||
|
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = optionalString (!stdenv.isDarwin) ''
|
||||||
patchelf --set-rpath "$libPath" "$out/bin/sysdig"
|
patchelf --set-rpath "$libPath" "$out/bin/sysdig"
|
||||||
patchelf --set-rpath "$libPath" "$out/bin/csysdig"
|
patchelf --set-rpath "$libPath" "$out/bin/csysdig"
|
||||||
'' + optionalString (kernel != null) ''
|
'' + optionalString (kernel != null) ''
|
||||||
|
@ -17,9 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
zstd lz4
|
zstd lz4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
makeFlags = [ "CC=cc" "zstdmt" "lz4mt" ];
|
||||||
make zstdmt lz4mt
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin/
|
mkdir -p $out/bin/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff
|
{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff
|
||||||
, tcl-8_5 }:
|
, tcl-8_5, darwin }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "rrdtool-1.6.0";
|
name = "rrdtool-1.6.0";
|
||||||
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ gettext perl libxml2 pango cairo groff ]
|
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 = ''
|
postInstall = ''
|
||||||
# for munin and rrdtool support
|
# for munin and rrdtool support
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
unpackPhase = ":";
|
unpackPhase = ":";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
gcc -O2 -o nuttcp $src
|
cc -O2 -o nuttcp $src
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -39,6 +39,6 @@ cat makefile | \
|
|||||||
> "$nixMakefile" && \
|
> "$nixMakefile" && \
|
||||||
mkdir -p "$out/bin" && mkdir -p "$out/lib" \
|
mkdir -p "$out/bin" && mkdir -p "$out/lib" \
|
||||||
mkdir -p "$out/man" && mkdir -p "$out/doc/lout" && \
|
mkdir -p "$out/man" && mkdir -p "$out/doc/lout" && \
|
||||||
make -f "$nixMakefile" install installman && \
|
make -f "$nixMakefile" CC=cc install installman && \
|
||||||
installDoc && \
|
installDoc && \
|
||||||
fixupPhase
|
fixupPhase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user