tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ganttproject-bin: init at 2.7.2-r1954
Tobias Geerinckx-Rice
9 years ago
bcde5c33
5dd3dbde
+58
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
ganttproject-bin
default.nix
top-level
all-packages.nix
+56
pkgs/applications/misc/ganttproject-bin/default.nix
···
1
1
+
{ stdenv, fetchzip, makeDesktopItem, makeWrapper
2
2
+
, jre }:
3
3
+
4
4
+
stdenv.mkDerivation rec {
5
5
+
name = "ganttproject-bin-${version}";
6
6
+
version = "2.7.2";
7
7
+
8
8
+
src = let build = "r1954"; in fetchzip {
9
9
+
sha256 = "0l655w6n88j7klz56af8xkpiv1pwlkfl5x1d33sqv9dnyisyw2hc";
10
10
+
url = "https://dl.ganttproject.biz/ganttproject-${version}/"
11
11
+
+ "ganttproject-${version}-${build}.zip";
12
12
+
};
13
13
+
14
14
+
nativeBuildInputs = [ makeWrapper ];
15
15
+
buildInputs = [ jre ];
16
16
+
17
17
+
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
18
18
+
19
19
+
installPhase = let
20
20
+
21
21
+
desktopItem = makeDesktopItem {
22
22
+
name = "ganttproject";
23
23
+
exec = "ganttproject";
24
24
+
icon = "ganttproject";
25
25
+
desktopName = "GanttProject";
26
26
+
genericName = "Shedule and manage projects";
27
27
+
comment = meta.description;
28
28
+
categories = "Office;Application;";
29
29
+
};
30
30
+
31
31
+
in ''
32
32
+
mkdir -pv "$out/share/ganttproject"
33
33
+
cp -rv * "$out/share/ganttproject"
34
34
+
35
35
+
mkdir -pv "$out/bin"
36
36
+
wrapProgram "$out/share/ganttproject/ganttproject" \
37
37
+
--set JAVA_HOME "${jre}"
38
38
+
mv -v "$out/share/ganttproject/ganttproject" "$out/bin"
39
39
+
40
40
+
install -v -Dm644 \
41
41
+
plugins/net.sourceforge.ganttproject/data/resources/icons/ganttproject.png \
42
42
+
"$out/share/pixmaps/ganttproject.png"
43
43
+
cp -rv "${desktopItem}/share/applications" "$out/share"
44
44
+
'';
45
45
+
46
46
+
meta = with stdenv.lib; {
47
47
+
description = "Project scheduling and management";
48
48
+
homepage = https://www.ganttproject.biz/;
49
49
+
downloadPage = https://www.ganttproject.biz/download;
50
50
+
# GanttProject itself is GPL3+. All bundled libraries are declared
51
51
+
# ‘GPL3-compatible’. See ${downloadPage} for detailed information.
52
52
+
license = licenses.gpl3Plus;
53
53
+
platforms = platforms.linux;
54
54
+
maintainers = with maintainers; [ nckx ];
55
55
+
};
56
56
+
}
+2
pkgs/top-level/all-packages.nix
···
12625
12625
12626
12626
fvwm = callPackage ../applications/window-managers/fvwm { };
12627
12627
12628
12628
+
ganttproject-bin = callPackage ../applications/misc/ganttproject-bin { };
12629
12629
+
12628
12630
geany = callPackage ../applications/editors/geany { };
12629
12631
geany-with-vte = callPackage ../applications/editors/geany/with-vte.nix { };
12630
12632