summary refs log tree commit diff
path: root/pkgs/applications/misc/projectlibre
diff options
context:
space:
mode:
authorMoritz Küttel <moritz.kuettel@wsl.ch>2018-03-07 21:16:40 +0100
committerobadz <obadz-git@obadz.com>2018-03-18 19:29:09 +0000
commit18ea001472267404cb3be716be40973207f4a76d (patch)
tree8cdaceb6cbfa1769d35d0bc768e0cc7c7c5ddff2 /pkgs/applications/misc/projectlibre
parent3aa3738bb2582f9142675c952f7e6e3621081c1e (diff)
downloadnixpkgs-18ea001472267404cb3be716be40973207f4a76d.tar
nixpkgs-18ea001472267404cb3be716be40973207f4a76d.tar.gz
nixpkgs-18ea001472267404cb3be716be40973207f4a76d.tar.bz2
nixpkgs-18ea001472267404cb3be716be40973207f4a76d.tar.lz
nixpkgs-18ea001472267404cb3be716be40973207f4a76d.tar.xz
nixpkgs-18ea001472267404cb3be716be40973207f4a76d.tar.zst
nixpkgs-18ea001472267404cb3be716be40973207f4a76d.zip
projectlibre: init at 1.7.0
Closes #24466
Diffstat (limited to 'pkgs/applications/misc/projectlibre')
-rw-r--r--pkgs/applications/misc/projectlibre/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/misc/projectlibre/default.nix b/pkgs/applications/misc/projectlibre/default.nix
new file mode 100644
index 00000000000..579e3dd776b
--- /dev/null
+++ b/pkgs/applications/misc/projectlibre/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchgit, ant, jdk, makeWrapper, jre, coreutils, which }:
+
+stdenv.mkDerivation rec {
+  name = "projectlibre-${version}";
+  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";
+  };
+
+  buildInputs = [ ant jdk makeWrapper ];
+  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
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "http://www.projectlibre.com/";
+    descripton = "Project-Management Software similar to MS-Project";
+    maintainer = maintainers.mogria;
+    license = licenses.cpal10;
+  };
+}