Unverified Commit 249c54b8 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #230854 from AngryAnt/rusty-psn-gui-fix

rusty-psn-gui: fix build, cleanup
parents d6f2a1de 69fce48b
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -5,6 +5,11 @@
, makeDesktopItem
, copyDesktopItems
, pkg-config
, cmake
, fontconfig
, glib
, gtk3
, freetype
, openssl
, xorg
, libGL
@@ -26,10 +31,18 @@ rustPlatform.buildRustPackage rec {

  nativeBuildInputs = [
    pkg-config
  ] ++ lib.optionals withGui [
    copyDesktopItems
    cmake
  ];

  buildInputs = if withGui then [
  buildInputs = [
    openssl
  ] ++ lib.optionals withGui [
    fontconfig
    glib
    gtk3
    freetype
    openssl
    xorg.libxcb
    xorg.libX11
@@ -39,8 +52,6 @@ rustPlatform.buildRustPackage rec {
    xorg.libxcb
    libGL
    libGL.dev
  ] else [
    openssl
  ];

  buildNoDefaultFeatures = true;