summary refs log tree commit diff
path: root/pkgs/development/libraries/vapoursynth/default.nix
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2019-06-25 16:40:27 -0600
committerMatthieu Coudron <coudron@iij.ad.jp>2019-07-04 10:55:02 +0200
commit983e56b74c05692253aac98e4211958c5bd4b294 (patch)
tree2d6751a3c136d8233e2a7f73e3388b9b761480f2 /pkgs/development/libraries/vapoursynth/default.nix
parent2259e1b3f3469ffa22f76216f81d43585b9b4cdc (diff)
downloadnixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.tar
nixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.tar.gz
nixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.tar.bz2
nixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.tar.lz
nixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.tar.xz
nixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.tar.zst
nixpkgs-983e56b74c05692253aac98e4211958c5bd4b294.zip
vapoursynth: wrap vspipe
Diffstat (limited to 'pkgs/development/libraries/vapoursynth/default.nix')
-rw-r--r--pkgs/development/libraries/vapoursynth/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix
index a68e713bb51..65132806d88 100644
--- a/pkgs/development/libraries/vapoursynth/default.nix
+++ b/pkgs/development/libraries/vapoursynth/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
+{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, makeWrapper
 , zimg, libass, python3, libiconv
 , ApplicationServices, nasm
 , ocrSupport ?  false, tesseract ? null
@@ -11,7 +11,7 @@ assert imwriSupport -> imagemagick7 != null;
 with stdenv.lib;
 
 stdenv.mkDerivation rec {
-  name = "vapoursynth-${version}";
+  pname = "vapoursynth";
   version = "R46";
 
   src = fetchFromGitHub {
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
     sha256 = "1xbwva12l68awplardf47ydlx904wifw468npaxa9cx9dvd5mv13";
   };
 
-  nativeBuildInputs = [ pkgconfig autoreconfHook nasm ];
+  nativeBuildInputs = [ pkgconfig autoreconfHook nasm makeWrapper ];
   buildInputs = [
     zimg libass
     (python3.withPackages (ps: with ps; [ sphinx cython ]))
@@ -37,12 +37,17 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
+  postInstall = ''
+    wrapProgram $out/bin/vspipe \
+        --prefix PYTHONPATH : $out/${python3.sitePackages}
+  '';
+
   meta = with stdenv.lib; {
     description = "A video processing framework with the future in mind";
     homepage    = http://www.vapoursynth.com/;
     license     = licenses.lgpl21;
     platforms   = platforms.x86_64;
-    maintainers = with maintainers; [ rnhmjoj ];
+    maintainers = with maintainers; [ rnhmjoj tadeokondrak ];
   };
 
 }