Merge pull request #31851 from adisbladis/gst-plugins-bad-openjpeg-ver
gstreamer.gst-plugins-bad: Patch openjpeg version
This commit is contained in:
commit
7484d9c865
1 changed files with 10 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue