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

Merge pull request #212584 from fgaz/vassal/glib-and-mainprogram

vassal: add mainProgram and wrapGAppsHook
parents 7b662656 60a23dd3
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchzip, jre, makeWrapper }:
{ lib
, stdenv
, fetchzip
, glib
, jre
, makeWrapper
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
  pname = "VASSAL";
@@ -9,7 +16,14 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-t05rwP33/V2S5pkWjv87GmPHtYCMrMxT3o3cOrwytK4=";
  };

  nativeBuildInputs = [ makeWrapper ];
  buildInputs = [
    glib
  ];

  nativeBuildInputs = [
    makeWrapper
    wrapGAppsHook
  ];

  installPhase = ''
    runHook preInstall
@@ -37,5 +51,6 @@ stdenv.mkDerivation rec {
      license = licenses.lgpl21Only;
      maintainers = with maintainers; [ tvestelind ];
      platforms = platforms.unix;
      mainProgram = "vassal";
  };
}