mkvtoolnix: patch to build on Darwin & FreeBSD (#311133)

Patch was applied upstream, but no new release was cut yet.
Addresses https://hydra.nixos.org/build/258096907
This commit is contained in:
nicoo 2024-05-13 10:05:17 +00:00 committed by GitHub
parent b521caa006
commit 969eb3b16a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@
, cmark
, docbook_xsl
, expat
, fetchpatch2
, file
, flac
, fmt
@ -94,6 +95,11 @@ stdenv.mkDerivation rec {
++ optionals stdenv.isLinux [ qtwayland ]
++ optionals stdenv.isDarwin [ libiconv ];
patches = [ (fetchpatch2 {
url = "https://gitlab.com/mbunkus/mkvtoolnix/-/commit/7e1bea9527616ab6ab38425e7290579f05dd9bb1.patch";
hash = "sha256-9UZrfwrzfKwF8XDzqYnuaDgZws7l1YAb5O1O1+nxo0g=";
}) ];
# autoupdate is not needed but it silences a ton of pointless warnings
postPatch = ''
patchShebangs . > /dev/null