uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
61
pkgs/applications/video/droidcam/default.nix
Normal file
61
pkgs/applications/video/droidcam/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, ffmpeg, libjpeg_turbo, gtk3, alsa-lib, speex, libusbmuxd, libappindicator-gtk3
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "droidcam";
|
||||
version = "1.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aramg";
|
||||
repo = "droidcam";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-AxJBpoiBnb+5Pq/h4giOYAeLlvOtAJT5sCwzPEKo7w4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ffmpeg
|
||||
libjpeg_turbo
|
||||
gtk3
|
||||
alsa-lib
|
||||
speex
|
||||
libusbmuxd
|
||||
libappindicator-gtk3
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/droidcam.c \
|
||||
--replace "/opt/droidcam-icon.png" "$out/share/icons/hicolor/96x96/apps/droidcam.png"
|
||||
substituteInPlace droidcam.desktop \
|
||||
--replace "/opt/droidcam-icon.png" "droidcam" \
|
||||
--replace "/usr/local/bin/droidcam" "droidcam"
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
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/96x96/apps/droidcam.png
|
||||
install -D droidcam.desktop $out/share/applications/droidcam.desktop
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux client for DroidCam app";
|
||||
homepage = "https://github.com/aramg/droidcam";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [ maintainers.suhr ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue