3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #31851 from adisbladis/gst-plugins-bad-openjpeg-ver

gstreamer.gst-plugins-bad: Patch openjpeg version
This commit is contained in:
Franz Pletz 2017-11-20 08:08:00 +01:00 committed by GitHub
commit 7484d9c865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";