2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchgit, ant, jdk, makeWrapper, jre, coreutils, which }:
|
2018-03-07 20:16:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "projectlibre";
|
2018-03-07 20:16:40 +00:00
|
|
|
version = "1.7.0";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.code.sf.net/p/projectlibre/code";
|
|
|
|
rev = "0c939507cc63e9eaeb855437189cdec79e9386c2"; # version 1.7.0 was not tagged
|
|
|
|
sha256 = "0vy5vgbp45ai957gaby2dj1hvmbxfdlfnwcanwqm9f8q16qipdbq";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ ant jdk ];
|
2018-03-07 20:16:40 +00:00
|
|
|
buildPhase = ''
|
|
|
|
export ANT_OPTS=-Dbuild.sysclasspath=ignore
|
|
|
|
${ant}/bin/ant -f openproj_build/build.xml
|
|
|
|
'';
|
|
|
|
|
|
|
|
resourcesPath = "openproj_build/resources";
|
|
|
|
desktopItem = "${resourcesPath}/projectlibre.desktop";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/{applications,projectlibre/samples,pixmaps,doc/projectlibre} $out/bin
|
|
|
|
|
|
|
|
substitute $resourcesPath/projectlibre $out/bin/projectlibre \
|
|
|
|
--replace "\"/usr/share/projectlibre\"" "\"$out/share/projectlibre\""
|
|
|
|
chmod +x $out/bin/projectlibre
|
|
|
|
wrapProgram $out/bin/projectlibre \
|
|
|
|
--prefix PATH : "${jre}/bin:${coreutils}/bin:${which}/bin"
|
|
|
|
|
|
|
|
cp -R openproj_build/dist/* $out/share/projectlibre
|
|
|
|
cp -R openproj_build/license $out/share/doc/projectlibre
|
|
|
|
cp $desktopItem $out/share/applications
|
|
|
|
cp $resourcesPath/projectlibre.png $out/share/pixmaps
|
|
|
|
cp -R $resourcesPath/samples/* $out/share/projectlibre/samples
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-23 13:05:17 +00:00
|
|
|
homepage = "https://www.projectlibre.com/";
|
2018-03-18 20:58:13 +00:00
|
|
|
description = "Project-Management Software similar to MS-Project";
|
|
|
|
maintainers = [ maintainers.Mogria ];
|
2018-03-07 20:16:40 +00:00
|
|
|
license = licenses.cpal10;
|
|
|
|
};
|
|
|
|
}
|