commit
842500c35b
2 changed files with 60 additions and 0 deletions
58
pkgs/applications/video/droidcam/default.nix
Normal file
58
pkgs/applications/video/droidcam/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
{ stdenv, fetchFromGitHub
|
||||||
|
, ffmpeg, libjpeg_turbo, gtk3, alsaLib, speex, libusbmuxd, libappindicator-gtk3
|
||||||
|
, pkg-config
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "droidcam";
|
||||||
|
version = "1.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "aramg";
|
||||||
|
repo = "droidcam";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-3RmEmLNUbwIh+yr7vtYZnMwbzfmtW3mz5u4Ohau9OLU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
ffmpeg
|
||||||
|
libjpeg_turbo
|
||||||
|
gtk3
|
||||||
|
alsaLib
|
||||||
|
speex
|
||||||
|
libusbmuxd
|
||||||
|
libappindicator-gtk3
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace linux/src/droidcam.c \
|
||||||
|
--replace "/opt/droidcam-icon.png" "$out/share/icons/hicolor/droidcam.png"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
cd linux
|
||||||
|
makeFlagsArray+=("JPEG=$(pkg-config --libs --cflags libturbojpeg)")
|
||||||
|
makeFlagsArray+=("USBMUXD=$(pkg-config --libs --cflags libusbmuxd-2.0)")
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dt $out/bin droidcam droidcam-cli
|
||||||
|
install -D icon2.png $out/share/icons/hicolor/droidcam.png
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Linux client for DroidCam app";
|
||||||
|
homepage = "https://github.com/aramg/droidcam";
|
||||||
|
license = licenses.gpl2Only;
|
||||||
|
maintainers = [ maintainers.suhr ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1175,6 +1175,8 @@ in
|
||||||
|
|
||||||
doona = callPackage ../tools/security/doona { };
|
doona = callPackage ../tools/security/doona { };
|
||||||
|
|
||||||
|
droidcam = callPackage ../applications/video/droidcam { };
|
||||||
|
|
||||||
ecdsautils = callPackage ../tools/security/ecdsautils { };
|
ecdsautils = callPackage ../tools/security/ecdsautils { };
|
||||||
|
|
||||||
sedutil = callPackage ../tools/security/sedutil { };
|
sedutil = callPackage ../tools/security/sedutil { };
|
||||||
|
|
Loading…
Reference in a new issue