Loading pkgs/by-name/ha/halloy/package.nix +54 −38 Original line number Diff line number Diff line { lib , stdenv , darwin , fetchFromGitHub , copyDesktopItems , makeDesktopItem , libxkbcommon , openssl , pkg-config , rustPlatform , vulkan-loader , wayland , xorg { lib, stdenv, darwin, fetchFromGitHub, copyDesktopItems, makeDesktopItem, libxkbcommon, openssl, pkg-config, rustPlatform, vulkan-loader, wayland, xorg, }: rustPlatform.buildRustPackage rec { Loading Loading @@ -38,7 +39,8 @@ rustPlatform.buildRustPackage rec { pkg-config ]; buildInputs = [ buildInputs = [ libxkbcommon openssl vulkan-loader Loading @@ -46,7 +48,8 @@ rustPlatform.buildRustPackage rec { xorg.libXcursor xorg.libXi xorg.libXrandr ] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.CoreFoundation darwin.apple_sdk.frameworks.CoreGraphics Loading @@ -55,9 +58,8 @@ rustPlatform.buildRustPackage rec { darwin.apple_sdk.frameworks.Metal darwin.apple_sdk.frameworks.QuartzCore darwin.apple_sdk.frameworks.Security ] ++ lib.optionals stdenv.isLinux [ wayland ]; ] ++ lib.optionals stdenv.isLinux [ wayland ]; desktopItems = [ (makeDesktopItem { Loading @@ -67,21 +69,35 @@ rustPlatform.buildRustPackage rec { icon = "org.squidowl.halloy"; exec = pname; terminal = false; mimeTypes = [ "x-scheme-handler/irc" "x-scheme-handler/ircs" ]; categories = [ "Network" "IRCClient" ]; keywords = [ "IM" "Chat" ]; mimeTypes = [ "x-scheme-handler/irc" "x-scheme-handler/ircs" ]; categories = [ "Network" "IRCClient" ]; keywords = [ "IM" "Chat" ]; startupWMClass = "org.squidowl.halloy"; }) ]; postFixup = lib.optional stdenv.isLinux ( let rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ]; rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ]; in '' rpath=$(patchelf --print-rpath $out/bin/halloy) patchelf --set-rpath "$rpath:${rpathWayland}" $out/bin/halloy ''); '' ); postInstall = '' install -Dm644 assets/linux/icons/hicolor/128x128/apps/org.squidowl.halloy.png \ Loading Loading
pkgs/by-name/ha/halloy/package.nix +54 −38 Original line number Diff line number Diff line { lib , stdenv , darwin , fetchFromGitHub , copyDesktopItems , makeDesktopItem , libxkbcommon , openssl , pkg-config , rustPlatform , vulkan-loader , wayland , xorg { lib, stdenv, darwin, fetchFromGitHub, copyDesktopItems, makeDesktopItem, libxkbcommon, openssl, pkg-config, rustPlatform, vulkan-loader, wayland, xorg, }: rustPlatform.buildRustPackage rec { Loading Loading @@ -38,7 +39,8 @@ rustPlatform.buildRustPackage rec { pkg-config ]; buildInputs = [ buildInputs = [ libxkbcommon openssl vulkan-loader Loading @@ -46,7 +48,8 @@ rustPlatform.buildRustPackage rec { xorg.libXcursor xorg.libXi xorg.libXrandr ] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.CoreFoundation darwin.apple_sdk.frameworks.CoreGraphics Loading @@ -55,9 +58,8 @@ rustPlatform.buildRustPackage rec { darwin.apple_sdk.frameworks.Metal darwin.apple_sdk.frameworks.QuartzCore darwin.apple_sdk.frameworks.Security ] ++ lib.optionals stdenv.isLinux [ wayland ]; ] ++ lib.optionals stdenv.isLinux [ wayland ]; desktopItems = [ (makeDesktopItem { Loading @@ -67,21 +69,35 @@ rustPlatform.buildRustPackage rec { icon = "org.squidowl.halloy"; exec = pname; terminal = false; mimeTypes = [ "x-scheme-handler/irc" "x-scheme-handler/ircs" ]; categories = [ "Network" "IRCClient" ]; keywords = [ "IM" "Chat" ]; mimeTypes = [ "x-scheme-handler/irc" "x-scheme-handler/ircs" ]; categories = [ "Network" "IRCClient" ]; keywords = [ "IM" "Chat" ]; startupWMClass = "org.squidowl.halloy"; }) ]; postFixup = lib.optional stdenv.isLinux ( let rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ]; rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ]; in '' rpath=$(patchelf --print-rpath $out/bin/halloy) patchelf --set-rpath "$rpath:${rpathWayland}" $out/bin/halloy ''); '' ); postInstall = '' install -Dm644 assets/linux/icons/hicolor/128x128/apps/org.squidowl.halloy.png \ Loading