From 1a92c6d319172e2caa2a747bc677e5c420e9ee80 Mon Sep 17 00:00:00 2001 From: Ales Tanglmajer Date: Fri, 26 Jun 2026 17:43:52 +0200 Subject: [PATCH] feat: add desktop entry and icons to postInstall --- package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package.nix b/package.nix index c8d9cc9..2db5b14 100644 --- a/package.nix +++ b/package.nix @@ -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" \