parent
ae15177ade
commit
b43c368bda
1 changed files with 8 additions and 2 deletions
|
@ -4,9 +4,10 @@
|
||||||
, withGUI ? true
|
, withGUI ? true
|
||||||
, qtbase ? null
|
, qtbase ? null
|
||||||
, qtmultimedia ? null
|
, qtmultimedia ? null
|
||||||
|
, wrapQtAppsHook ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert withGUI -> qtbase != null && qtmultimedia != null;
|
assert withGUI -> qtbase != null && qtmultimedia != null && wrapQtAppsHook != null;
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
expat file xdg_utils boost libebml zlib fmt
|
expat file xdg_utils boost libebml zlib fmt
|
||||||
libmatroska libogg libvorbis flac cmark
|
libmatroska libogg libvorbis flac cmark
|
||||||
] ++ optional stdenv.isDarwin libiconv
|
] ++ optional stdenv.isDarwin libiconv
|
||||||
++ optionals withGUI [ qtbase qtmultimedia ];
|
++ optionals withGUI [ qtbase qtmultimedia wrapQtAppsHook ];
|
||||||
|
|
||||||
preConfigure = "./autogen.sh; patchShebangs .";
|
preConfigure = "./autogen.sh; patchShebangs .";
|
||||||
buildPhase = "drake -j $NIX_BUILD_CORES";
|
buildPhase = "drake -j $NIX_BUILD_CORES";
|
||||||
|
@ -49,6 +50,11 @@ stdenv.mkDerivation rec {
|
||||||
(enableFeature withGUI "qt")
|
(enableFeature withGUI "qt")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
postFixup = optionalString withGUI ''
|
||||||
|
wrapQtApp $out/bin/mkvtoolnix-gui
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cross-platform tools for Matroska";
|
description = "Cross-platform tools for Matroska";
|
||||||
homepage = http://www.bunkus.org/videotools/mkvtoolnix/;
|
homepage = http://www.bunkus.org/videotools/mkvtoolnix/;
|
||||||
|
|
Loading…
Reference in a new issue