tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xmind: init at 7.5-update1
Michal Rus
9 years ago
0e567441
2b0eace6
+65
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
xmind
default.nix
top-level
all-packages.nix
+63
pkgs/applications/misc/xmind/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, lib, dpkg, fetchurl, gtk2, jre, libXtst, makeWrapper }:
2
+
3
+
stdenv.mkDerivation rec {
4
+
name = "xmind-${version}";
5
+
version = "7.5-update1";
6
+
7
+
src = if stdenv.system == "i686-linux" then fetchurl {
8
+
url = "http://dl2.xmind.net/xmind-downloads/${name}-linux_i386.deb";
9
+
sha256 = "04kr6pw0kwy715bp9wcnqnw1k5wl65xa87lhljrskm291p402jy1";
10
+
} else if stdenv.system == "x86_64-linux" then fetchurl {
11
+
url = "http://dl2.xmind.net/xmind-downloads/${name}-linux_amd64.deb";
12
+
sha256 = "1j2ynhk7p3m3vd6c4mjwpnlzqgfj5c4q3zydab3nfwncwx6gaqj9";
13
+
} else throw "platform ${stdenv.system} not supported!";
14
+
15
+
nativeBuildInputs = [ dpkg makeWrapper ];
16
+
17
+
unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root";
18
+
19
+
dontBuild = true;
20
+
dontPatchELF = true;
21
+
dontStrip = true;
22
+
23
+
libPath = lib.makeLibraryPath [ gtk2 libXtst ];
24
+
25
+
installPhase = ''
26
+
mkdir -p $out
27
+
cp -r usr/lib/xmind $out/libexec
28
+
cp -r usr/bin usr/share $out
29
+
rm $out/libexec/XMind.ini
30
+
mv etc/XMind.ini $out/libexec
31
+
32
+
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
33
+
$out/libexec/XMind
34
+
35
+
wrapProgram $out/libexec/XMind \
36
+
--prefix LD_LIBRARY_PATH : "${libPath}"
37
+
38
+
substituteInPlace "$out/bin/XMind" \
39
+
--replace '/usr/lib/xmind' "$out/libexec"
40
+
41
+
ln -s ${jre} $out/libexec/jre
42
+
'';
43
+
44
+
meta = with stdenv.lib; {
45
+
description = "Mind-mapping software";
46
+
longDescription = ''
47
+
XMind is a mind mapping and brainstorming software. In addition
48
+
to the management elements, the software can capture ideas,
49
+
clarify thinking, manage complex information, and promote team
50
+
collaboration for higher productivity.
51
+
52
+
It supports mind maps, fishbone diagrams, tree diagrams,
53
+
organization charts, spreadsheets, etc. Normally, it is used for
54
+
knowledge management, meeting minutes, task management, and
55
+
GTD. Meanwhile, XMind can read FreeMind and MindManager files,
56
+
and save to Evernote.
57
+
'';
58
+
homepage = http://www.xmind.net/;
59
+
license = licenses.unfree;
60
+
platforms = platforms.linux;
61
+
maintainers = with maintainers; [ michalrus ];
62
+
};
63
+
}
+2
pkgs/top-level/all-packages.nix
···
15480
15481
xineUI = callPackage ../applications/video/xine-ui { };
15482
0
0
15483
xneur_0_13 = callPackage ../applications/misc/xneur { };
15484
15485
xneur_0_8 = callPackage ../applications/misc/xneur/0.8.nix { };
···
15480
15481
xineUI = callPackage ../applications/video/xine-ui { };
15482
15483
+
xmind = callPackage ../applications/misc/xmind { };
15484
+
15485
xneur_0_13 = callPackage ../applications/misc/xneur { };
15486
15487
xneur_0_8 = callPackage ../applications/misc/xneur/0.8.nix { };