git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10977 from sjourdois/ffmpeg

darwin: ffmpeg-full and deps: darwin fixes

commitf7bd63dc77335b3a8834b9c759454fe0406fcd64 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateFri 13 Nov 2015, 17:43 (11 years ago) parentbb70d19a2bf64a
5 files changed+29−12
pkgs/development/libraries/ffmpeg-full/default.nix+6−1 pkgs/development/libraries/libdc1394/default.nix+5−2 pkgs/development/libraries/libsndfile/default.nix+5−2 pkgs/development/libraries/wavpack/default.nix+3−1 pkgs/top-level/all-packages.nix+10−6
pkgs/development/libraries/ffmpeg-full/default.nix+6−1
@@ -138,6 +138,10 @@
138138, optimizationsDeveloper ? true
139139, extraWarningsDeveloper ? false
140140, strippingDeveloper ? false
141+/*
142+ * Darwin frameworks
143+ */
144+, Cocoa, CoreServices
141145}:
142146
143147/* Maintainer notes:
@@ -405,7 +409,8 @@ stdenv.mkDerivation rec {
405409 ++ optionals x11grabExtlib [ libXext libXfixes ]
406410 ++ optionals nonfreeLicensing [ faac fdk_aac openssl ]
407411 ++ optional ((isLinux || isFreeBSD) && libva != null) libva
408− ++ optionals isLinux [ alsaLib libraw1394 libv4l ];
412+ ++ optionals isLinux [ alsaLib libraw1394 libv4l ]
413+ ++ optionals stdenv.isDarwin [ Cocoa CoreServices ];
409414
410415 # Build qt-faststart executable
411416 buildPhase = optional qtFaststartProgram ''make tools/qt-faststart'';
pkgs/development/libraries/libdc1394/default.nix+5−2
@@ -1,4 +1,6 @@
1−{ stdenv, fetchurl, libraw1394, libusb1 }:
1+{ stdenv, fetchurl, libraw1394, libusb1
2+, CoreServices
3+}:
24
35stdenv.mkDerivation rec {
46 name = "libdc1394-2.2.3";
@@ -9,7 +11,8 @@ stdenv.mkDerivation rec {
911 };
1012
1113 buildInputs = [ libusb1 ]
12− ++ stdenv.lib.optional stdenv.isLinux [ libraw1394 ];
14+ ++ stdenv.lib.optional stdenv.isLinux libraw1394
15+ ++ stdenv.lib.optional stdenv.isDarwin CoreServices;
1316
1417 meta = {
1518 homepage = http://sourceforge.net/projects/libdc1394/;
pkgs/development/libraries/libsndfile/default.nix+5−2
@@ -1,4 +1,6 @@
1−{ stdenv, fetchurl, flac, libogg, libvorbis, pkgconfig }:
1+{ stdenv, fetchurl, flac, libogg, libvorbis, pkgconfig
2+, Carbon
3+}:
24
35stdenv.mkDerivation rec {
46 name = "libsndfile-1.0.25";
@@ -8,7 +10,8 @@ stdenv.mkDerivation rec {
810 sha256 = "10j8mbb65xkyl0kfy0hpzpmrp0jkr12c7mfycqipxgka6ayns0ar";
911 };
1012
11− buildInputs = [ pkgconfig flac libogg libvorbis ];
13+ buildInputs = [ pkgconfig flac libogg libvorbis ]
14+ ++ stdenv.lib.optional stdenv.isDarwin Carbon;
1215
1316 # need headers from the Carbon.framework in /System/Library/Frameworks to
1417 # compile this on darwin -- not sure how to handle
pkgs/development/libraries/wavpack/default.nix+3−1
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl }:
1+{ lib, stdenv, fetchurl, libiconv }:
22
33stdenv.mkDerivation rec {
44 name = "wavpack-${version}";
@@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
66
77 enableParallelBuilding = true;
88
9+ buildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
10+
911 patches = [
1012 # backported from
1113 # https://github.com/dbry/WavPack/commit/12867b33e2de3e95b88d7cb6f449ce0c5c87cdd5
pkgs/top-level/all-packages.nix+10−6
@@ -6260,18 +6260,16 @@ let
62606260 # The following need to be fixed on Darwin
62616261 frei0r = if stdenv.isDarwin then null else frei0r;
62626262 game-music-emu = if stdenv.isDarwin then null else game-music-emu;
6263− gsm = if stdenv.isDarwin then null else gsm;
62646263 libjack2 = if stdenv.isDarwin then null else libjack2;
62656264 libmodplug = if stdenv.isDarwin then null else libmodplug;
6266− libssh = if stdenv.isDarwin then null else libssh;
62676265 libvpx = if stdenv.isDarwin then null else libvpx;
62686266 openal = if stdenv.isDarwin then null else openal;
6269− openjpeg_1 = if stdenv.isDarwin then null else openjpeg_1;
62706267 libpulseaudio = if stdenv.isDarwin then null else libpulseaudio;
62716268 samba = if stdenv.isDarwin then null else samba;
62726269 vid-stab = if stdenv.isDarwin then null else vid-stab;
62736270 x265 = if stdenv.isDarwin then null else x265;
62746271 xavs = if stdenv.isDarwin then null else xavs;
6272+ inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices;
62756273 };
62766274
62776275 ffmpegthumbnailer = callPackage ../development/libraries/ffmpegthumbnailer { };
@@ -6965,7 +6963,9 @@ let
69656963
69666964 libdbusmenu_qt5 = callPackage ../development/libraries/libdbusmenu-qt/qt-5.4.nix { };
69676965
6968− libdc1394 = callPackage ../development/libraries/libdc1394 { };
6966+ libdc1394 = callPackage ../development/libraries/libdc1394 {
6967+ inherit (darwin.apple_sdk.frameworks) CoreServices;
6968+ };
69696969
69706970 libdc1394avt = callPackage ../development/libraries/libdc1394avt { };
69716971
@@ -7437,7 +7437,9 @@ let
74377437 # To bootstrap SBCL, I need CLisp 2.44.1; it needs libsigsegv 2.5
74387438 libsigsegv_25 = callPackage ../development/libraries/libsigsegv/2.5.nix { };
74397439
7440− libsndfile = callPackage ../development/libraries/libsndfile { };
7440+ libsndfile = callPackage ../development/libraries/libsndfile {
7441+ inherit (darwin.apple_sdk.frameworks) Carbon;
7442+ };
74417443
74427444 libsodium = callPackage ../development/libraries/libsodium { };
74437445
@@ -8529,7 +8531,9 @@ let
85298531 libpng = libpng12;
85308532 };
85318533
8532− wavpack = callPackage ../development/libraries/wavpack { };
8534+ wavpack = callPackage ../development/libraries/wavpack {
8535+ inherit (darwin) libiconv;
8536+ };
85338537
85348538 wayland = callPackage ../development/libraries/wayland {
85358539 graphviz = graphviz-nox;