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.
|
# 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" \
|
||||||
|
|||||||
Reference in New Issue
Block a user