gstreamer.gst-plugins-bad: Patch openjpeg version

This commit is contained in:
adisbladis 2017-11-20 14:48:40 +08:00
parent 905b7a6e73
commit 09683a0a19
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -15,6 +15,12 @@ assert gtkSupport -> gtk3 != null;
let
inherit (stdenv.lib) optional optionalString;
# OpenJPEG version is hardcoded in package source
openJpegVersion = with stdenv;
lib.concatStringsSep "." (lib.lists.take 2
(lib.splitString "." (lib.getVersion openjpeg)));
in
stdenv.mkDerivation rec {
name = "gst-plugins-bad-1.12.2";
@ -32,6 +38,10 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
};
patchPhase = ''
sed -i 's/openjpeg-2.1/openjpeg-${openJpegVersion}/' ext/openjpeg/*
'';
src = fetchurl {
url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz";
sha256 = "0dwyq03g2m0p16dwx8q5qvjn5x9ia72h21sf87mp97gmwkfpwb4w";