vapoursynth-editor: fix darwin build
This commit is contained in:
parent
c50074fffd
commit
31cb06a26a
@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
mkDerivation,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
@ -23,6 +24,11 @@ let
|
||||
hash = "sha256-+/9j9DJDGXbuTvE8ZXIu6wjcof39SyatS36Q6y9hLPg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pro/vsedit/vsedit.pro \
|
||||
--replace-fail "TARGET = vsedit-32bit" "TARGET = vsedit"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ qmake ];
|
||||
buildInputs = [
|
||||
qtbase
|
||||
@ -34,14 +40,25 @@ let
|
||||
|
||||
preConfigure = "cd pro";
|
||||
|
||||
preFixup = ''
|
||||
cd ../build/release*
|
||||
mkdir -p $out/bin
|
||||
for bin in vsedit{,-job-server{,-watcher}}; do
|
||||
mv $bin $out/bin
|
||||
wrapQtApp $out/bin/$bin
|
||||
done
|
||||
'';
|
||||
preFixup =
|
||||
''
|
||||
cd ../build/release*
|
||||
mkdir -p $out/bin
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir -p $out/Applications
|
||||
for bin in vsedit{,-job-server{,-watcher}}; do
|
||||
mv $bin.app $out/Applications
|
||||
makeQtWrapper $out/Applications/$bin.app/Contents/MacOS/$bin $out/bin/$bin
|
||||
wrapQtApp $out/Applications/$bin.app/Contents/MacOS/$bin
|
||||
done
|
||||
''
|
||||
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||
for bin in vsedit{,-job-server{,-watcher}}; do
|
||||
mv $bin $out/bin
|
||||
wrapQtApp $out/bin/$bin
|
||||
done
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit withPlugins;
|
||||
|
Loading…
Reference in New Issue
Block a user