droidcam: install desktop file

This commit is contained in:
Babbaj 2022-02-18 12:03:11 -05:00
parent 6471f13dea
commit c6f4d0b90b
No known key found for this signature in database
GPG Key ID: F044309848A07CAC

View File

@ -30,7 +30,10 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace src/droidcam.c \
--replace "/opt/droidcam-icon.png" "$out/share/icons/hicolor/droidcam.png"
--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 = ''
@ -42,7 +45,8 @@ stdenv.mkDerivation rec {
runHook preInstall
install -Dt $out/bin droidcam droidcam-cli
install -D icon2.png $out/share/icons/hicolor/droidcam.png
install -D icon2.png $out/share/icons/hicolor/96x96/apps/droidcam.png
install -D droidcam.desktop $out/share/applications/droidcam.desktop
runHook postInstall
'';