summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramesgen <amesgen@amesgen.de>2024-01-08 19:27:30 +0100
committeramesgen <amesgen@amesgen.de>2024-01-08 20:15:12 +0100
commitc4e177b8a19ffddd4d1c02401f59b22ae12fa402 (patch)
tree672100e62267e1dd04fd5ae3d0f0224cdf9a8b1a
parentMerge pull request #277747 from NickCao/octodns (diff)
downloadnixpkgs-c4e177b8a19ffddd4d1c02401f59b22ae12fa402.tar.gz
bazecor: install `.desktop` entry and icon
-rw-r--r--pkgs/applications/misc/bazecor/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/misc/bazecor/default.nix b/pkgs/applications/misc/bazecor/default.nix
index 894f2af320dd..739ee8d6208b 100644
--- a/pkgs/applications/misc/bazecor/default.nix
+++ b/pkgs/applications/misc/bazecor/default.nix
@@ -39,6 +39,12 @@ appimageTools.wrapAppImage rec {
extraInstallCommands = ''
mv $out/bin/bazecor-* $out/bin/bazecor
+ install -m 444 -D ${src}/Bazecor.desktop -t $out/share/applications
+ substituteInPlace $out/share/applications/Bazecor.desktop \
+ --replace 'Exec=Bazecor' 'Exec=bazecor'
+
+ install -m 444 -D ${src}/bazecor.png -t $out/share/pixmaps
+
mkdir -p $out/lib/udev/rules.d
ln -s --target-directory=$out/lib/udev/rules.d ${./10-dygma.rules}
'';