tiscamera: 0.11.1 -> 0.13.1

J. Neto f75b9fe4 9622485d

+22 -9
+22 -9
pkgs/os-specific/linux/tiscamera/default.nix
··· 14 , libunwind 15 , elfutils 16 , orc 17 - , python3 18 , libuuid 19 }: 20 21 stdenv.mkDerivation rec { 22 pname = "tiscamera"; 23 - version = "0.11.1"; 24 25 src = fetchFromGitHub { 26 owner = "TheImagingSource"; 27 repo = pname; 28 rev = "v-${pname}-${version}"; 29 - sha256 = "07vp6khgl6qd3a4519dmx1s5bfw7pld793p50pjn29fqh91fm93g"; 30 }; 31 32 nativeBuildInputs = [ 33 cmake 34 pkg-config 35 ]; 36 37 buildInputs = [ ··· 47 libunwind 48 elfutils 49 orc 50 - python3 51 libuuid 52 ]; 53 54 cmakeFlags = [ 55 "-DBUILD_ARAVIS=OFF" # For GigE support. Won't need it as our camera is usb. ··· 57 "-DBUILD_TOOLS=ON" 58 "-DBUILD_V4L2=ON" 59 "-DBUILD_LIBUSB=ON" 60 "-DTCAM_INSTALL_UDEV=${placeholder "out"}/lib/udev/rules.d" 61 "-DTCAM_INSTALL_UVCDYNCTRL=${placeholder "out"}/share/uvcdynctrl/data/199e" 62 "-DTCAM_INSTALL_GST_1_0=${placeholder "out"}/lib/gstreamer-1.0" 63 "-DTCAM_INSTALL_GIR=${placeholder "out"}/share/gir-1.0" 64 "-DTCAM_INSTALL_TYPELIB=${placeholder "out"}/lib/girepository-1.0" 65 "-DTCAM_INSTALL_SYSTEMD=${placeholder "out"}/etc/systemd/system" 66 # There are gobject introspection commands launched as part of the build. Those have a runtime 67 # dependency on `libtcam` (which itself is built as part of this build). In order to allow 68 # that, we set the dynamic linker's path to point on the build time location of the library. 69 "-DCMAKE_SKIP_BUILD_RPATH=OFF" 70 ]; 71 72 - postPatch = '' 73 - substituteInPlace ./src/BackendLoader.cpp \ 74 - --replace '"libtcam-v4l2.so"' "\"$out/lib/tcam-0/libtcam-v4l2.so\"" \ 75 - --replace '"libtcam-aravis.so"' "\"$out/lib/tcam-0/libtcam-aravis.so\"" \ 76 - --replace '"libtcam-libusb.so"' "\"$out/lib/tcam-0/libtcam-libusb.so\"" 77 ''; 78 79 meta = with lib; {
··· 14 , libunwind 15 , elfutils 16 , orc 17 + , python3Packages 18 , libuuid 19 + , wrapGAppsHook 20 }: 21 22 stdenv.mkDerivation rec { 23 pname = "tiscamera"; 24 + version = "0.13.1"; 25 26 src = fetchFromGitHub { 27 owner = "TheImagingSource"; 28 repo = pname; 29 rev = "v-${pname}-${version}"; 30 + sha256 = "0hpy9yhc4mn6w8gvzwif703smmcys0j2jqbz2xfghqxcyb0ykplj"; 31 }; 32 33 nativeBuildInputs = [ 34 cmake 35 pkg-config 36 + python3Packages.wrapPython 37 + wrapGAppsHook 38 ]; 39 40 buildInputs = [ ··· 50 libunwind 51 elfutils 52 orc 53 libuuid 54 + python3Packages.python 55 + python3Packages.pyqt5 56 ]; 57 + 58 + pythonPath = with python3Packages; [ pyqt5 pygobject3 ]; 59 + 60 + propagatedBuildInputs = pythonPath; 61 62 cmakeFlags = [ 63 "-DBUILD_ARAVIS=OFF" # For GigE support. Won't need it as our camera is usb. ··· 65 "-DBUILD_TOOLS=ON" 66 "-DBUILD_V4L2=ON" 67 "-DBUILD_LIBUSB=ON" 68 + "-DBUILD_TESTS=ON" 69 "-DTCAM_INSTALL_UDEV=${placeholder "out"}/lib/udev/rules.d" 70 "-DTCAM_INSTALL_UVCDYNCTRL=${placeholder "out"}/share/uvcdynctrl/data/199e" 71 "-DTCAM_INSTALL_GST_1_0=${placeholder "out"}/lib/gstreamer-1.0" 72 "-DTCAM_INSTALL_GIR=${placeholder "out"}/share/gir-1.0" 73 "-DTCAM_INSTALL_TYPELIB=${placeholder "out"}/lib/girepository-1.0" 74 "-DTCAM_INSTALL_SYSTEMD=${placeholder "out"}/etc/systemd/system" 75 + "-DTCAM_INSTALL_PYTHON3_MODULES=${placeholder "out"}/lib/${python3Packages.python.libPrefix}/site-packages" 76 + "-DGSTREAMER_1.0_INCLUDEDIR=${placeholder "out"}/include/gstreamer-1.0" 77 # There are gobject introspection commands launched as part of the build. Those have a runtime 78 # dependency on `libtcam` (which itself is built as part of this build). In order to allow 79 # that, we set the dynamic linker's path to point on the build time location of the library. 80 "-DCMAKE_SKIP_BUILD_RPATH=OFF" 81 ]; 82 83 + doCheck = true; 84 + 85 + # gstreamer tests requires, besides gst-plugins-bad, plugins installed by this expression. 86 + checkPhase = "ctest --force-new-ctest-process -E gstreamer"; 87 + 88 + postFixup = '' 89 + wrapPythonPrograms "$out $pythonPath" 90 ''; 91 92 meta = with lib; {