1 { lib, stdenv, fetchzip, makeDesktopItem, makeWrapper
5 stdenv.mkDerivation rec {
6 pname = "ganttproject-bin";
9 src = let build = "r2364"; in fetchzip {
10 sha256 = "0cclgyqv4f9pjsdlh93cqvgbzrp8ajvrpc2xszs03sknqz2kdh7r";
11 url = "https://dl.ganttproject.biz/ganttproject-${version}/"
12 + "ganttproject-${version}-${build}.zip";
15 nativeBuildInputs = [ makeWrapper ];
16 buildInputs = [ jre ];
20 desktopItem = makeDesktopItem {
21 name = "ganttproject";
22 exec = "ganttproject";
23 icon = "ganttproject";
24 desktopName = "GanttProject";
25 genericName = "Shedule and manage projects";
26 comment = meta.description;
27 categories = [ "Office" ];
31 "-Dawt.useSystemAAFontSettings=on"
35 mkdir -pv "$out/share/ganttproject"
36 cp -rv * "$out/share/ganttproject"
39 wrapProgram "$out/share/ganttproject/ganttproject" \
40 --set JAVA_HOME "${jre}" \
41 --set _JAVA_OPTIONS "${builtins.toString javaOptions}"
43 mv -v "$out/share/ganttproject/ganttproject" "$out/bin"
45 cp -rv "${desktopItem}/share/applications" "$out/share"
49 description = "Project scheduling and management";
50 homepage = "https://www.ganttproject.biz/";
51 downloadPage = "https://www.ganttproject.biz/download";
52 # GanttProject itself is GPL3+. All bundled libraries are declared
53 # ‘GPL3-compatible’. See ${downloadPage} for detailed information.
54 license = licenses.gpl3Plus;
55 platforms = platforms.linux;
56 maintainers = [ maintainers.vidbina ];