Skip to content

Commit

Permalink
vapoursynth-editor: use qt's mkDerivation
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeokondrak committed Nov 1, 2019
1 parent 4a2475c commit d183f71
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/development/libraries/vapoursynth/editor.nix
@@ -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";

Expand All @@ -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
Expand Down

0 comments on commit d183f71

Please sign in to comment.