diff options
author | lassulus <lassulus@lassul.us> | 2020-11-17 20:01:18 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-11-17 20:01:18 +0100 |
commit | 2041c1fb9e1265fa02e443b704bfb55527108954 (patch) | |
tree | 9e34c403594eb4d37bfea8c6813129e0d931aec5 /makefu/5pkgs/droidcam | |
parent | 2fce838d369dfe4dfffc19830272daaba95e2dea (diff) | |
parent | f911324c592ebd7809472a4100a8f6a6c83b0fe2 (diff) |
Merge remote-tracking branch 'gum/20.09' into 20.09
Diffstat (limited to 'makefu/5pkgs/droidcam')
-rw-r--r-- | makefu/5pkgs/droidcam/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/makefu/5pkgs/droidcam/default.nix b/makefu/5pkgs/droidcam/default.nix new file mode 100644 index 000000000..d30fb01a6 --- /dev/null +++ b/makefu/5pkgs/droidcam/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchFromGitHub +, pkg-config +, alsaLib +, libjpeg_turbo +, ffmpeg +, libusbmuxd +, speex +, gtk3 +, libappindicator-gtk3 +}: + +stdenv.mkDerivation rec { + pname = "droidcam"; + version = "1.6"; + + src = fetchFromGitHub { + owner = "aramg"; + repo = "droidcam"; + rev = "v${version}"; + sha256 = "1d9qpnmqa3pfwsrpjnxdz76ipk4w37bbxyrazchh4vslnfc886fx"; + }; + + sourceRoot = "source/linux"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + alsaLib + libjpeg_turbo + ffmpeg + libusbmuxd + speex + gtk3 + libappindicator-gtk3 + ]; + + buildPhase = '' + runHook preBuild + make JPEG_DIR="" JPEG_INCLUDE="" JPEG_LIB="" JPEG="$(pkg-config --libs --cflags libturbojpeg)" + ''; + installPhase = '' + runHook preInstall + install -Dm755 "droidcam" "$out/bin/droidcam" + install -Dm755 "droidcam-cli" "$out/bin/droidcam-cli" + install -Dm644 icon2.png "$out/share/pixmaps/droidcam.png" + install -Dm644 README.md "$out/share/licenses/droidcam/LICENSE" + ''; + + meta = with stdenv.lib; { + description = "A kernel module to create V4L2 loopback devices"; + homepage = "https://github.com/aramg/droidcam"; + license = licenses.gpl2; + maintainers = [ maintainers.makefu ]; + platforms = platforms.linux; + }; +} |