Unverified Commit e230ebe0 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

rusty-psn-gui: add mainProgram, fix wayland (#398255)

parents b73e9758 bcfa37cd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
  openssl,
  xorg,
  libGL,
  libxkbcommon,
  wayland,
  withGui ? false, # build GUI version
}:

@@ -59,6 +61,8 @@ rustPlatform.buildRustPackage rec {
      xorg.libXi
      xorg.libxcb
      libGL
      libxkbcommon
      wayland
    ];

  buildNoDefaultFeatures = true;
@@ -96,6 +100,6 @@ rustPlatform.buildRustPackage rec {
    license = lib.licenses.mit;
    platforms = [ "x86_64-linux" ];
    maintainers = with lib.maintainers; [ AngryAnt ];
    mainProgram = "rusty-psn";
    mainProgram = if withGui then "rusty-psn-gui" else "rusty-psn";
  };
}