diff options
author | Andrew Childs <lorne@cons.org.nz> | 2018-07-15 14:41:45 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2018-07-15 14:53:03 +0900 |
commit | 342f72e747369c19f041e4169d93b3283dbe15a9 (patch) | |
tree | e5ae6c337761d8a296a9a2288706efe94d1b691a /pkgs | |
parent | ad1912700993e759630c2289c5cf863c44448876 (diff) | |
download | nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.tar nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.tar.gz nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.tar.bz2 nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.tar.lz nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.tar.xz nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.tar.zst nixlib-342f72e747369c19f041e4169d93b3283dbe15a9.zip |
ffmpeg: fix includedir in pkg-config files
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/ffmpeg/generic.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 762f306d69f9..bc70c5ab2371 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -170,9 +170,15 @@ stdenv.mkDerivation rec { doCheck = false; # fails + # ffmpeg 3+ generates pkg-config (.pc) files that don't have the + # form automatically handled by the multiple-outputs hooks. postFixup = '' moveToOutput bin "$bin" moveToOutput share/ffmpeg/examples "$doc" + for pc in ''${!outputDev}/lib/pkgconfig/*.pc; do + substituteInPlace $pc \ + --replace "includedir=$out" "includedir=''${!outputInclude}" + done ''; installFlags = [ "install-man" ]; |