feat: add desktop entry and icons to postInstall
This commit is contained in:
@@ -55,6 +55,15 @@ rustPlatform.buildRustPackage rec {
|
||||
# Use the system openssl (from buildInputs) rather than vendoring it.
|
||||
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 = ''
|
||||
for bin in $out/bin/*; do
|
||||
wrapProgram "$bin" \
|
||||
|
||||
Reference in New Issue
Block a user