aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libav
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 01:40:38 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 01:40:38 -0400
commitfeb648ce59ffbed94c58133eb7aa2761992a35e1 (patch)
tree59d45f1cce7aa4809d9601124bcc9006a80204b7 /pkgs/development/libraries/libav
parenta02be2bd85b37ed8b257e969d9439357844baa24 (diff)
parent70963b382f3f820ba6d3bc3b3aaf50a2957ec1ff (diff)
Merge commit '70963b382f3f820ba6d3bc3b3aaf50a2957ec1ff' into lib-platform-simplify
Diffstat (limited to 'pkgs/development/libraries/libav')
-rw-r--r--pkgs/development/libraries/libav/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libav/default.nix b/pkgs/development/libraries/libav/default.nix
index 1b52d18fd6b1..85fe902dae06 100644
--- a/pkgs/development/libraries/libav/default.nix
+++ b/pkgs/development/libraries/libav/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, yasm, bzip2, zlib, perl
+{ stdenv, fetchurl, pkgconfig, yasm, bzip2, zlib, perl, bash
, mp3Support ? true, lame ? null
, speexSupport ? true, speex ? null
, theoraSupport ? true, libtheora ? null
@@ -45,7 +45,11 @@ let
++ optional (vpxSupport && hasPrefix "0.8." version) ./vpxenc-0.8.17-libvpx-1.5.patch
;
- preConfigure = "patchShebangs doc/texi2pod.pl";
+ postPatch = ''
+ patchShebangs .
+ # another shebang was hidden in a here document text
+ substituteInPlace ./configure --replace "#! /bin/sh" "#!${bash}/bin/sh"
+ '';
configureFlags =
assert stdenv.lib.all (x: x!=null) buildInputs;
@@ -71,8 +75,8 @@ let
++ optional freetypeSupport "--enable-libfreetype"
;
- nativeBuildInputs = [ pkgconfig ];
- buildInputs = [ lame yasm zlib bzip2 SDL ]
+ nativeBuildInputs = [ pkgconfig perl ];
+ buildInputs = [ lame yasm zlib bzip2 SDL bash ]
++ [ perl ] # for install-man target
++ optional mp3Support lame
++ optional speexSupport speex
@@ -95,6 +99,7 @@ let
# alltools to build smaller tools, incl. aviocat, ismindex, qt-faststart, etc.
buildFlags = "all alltools install-man";
+
postInstall = ''
moveToOutput bin "$bin"
# alltools target compiles an executable in tools/ for every C