1 { lib, stdenv, fetchgit, ant, jdk, makeWrapper, jre, coreutils, which }:
3 stdenv.mkDerivation rec {
4 pname = "projectlibre";
8 url = "https://git.code.sf.net/p/projectlibre/code";
9 rev = "0c939507cc63e9eaeb855437189cdec79e9386c2"; # version 1.7.0 was not tagged
10 sha256 = "0vy5vgbp45ai957gaby2dj1hvmbxfdlfnwcanwqm9f8q16qipdbq";
13 nativeBuildInputs = [ makeWrapper ];
14 buildInputs = [ ant jdk ];
16 export ANT_OPTS=-Dbuild.sysclasspath=ignore
17 ${ant}/bin/ant -f openproj_build/build.xml
20 resourcesPath = "openproj_build/resources";
21 desktopItem = "${resourcesPath}/projectlibre.desktop";
24 mkdir -p $out/share/{applications,projectlibre/samples,pixmaps,doc/projectlibre} $out/bin
26 substitute $resourcesPath/projectlibre $out/bin/projectlibre \
27 --replace "\"/usr/share/projectlibre\"" "\"$out/share/projectlibre\""
28 chmod +x $out/bin/projectlibre
29 wrapProgram $out/bin/projectlibre \
30 --prefix PATH : "${jre}/bin:${coreutils}/bin:${which}/bin"
32 cp -R openproj_build/dist/* $out/share/projectlibre
33 cp -R openproj_build/license $out/share/doc/projectlibre
34 cp $desktopItem $out/share/applications
35 cp $resourcesPath/projectlibre.png $out/share/pixmaps
36 cp -R $resourcesPath/samples/* $out/share/projectlibre/samples
40 homepage = "https://www.projectlibre.com/";
41 description = "Project-Management Software similar to MS-Project";
42 maintainers = [ maintainers.Mogria ];
43 license = licenses.cpal10;