mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
droidcam: install desktop file
This commit is contained in:
parent
6471f13dea
commit
c6f4d0b90b
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user