vapoursynth-editor: use qt's mkDerivation

This commit is contained in:
Tadeo Kondrak 2019-11-01 12:20:22 -06:00
parent 4a2475c924
commit d183f7142b
No known key found for this signature in database
GPG Key ID: D41E092CA43F1D8B

View File

@ -1,9 +1,9 @@
{ stdenv, fetchFromBitbucket, makeWrapper
{ stdenv, mkDerivation, fetchFromBitbucket
, python3, vapoursynth
, qmake, qtbase, qtwebsockets
}:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "vapoursynth-editor";
version = "R19";
@ -14,18 +14,20 @@ stdenv.mkDerivation rec {
sha256 = "1zlaynkkvizf128ln50yvzz3b764f5a0yryp6993s9fkwa7djb6n";
};
nativeBuildInputs = [ qmake makeWrapper ];
nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase vapoursynth qtwebsockets ];
dontWrapQtApps = true;
preConfigure = "cd pro";
installPhase = ''
preFixup = ''
cd ../build/release*
mkdir -p $out/bin
for bin in vsedit{,-job-server{,-watcher}}; do
mv $bin $out/bin
wrapProgram $out/bin/$bin \
wrapQtApp $out/bin/$bin \
--prefix PYTHONPATH : ${vapoursynth}/${python3.sitePackages} \
--prefix LD_LIBRARY_PATH : ${vapoursynth}/lib
done