mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-10 09:07:17 +00:00
Merge pull request #10977 from sjourdois/ffmpeg
darwin: ffmpeg-full and deps: darwin fixes
This commit is contained in:
commit
f7bd63dc77
@ -138,6 +138,10 @@
|
|||||||
, optimizationsDeveloper ? true
|
, optimizationsDeveloper ? true
|
||||||
, extraWarningsDeveloper ? false
|
, extraWarningsDeveloper ? false
|
||||||
, strippingDeveloper ? false
|
, strippingDeveloper ? false
|
||||||
|
/*
|
||||||
|
* Darwin frameworks
|
||||||
|
*/
|
||||||
|
, Cocoa, CoreServices
|
||||||
}:
|
}:
|
||||||
|
|
||||||
/* Maintainer notes:
|
/* Maintainer notes:
|
||||||
@ -405,7 +409,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ optionals x11grabExtlib [ libXext libXfixes ]
|
++ optionals x11grabExtlib [ libXext libXfixes ]
|
||||||
++ optionals nonfreeLicensing [ faac fdk_aac openssl ]
|
++ optionals nonfreeLicensing [ faac fdk_aac openssl ]
|
||||||
++ optional ((isLinux || isFreeBSD) && libva != null) libva
|
++ optional ((isLinux || isFreeBSD) && libva != null) libva
|
||||||
++ optionals isLinux [ alsaLib libraw1394 libv4l ];
|
++ optionals isLinux [ alsaLib libraw1394 libv4l ]
|
||||||
|
++ optionals stdenv.isDarwin [ Cocoa CoreServices ];
|
||||||
|
|
||||||
# Build qt-faststart executable
|
# Build qt-faststart executable
|
||||||
buildPhase = optional qtFaststartProgram ''make tools/qt-faststart'';
|
buildPhase = optional qtFaststartProgram ''make tools/qt-faststart'';
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, libraw1394, libusb1 }:
|
{ stdenv, fetchurl, libraw1394, libusb1
|
||||||
|
, CoreServices
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libdc1394-2.2.3";
|
name = "libdc1394-2.2.3";
|
||||||
@ -9,7 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libusb1 ]
|
buildInputs = [ libusb1 ]
|
||||||
++ stdenv.lib.optional stdenv.isLinux [ libraw1394 ];
|
++ stdenv.lib.optional stdenv.isLinux libraw1394
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin CoreServices;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://sourceforge.net/projects/libdc1394/;
|
homepage = http://sourceforge.net/projects/libdc1394/;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, flac, libogg, libvorbis, pkgconfig }:
|
{ stdenv, fetchurl, flac, libogg, libvorbis, pkgconfig
|
||||||
|
, Carbon
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libsndfile-1.0.25";
|
name = "libsndfile-1.0.25";
|
||||||
@ -8,7 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "10j8mbb65xkyl0kfy0hpzpmrp0jkr12c7mfycqipxgka6ayns0ar";
|
sha256 = "10j8mbb65xkyl0kfy0hpzpmrp0jkr12c7mfycqipxgka6ayns0ar";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig flac libogg libvorbis ];
|
buildInputs = [ pkgconfig flac libogg libvorbis ]
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin Carbon;
|
||||||
|
|
||||||
# need headers from the Carbon.framework in /System/Library/Frameworks to
|
# need headers from the Carbon.framework in /System/Library/Frameworks to
|
||||||
# compile this on darwin -- not sure how to handle
|
# compile this on darwin -- not sure how to handle
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchurl, libiconv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "wavpack-${version}";
|
name = "wavpack-${version}";
|
||||||
@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# backported from
|
# backported from
|
||||||
# https://github.com/dbry/WavPack/commit/12867b33e2de3e95b88d7cb6f449ce0c5c87cdd5
|
# https://github.com/dbry/WavPack/commit/12867b33e2de3e95b88d7cb6f449ce0c5c87cdd5
|
||||||
|
@ -6260,18 +6260,16 @@ let
|
|||||||
# The following need to be fixed on Darwin
|
# The following need to be fixed on Darwin
|
||||||
frei0r = if stdenv.isDarwin then null else frei0r;
|
frei0r = if stdenv.isDarwin then null else frei0r;
|
||||||
game-music-emu = if stdenv.isDarwin then null else game-music-emu;
|
game-music-emu = if stdenv.isDarwin then null else game-music-emu;
|
||||||
gsm = if stdenv.isDarwin then null else gsm;
|
|
||||||
libjack2 = if stdenv.isDarwin then null else libjack2;
|
libjack2 = if stdenv.isDarwin then null else libjack2;
|
||||||
libmodplug = if stdenv.isDarwin then null else libmodplug;
|
libmodplug = if stdenv.isDarwin then null else libmodplug;
|
||||||
libssh = if stdenv.isDarwin then null else libssh;
|
|
||||||
libvpx = if stdenv.isDarwin then null else libvpx;
|
libvpx = if stdenv.isDarwin then null else libvpx;
|
||||||
openal = if stdenv.isDarwin then null else openal;
|
openal = if stdenv.isDarwin then null else openal;
|
||||||
openjpeg_1 = if stdenv.isDarwin then null else openjpeg_1;
|
|
||||||
libpulseaudio = if stdenv.isDarwin then null else libpulseaudio;
|
libpulseaudio = if stdenv.isDarwin then null else libpulseaudio;
|
||||||
samba = if stdenv.isDarwin then null else samba;
|
samba = if stdenv.isDarwin then null else samba;
|
||||||
vid-stab = if stdenv.isDarwin then null else vid-stab;
|
vid-stab = if stdenv.isDarwin then null else vid-stab;
|
||||||
x265 = if stdenv.isDarwin then null else x265;
|
x265 = if stdenv.isDarwin then null else x265;
|
||||||
xavs = if stdenv.isDarwin then null else xavs;
|
xavs = if stdenv.isDarwin then null else xavs;
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices;
|
||||||
};
|
};
|
||||||
|
|
||||||
ffmpegthumbnailer = callPackage ../development/libraries/ffmpegthumbnailer { };
|
ffmpegthumbnailer = callPackage ../development/libraries/ffmpegthumbnailer { };
|
||||||
@ -6965,7 +6963,9 @@ let
|
|||||||
|
|
||||||
libdbusmenu_qt5 = callPackage ../development/libraries/libdbusmenu-qt/qt-5.4.nix { };
|
libdbusmenu_qt5 = callPackage ../development/libraries/libdbusmenu-qt/qt-5.4.nix { };
|
||||||
|
|
||||||
libdc1394 = callPackage ../development/libraries/libdc1394 { };
|
libdc1394 = callPackage ../development/libraries/libdc1394 {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
libdc1394avt = callPackage ../development/libraries/libdc1394avt { };
|
libdc1394avt = callPackage ../development/libraries/libdc1394avt { };
|
||||||
|
|
||||||
@ -7437,7 +7437,9 @@ let
|
|||||||
# To bootstrap SBCL, I need CLisp 2.44.1; it needs libsigsegv 2.5
|
# To bootstrap SBCL, I need CLisp 2.44.1; it needs libsigsegv 2.5
|
||||||
libsigsegv_25 = callPackage ../development/libraries/libsigsegv/2.5.nix { };
|
libsigsegv_25 = callPackage ../development/libraries/libsigsegv/2.5.nix { };
|
||||||
|
|
||||||
libsndfile = callPackage ../development/libraries/libsndfile { };
|
libsndfile = callPackage ../development/libraries/libsndfile {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Carbon;
|
||||||
|
};
|
||||||
|
|
||||||
libsodium = callPackage ../development/libraries/libsodium { };
|
libsodium = callPackage ../development/libraries/libsodium { };
|
||||||
|
|
||||||
@ -8529,7 +8531,9 @@ let
|
|||||||
libpng = libpng12;
|
libpng = libpng12;
|
||||||
};
|
};
|
||||||
|
|
||||||
wavpack = callPackage ../development/libraries/wavpack { };
|
wavpack = callPackage ../development/libraries/wavpack {
|
||||||
|
inherit (darwin) libiconv;
|
||||||
|
};
|
||||||
|
|
||||||
wayland = callPackage ../development/libraries/wayland {
|
wayland = callPackage ../development/libraries/wayland {
|
||||||
graphviz = graphviz-nox;
|
graphviz = graphviz-nox;
|
||||||
|
Loading…
Reference in New Issue
Block a user