forked from mirrors/nixpkgs
Merge pull request #17685 from matthewbauer/darwin-misc2
Darwin misc. fixes
This commit is contained in:
commit
3f337a2b23
|
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ffmpeg sox ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
meta = {
|
||||
description = "A audio/video loudness scanner implementing ITU-R BS.1770";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ fetchurl, stdenv }:
|
||||
{ fetchurl, stdenv
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cd-discid-${version}";
|
||||
|
@ -11,6 +12,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
installFlags = "PREFIX=$(out) INSTALL=install";
|
||||
|
||||
buildInputs = []
|
||||
++ stdenv.lib.optional stdenv.isDarwin [ IOKit ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://linukz.org/cd-discid.shtml;
|
||||
license = licenses.gpl2Plus;
|
||||
|
|
|
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0nha21rbdhl10vdpaq8d5v5fszvggl1xar555pvrnvm2y443ffpp";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
||||
|
||||
buildInputs = [ gtk2 which pkgconfig intltool file ];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
|
|||
patches = [ ./configure.patch ];
|
||||
patchFlags = "-p0";
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp mg $out/bin
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, intltool, pkgconfig, gtk2 }:
|
||||
{ stdenv, fetchurl, intltool, pkgconfig, gtk2, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gpicview-0.2.4";
|
||||
|
@ -8,6 +8,13 @@ stdenv.mkDerivation {
|
|||
sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/nonas/debian-clang/master/buildlogs/gpicview/gpicview-0.2.4/debian/patches/clang_FTBFS_Wreturn-type.patch";
|
||||
sha256 = "02dm966bplnv10knpdx7rlpjipk884156ggd9ij05zhza0jl8xcs";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple and fast image viewer for X";
|
||||
homepage = http://lxde.sourceforge.net/gpicview/;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk, libX11, libSM, libICE }:
|
||||
{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk, libX11, libSM, libICE
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gkrellm-2.3.5";
|
||||
|
@ -7,7 +8,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "12rc6zaa7kb60b9744lbrlfkxxfniprm6x0mispv63h4kh75navh";
|
||||
};
|
||||
|
||||
buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE];
|
||||
buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
|
||||
|
||||
# Makefiles are patched to fix references to `/usr/X11R6' and to add
|
||||
# `-lX11' to make sure libX11's store path is in the RPATH.
|
||||
|
|
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
homepage = http://www.roland-riegel.de/nload/index.html;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.devhell ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = https://github.com/Airblader/i3blocks-gaps;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ "carlsverre" ];
|
||||
platforms = platforms.all;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
, gnused, gawk, makeWrapper
|
||||
, odbcSupport ? false, unixODBC ? null
|
||||
, wxSupport ? false, mesa ? null, wxGTK ? null, xorg ? null
|
||||
, enableDebugInfo ? false }:
|
||||
, enableDebugInfo ? false
|
||||
, Carbon ? null, Cocoa ? null }:
|
||||
|
||||
assert wxSupport -> mesa != null && wxGTK != null && xorg != null;
|
||||
assert odbcSupport -> unixODBC != null;
|
||||
|
@ -23,7 +24,8 @@ stdenv.mkDerivation rec {
|
|||
buildInputs =
|
||||
[ perl gnum4 ncurses openssl makeWrapper
|
||||
] ++ optional wxSupport [ mesa wxGTK xorg.libX11 ]
|
||||
++ optional odbcSupport [ unixODBC ];
|
||||
++ optional odbcSupport [ unixODBC ]
|
||||
++ optional stdenv.isDarwin [ Carbon Cocoa ];
|
||||
|
||||
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, perl, icu, zlib, gmp, readline }:
|
||||
{ stdenv, fetchurl, perl, icu, zlib, gmp, readline
|
||||
, CoreServices, ApplicationServices }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rakudo-star-${version}";
|
||||
|
@ -9,7 +10,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0czx7w1chf108mpyps7k7nqq8cbsy1rbb87ajms9xj65l4ywg8ka";
|
||||
};
|
||||
|
||||
buildInputs = [ icu zlib gmp readline perl ];
|
||||
buildInputs = [ icu zlib gmp readline perl ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
|
||||
configureScript = "perl ./Configure.pl";
|
||||
configureFlags =
|
||||
[ "--backends=moar"
|
||||
|
|
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ cmake perl go ];
|
||||
enableParallelBuilding = true;
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/include $out/lib
|
||||
|
|
|
@ -12,6 +12,14 @@ stdenv.mkDerivation {
|
|||
|
||||
buildFlags = [ "libdclxvipairing.so" ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "cc"
|
||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "-soname=libdclxvipairing.so" "-install_name,libdclxvipairing.so"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{include,lib}
|
||||
find . -name \*.h -exec cp {} $out/include \;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor, libXrandr, libXft }:
|
||||
{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor, libXrandr, libXft
|
||||
, CoreServices ? null }:
|
||||
|
||||
let
|
||||
version = "1.7.9";
|
||||
|
@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1jb9368xsin3ppdf6979n5s7in3s9klbxqbwcp0z8misjixl7nzg";
|
||||
};
|
||||
|
||||
buildInputs = [ libpng xlibsWrapper libjpeg libtiff zlib bzip2 libXcursor libXrandr libXft ];
|
||||
buildInputs = [ libpng xlibsWrapper libjpeg libtiff zlib bzip2 libXcursor libXrandr libXft ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchurl, pkgconfig, glib, babl, libpng, cairo, libjpeg
|
||||
, librsvg, pango, gtk, bzip2, intltool }:
|
||||
, librsvg, pango, gtk, bzip2, intltool
|
||||
, OpenGL ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gegl-0.2.0";
|
||||
|
@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
||||
|
||||
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk bzip2 intltool ];
|
||||
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk bzip2 intltool ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin OpenGL;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, mesa_glu, x11, libXmu, libXi }:
|
||||
{ stdenv, fetchurl, mesa_glu, x11, libXmu, libXi
|
||||
, AGL ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
@ -12,6 +13,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ x11 libXmu libXi ];
|
||||
propagatedNativeBuildInputs = [ mesa_glu ]; # GL/glew.h includes GL/glu.h
|
||||
buildInputs = [] ++ optionals stdenv.isDarwin [ AGL ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's|lib64|lib|' config/Makefile.linux
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, pkgconfig, libnfc, openssl }:
|
||||
{ stdenv, fetchurl, pkgconfig, libnfc, openssl
|
||||
, libobjc ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libfreefare-${version}";
|
||||
|
@ -9,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig libnfc openssl ];
|
||||
buildInputs = [ pkgconfig libnfc openssl ] ++ stdenv.lib.optional stdenv.isDarwin libobjc;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
||||
|
|
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||
homepage = http://sourceforge.net/projects/omxil/;
|
||||
description = "An opensource implementation of the Khronos OpenMAX Integration Layer API to access multimedia components";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||
|
||||
propagatedBuildInputs = [ glib ];
|
||||
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ];
|
||||
buildInputs = [ libgcrypt gobjectIntrospection vala_0_32 ];
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libstatgrab-0.91";
|
||||
|
@ -8,6 +9,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1azinx2yzs442ycwq6p15skl3mscmqj7fd5hq7fckhjp92735s83";
|
||||
};
|
||||
|
||||
buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.i-scream.org/libstatgrab/;
|
||||
description = "A library that provides cross platforms access to statistics about the running system";
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, CoreServices ? null }:
|
||||
|
||||
let version = "4.12"; in
|
||||
|
||||
|
@ -27,6 +28,8 @@ stdenv.mkDerivation {
|
|||
moveToOutput share "$dev" # just aclocal
|
||||
'';
|
||||
|
||||
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ ncurses libiconv ];
|
||||
|
||||
buildPhase = ''
|
||||
sed -i s/gcc/cc/g Makefile
|
||||
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
|
||||
'' + ( stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile
|
||||
|
|
|
@ -16,6 +16,7 @@ stdenv.mkDerivation {
|
|||
substituteInPlace install/install.mak --replace /usr/local/bin $out/bin
|
||||
substituteInPlace install/install.mak --replace MKDIR=mkdir "MKDIR=mkdir -p"
|
||||
'';
|
||||
buildFlags = [ "CCC=c++" "LD=c++" ];
|
||||
|
||||
meta = {
|
||||
description = "C and C++ Code Counter";
|
||||
|
|
|
@ -8,6 +8,8 @@ stdenv.mkDerivation {
|
|||
sha256 = "04k631g9lzvp9xr4sw51xpq1g542np61s1l8fpwx9rbsc8m5l0i6";
|
||||
};
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
# Manually copy, make install copies to /usr/local/bin
|
||||
mkdir -pv $out/bin/
|
||||
|
|
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildPhase = ''
|
||||
gcc tie.c -o tie
|
||||
cc tie.c -o tie
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
@ -28,6 +28,11 @@ stdenv.mkDerivation rec {
|
|||
chmod 755 -R $sourceRoot/libsailing
|
||||
'';
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace gcc cc
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simulator daemon for autonomous sailing boats";
|
||||
homepage = https://github.com/sails-simulator/sailsd;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, openssl, libuuid }:
|
||||
{ stdenv, fetchurl, openssl, libuuid, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mosquitto";
|
||||
|
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl libuuid ];
|
||||
buildInputs = [ openssl libuuid ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin cmake;
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
|
|
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||
phases = [ "buildPhase" "installPhase" ];
|
||||
|
||||
buildPhase = ''
|
||||
gcc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
||||
cc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ libX11 imlib2 ]
|
||||
++ stdenv.lib.optional enableXinerama libXinerama;
|
||||
|
||||
buildFlags = if enableXinerama then "xinerama=1" else "xinerama=0";
|
||||
buildFlags = "CC=cc " + (if enableXinerama then "xinerama=1" else "xinerama=0");
|
||||
|
||||
installFlags = "DESTDIR=$(out) PREFIX=";
|
||||
|
||||
|
|
|
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace "prefix = /usr" "prefix = $out"
|
||||
substituteInPlace Makefile \
|
||||
--replace "prefix = /usr" "prefix = $out" \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
|
@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "073h03bmpfdy15qh37lvppayld2747i4acpyk0pm5nf2raiak0zm";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ./dumptorrent $out/bin
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
|
||||
, withGTK ? false, gtk2
|
||||
, withPython ? true
|
||||
, Carbon ? null, Cocoa ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -30,7 +31,8 @@ stdenv.mkDerivation rec {
|
|||
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
||||
pango
|
||||
]
|
||||
++ lib.optionals withGTK [ gtk2 ];
|
||||
++ lib.optionals withGTK [ gtk2 ]
|
||||
++ lib.optionals (withGTK && stdenv.isDarwin) [ Carbon Cocoa ];
|
||||
|
||||
configureFlags =
|
||||
lib.optionals (!withPython) [ "--disable-python-scripting" "--disable-python-extension" ]
|
||||
|
|
|
@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
cp sl $out/bin
|
||||
|
|
|
@ -9,6 +9,8 @@ stdenv.mkDerivation {
|
|||
|
||||
buildInputs = [xlibsWrapper];
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv "$out/bin"
|
||||
mkdir -pv "$out/share/man/man1"
|
||||
|
|
|
@ -46,6 +46,6 @@ stdenv.mkDerivation rec {
|
|||
description = "Secure parasitic rdate replacement";
|
||||
homepage = https://github.com/ioerror/tlsdate;
|
||||
maintainers = with maintainers; [ tv fpletz ];
|
||||
platforms = platforms.allBut [ "darwin" ];
|
||||
platforms = platforms.allBut platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2 }:
|
||||
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pcsclite-${version}";
|
||||
|
@ -26,7 +27,8 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig perl python2 ];
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ];
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Middleware to access a smart card using SCard API (PC/SC)";
|
||||
|
|
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1axg8r4g5n5kdqj5013pgck80nni3z172xkg506vz4zx1zcmrm4r";
|
||||
};
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv stricat $out/bin
|
||||
|
|
|
@ -8,6 +8,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "3ef25907ec5d1dfb0df94c9388c020b593fbe162d7aaa9bd08f35d2a125af056";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/man/man1
|
||||
|
|
|
@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
|||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
gcc -O2 hardlink.c -o $out/bin/hardlink
|
||||
cc -O2 hardlink.c -o $out/bin/hardlink
|
||||
mv hardlink.1 $out/share/man/man1/hardlink.1
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, IOKit ? null }:
|
||||
|
||||
let
|
||||
version = "6.4";
|
||||
|
@ -18,6 +19,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "11bsxcghh7adzdklcslamlynydxb708vfz892d5w7agdq405ddza";
|
||||
};
|
||||
|
||||
buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
||||
|
||||
patchPhase = ''
|
||||
cp ${driverdb} drivedb.h
|
||||
sed -i -e 's@which which >/dev/null || exit 1@alias which="type -p"@' update-smart-drivedb.in
|
||||
|
|
|
@ -6,7 +6,9 @@ stdenv.mkDerivation {
|
|||
|
||||
installPhase=''make install "PREFIX=$out"'';
|
||||
|
||||
patchPhase = ''sed -i 's@/usr/bin/install@install@g' Makefile'';
|
||||
patchPhase = ''
|
||||
sed -i 's@/usr/bin/install@install@g ; s/gcc/cc/g' Makefile
|
||||
'';
|
||||
|
||||
crossAttrs = {
|
||||
makeFlags = "CC=${stdenv.cross.config}-gcc";
|
||||
|
|
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/RhysU/yeshup;
|
||||
platforms = platforms.all;
|
||||
platforms = platforms.linux;
|
||||
license = licenses.cc-by-sa-30; # From Stackoverflow answer
|
||||
maintainers = with maintainers; [ obadz ];
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, zlib }:
|
||||
{ stdenv, fetchurl, zlib, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "odt2txt-0.4";
|
||||
|
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
configurePhase="export makeFlags=\"DESTDIR=$out\"";
|
||||
|
||||
buildInputs = [ zlib ];
|
||||
buildInputs = [ zlib libiconv ];
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
|
||||
|
||||
meta = {
|
||||
description = "Simple .odt to .txt converter";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, autoconf, automake }:
|
||||
{ stdenv, fetchurl, autoconf, automake, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "unrtf-${version}";
|
||||
|
@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ autoconf automake ];
|
||||
|
||||
buildInputs = [ ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
|
||||
|
||||
preConfigure = "./bootstrap";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
|
|
@ -1607,6 +1607,7 @@ in
|
|||
fontforge = lowPrio (callPackage ../tools/misc/fontforge { });
|
||||
fontforge-gtk = callPackage ../tools/misc/fontforge {
|
||||
withGTK = true;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
|
||||
fontmatrix = callPackage ../applications/graphics/fontmatrix {};
|
||||
|
@ -1619,6 +1620,7 @@ in
|
|||
|
||||
fox = callPackage ../development/libraries/fox/default.nix {
|
||||
libpng = libpng12;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
fox_1_6 = callPackage ../development/libraries/fox/fox-1.6.nix { };
|
||||
|
@ -3022,7 +3024,9 @@ in
|
|||
|
||||
pciutils = callPackage ../tools/system/pciutils { };
|
||||
|
||||
pcsclite = callPackage ../tools/security/pcsclite { };
|
||||
pcsclite = callPackage ../tools/security/pcsclite {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
pcsctools = callPackage ../tools/security/pcsctools {
|
||||
inherit (perlPackages) pcscperl Glib Gtk2 Pango;
|
||||
|
@ -3497,7 +3501,9 @@ in
|
|||
|
||||
slsnif = callPackage ../tools/misc/slsnif { };
|
||||
|
||||
smartmontools = callPackage ../tools/system/smartmontools { };
|
||||
smartmontools = callPackage ../tools/system/smartmontools {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
smbldaptools = callPackage ../tools/networking/smbldaptools {
|
||||
inherit (perlPackages) NetLDAP CryptSmbHash DigestSHA1;
|
||||
|
@ -5676,7 +5682,9 @@ in
|
|||
|
||||
clooj = callPackage ../development/interpreters/clojure/clooj.nix { };
|
||||
|
||||
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix { };
|
||||
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
erlangR16_odbc = callPackage ../development/interpreters/erlang/R16.nix { odbcSupport = true; };
|
||||
erlangR17 = callPackage ../development/interpreters/erlang/R17.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
|
@ -5962,7 +5970,9 @@ in
|
|||
|
||||
racket = callPackage ../development/interpreters/racket { };
|
||||
|
||||
rakudo = callPackage ../development/interpreters/rakudo { };
|
||||
rakudo = callPackage ../development/interpreters/rakudo {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
|
||||
};
|
||||
|
||||
rascal = callPackage ../development/interpreters/rascal { };
|
||||
|
||||
|
@ -7317,7 +7327,9 @@ in
|
|||
|
||||
gephi = callPackage ../applications/science/misc/gephi { };
|
||||
|
||||
gegl = callPackage ../development/libraries/gegl { };
|
||||
gegl = callPackage ../development/libraries/gegl {
|
||||
inherit (darwin.apple_sdk.frameworks) OpenGL;
|
||||
};
|
||||
|
||||
gegl_0_3 = callPackage ../development/libraries/gegl/3.0.nix { };
|
||||
|
||||
|
@ -7370,7 +7382,9 @@ in
|
|||
gle = callPackage ../development/libraries/gle { };
|
||||
|
||||
glew = callPackage ../development/libraries/glew { };
|
||||
glew110 = callPackage ../development/libraries/glew/1.10.nix { };
|
||||
glew110 = callPackage ../development/libraries/glew/1.10.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AGL;
|
||||
};
|
||||
|
||||
glfw = self.glfw3;
|
||||
glfw2 = callPackage ../development/libraries/glfw/2.x.nix { };
|
||||
|
@ -8117,7 +8131,9 @@ in
|
|||
|
||||
libffi = callPackage ../development/libraries/libffi { };
|
||||
|
||||
libfreefare = callPackage ../development/libraries/libfreefare { };
|
||||
libfreefare = callPackage ../development/libraries/libfreefare {
|
||||
inherit (darwin) libobjc;
|
||||
};
|
||||
|
||||
libftdi = callPackage ../development/libraries/libftdi { };
|
||||
|
||||
|
@ -8501,7 +8517,9 @@ in
|
|||
|
||||
libspatialite = callPackage ../development/libraries/libspatialite { };
|
||||
|
||||
libstatgrab = callPackage ../development/libraries/libstatgrab { };
|
||||
libstatgrab = callPackage ../development/libraries/libstatgrab {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
libsvm = callPackage ../development/libraries/libsvm { };
|
||||
|
||||
|
@ -8877,7 +8895,9 @@ in
|
|||
|
||||
non = callPackage ../applications/audio/non { };
|
||||
|
||||
nspr = callPackage ../development/libraries/nspr { };
|
||||
nspr = callPackage ../development/libraries/nspr {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
nss = lowPrio (callPackage ../development/libraries/nss { });
|
||||
nssTools = nss.tools;
|
||||
|
@ -12496,7 +12516,9 @@ in
|
|||
|
||||
cbc = callPackage ../applications/science/math/cbc { };
|
||||
|
||||
cddiscid = callPackage ../applications/audio/cd-discid { };
|
||||
cddiscid = callPackage ../applications/audio/cd-discid {
|
||||
inherit (darwin) IOKit;
|
||||
};
|
||||
|
||||
cdparanoia = self.cdparanoiaIII;
|
||||
|
||||
|
@ -13329,7 +13351,9 @@ in
|
|||
|
||||
svox = callPackage ../applications/audio/svox { };
|
||||
|
||||
gkrellm = callPackage ../applications/misc/gkrellm { };
|
||||
gkrellm = callPackage ../applications/misc/gkrellm {
|
||||
inherit (darwin) IOKit;
|
||||
};
|
||||
|
||||
gmu = callPackage ../applications/audio/gmu { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue