13 stdenv.mkDerivation rec {
14 pname = "droidcam-obs";
17 src = fetchFromGitHub {
19 repo = "droidcam-obs-plugin";
21 sha256 = "sha256-YtfWwgBhyQYx6QfrKld7p6qUf8BEV/kkQX4QcdHuaYU=";
25 substituteInPlace ./linux/linux.mk \
26 --replace "-limobiledevice" "-limobiledevice-1.0" \
27 --replace "-I/usr/include/obs" "-I${obs-studio}/include/obs" \
28 --replace "-I/usr/include/ffmpeg" "-I${ffmpeg}/include"
46 "JPEG_DIR=${lib.getDev libjpeg}"
47 "JPEG_LIB=${lib.getLib libjpeg}/lib"
48 "IMOBILEDEV_DIR=${libimobiledevice}"
54 mkdir -p $out/share/obs/obs-plugins/droidcam-obs
55 mkdir -p $out/lib/obs-plugins
56 cp build/droidcam-obs.so $out/lib/obs-plugins
57 cp -R ./data/locale $out/share/obs/obs-plugins/droidcam-obs/locale
65 description = "DroidCam OBS";
66 homepage = "https://github.com/dev47apps/droidcam-obs-plugin";
67 license = licenses.gpl2Plus;
68 maintainers = with maintainers; [ ulrikstrid ];
69 platforms = platforms.linux;