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