Merge pull request #72465 from tadeokondrak/vsedit-qt-mkderivation

vapoursynth-editor: use qt's mkDerivation
This commit is contained in:
worldofpeace 2019-11-01 18:58:48 +00:00 committed by GitHub
commit 328fbf3f47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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