Loading pkgs/by-name/go/gossip/package.nix +67 −48 Original line number Diff line number Diff line { cmake , darwin , fetchFromGitHub , ffmpeg , fontconfig , git , lib , libGL , libxkbcommon , makeDesktopItem , openssl , pkg-config , rustPlatform , stdenv , wayland , wayland-scanner , xorg { cmake, darwin, fetchFromGitHub, ffmpeg, fontconfig, git, lib, libGL, libxkbcommon, makeDesktopItem, openssl, pkg-config, rustPlatform, stdenv, wayland, wayland-scanner, xorg, }: rustPlatform.buildRustPackage rec { Loading Loading @@ -48,31 +49,39 @@ rustPlatform.buildRustPackage rec { RUSTFLAGS = "--cfg tokio_unstable"; # Some users might want to add "rustls-tls(-native)" for Rust TLS instead of OpenSSL. buildFeatures = [ "video-ffmpeg" "lang-cjk" ]; buildFeatures = [ "video-ffmpeg" "lang-cjk" ]; nativeBuildInputs = [ nativeBuildInputs = [ cmake git pkg-config rustPlatform.bindgenHook ] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [ wayland-scanner ]; buildInputs = [ buildInputs = [ ffmpeg fontconfig libGL libxkbcommon openssl ] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.CoreGraphics darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.ForceFeedback darwin.apple_sdk.frameworks.AVFoundation ] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [ wayland xorg.libX11 xorg.libXcursor Loading @@ -92,7 +101,13 @@ rustPlatform.buildRustPackage rec { postFixup = lib.optionalString (!stdenv.isDarwin) '' patchelf $out/bin/gossip \ --add-rpath ${lib.makeLibraryPath [ libGL libxkbcommon wayland ]} --add-rpath ${ lib.makeLibraryPath [ libGL libxkbcommon wayland ] } ''; desktopItems = [ Loading @@ -102,7 +117,11 @@ rustPlatform.buildRustPackage rec { icon = "gossip"; comment = meta.description; desktopName = "Gossip"; categories = [ "Chat" "Network" "InstantMessaging" ]; categories = [ "Chat" "Network" "InstantMessaging" ]; startupWMClass = "gossip"; }) ]; Loading Loading
pkgs/by-name/go/gossip/package.nix +67 −48 Original line number Diff line number Diff line { cmake , darwin , fetchFromGitHub , ffmpeg , fontconfig , git , lib , libGL , libxkbcommon , makeDesktopItem , openssl , pkg-config , rustPlatform , stdenv , wayland , wayland-scanner , xorg { cmake, darwin, fetchFromGitHub, ffmpeg, fontconfig, git, lib, libGL, libxkbcommon, makeDesktopItem, openssl, pkg-config, rustPlatform, stdenv, wayland, wayland-scanner, xorg, }: rustPlatform.buildRustPackage rec { Loading Loading @@ -48,31 +49,39 @@ rustPlatform.buildRustPackage rec { RUSTFLAGS = "--cfg tokio_unstable"; # Some users might want to add "rustls-tls(-native)" for Rust TLS instead of OpenSSL. buildFeatures = [ "video-ffmpeg" "lang-cjk" ]; buildFeatures = [ "video-ffmpeg" "lang-cjk" ]; nativeBuildInputs = [ nativeBuildInputs = [ cmake git pkg-config rustPlatform.bindgenHook ] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [ wayland-scanner ]; buildInputs = [ buildInputs = [ ffmpeg fontconfig libGL libxkbcommon openssl ] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.CoreGraphics darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.ForceFeedback darwin.apple_sdk.frameworks.AVFoundation ] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [ wayland xorg.libX11 xorg.libXcursor Loading @@ -92,7 +101,13 @@ rustPlatform.buildRustPackage rec { postFixup = lib.optionalString (!stdenv.isDarwin) '' patchelf $out/bin/gossip \ --add-rpath ${lib.makeLibraryPath [ libGL libxkbcommon wayland ]} --add-rpath ${ lib.makeLibraryPath [ libGL libxkbcommon wayland ] } ''; desktopItems = [ Loading @@ -102,7 +117,11 @@ rustPlatform.buildRustPackage rec { icon = "gossip"; comment = meta.description; desktopName = "Gossip"; categories = [ "Chat" "Network" "InstantMessaging" ]; categories = [ "Chat" "Network" "InstantMessaging" ]; startupWMClass = "gossip"; }) ]; Loading