feat: add desktop entry and icons to postInstall

This commit is contained in:
Ales Tanglmajer
2026-06-26 21:34:34 +02:00
parent 282fcc4ec0
commit 1a92c6d319
+9
View File
@@ -55,6 +55,15 @@ rustPlatform.buildRustPackage rec {
# Use the system openssl (from buildInputs) rather than vendoring it. # Use the system openssl (from buildInputs) rather than vendoring it.
OPENSSL_NO_VENDOR = 1; OPENSSL_NO_VENDOR = 1;
postInstall = ''
install -Dm644 resources/oryxis.desktop $out/share/applications/oryxis.desktop
install -Dm644 resources/logo.svg $out/share/icons/hicolor/scalable/apps/oryxis.svg
for size in 64 128 256; do
install -Dm644 resources/logo_$size.png \
$out/share/icons/hicolor/''${size}x''${size}/apps/oryxis.png
done
'';
postFixup = '' postFixup = ''
for bin in $out/bin/*; do for bin in $out/bin/*; do
wrapProgram "$bin" \ wrapProgram "$bin" \