3
0
Fork 0
forked from mirrors/nixpkgs

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