diff options
author | Florian Klink <flokli@flokli.de> | 2018-08-13 14:12:29 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-13 14:12:29 +0200 |
commit | cf5826f1a3179eac79acf3734b9404d8e7a42a5c (patch) | |
tree | f3d937dc53ad31bf97c8d4630ecf3b812a582d0b /pkgs/applications/office | |
parent | 9968d0f053cd5aa8b0aea30a16988d239bf37ee3 (diff) |
jameica: add darwin support (#44953)
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r-- | pkgs/applications/office/jameica/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/office/jameica/default.nix b/pkgs/applications/office/jameica/default.nix index 5b65c11cb9f71..7b804151d4a73 100644 --- a/pkgs/applications/office/jameica/default.nix +++ b/pkgs/applications/office/jameica/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, makeDesktopItem, makeWrapper, ant, jdk, jre, xmlstarlet, gtk2, glib, xorg }: +{ stdenv, fetchFromGitHub, makeDesktopItem, makeWrapper, ant, jdk, jre, xmlstarlet, gtk2, glib, xorg, Cocoa }: let _version = "2.8.1"; @@ -8,11 +8,12 @@ let swtSystem = if stdenv.system == "i686-linux" then "linux" else if stdenv.system == "x86_64-linux" then "linux64" + else if stdenv.system == "x86_64-darwin" then "macos64" else throw "Unsupported system: ${stdenv.system}"; launcher = '' #!${stdenv.shell} - exec ${jre}/bin/java -Xmx512m de.willuhn.jameica.Main "$@" + exec ${jre}/bin/java -Xmx512m ${ stdenv.lib.optionalString stdenv.isDarwin ''-Xdock:name="Jameica" -XstartOnFirstThread''} de.willuhn.jameica.Main "$@" ''; desktopItem = makeDesktopItem { @@ -28,7 +29,8 @@ stdenv.mkDerivation rec { inherit name version; nativeBuildInputs = [ ant jdk makeWrapper xmlstarlet ]; - buildInputs = [ gtk2 glib xorg.libXtst ]; + buildInputs = stdenv.lib.optionals stdenv.isLinux [ gtk2 glib xorg.libXtst ] + ++ stdenv.lib.optional stdenv.isDarwin Cocoa; src = fetchFromGitHub { owner = "willuhn"; @@ -82,7 +84,7 @@ stdenv.mkDerivation rec { SynTAX (accounting) and JVerein (club management). ''; license = licenses.gpl2Plus; - platforms = [ "x86_64-linux" "i686-linux" ]; + platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]; maintainers = with maintainers; [ flokli ]; }; } |