Unverified Commit 969eb3b1 authored by nicoo's avatar nicoo Committed by GitHub
Browse files

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
parent b521caa0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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