git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #18790 from michalrus/xmind

xmind: init at 7.5-update1

commitcdec20ac58325af1f606a59413d5a31fc839c8d4 authorJoachim F <joachifm@users.noreply.github.com> dateFri 23 Sep 2016, 03:47 (10 years ago) parent8c1f9270e56744
2 files changed+65
pkgs/applications/misc/xmind/default.nix+63 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/xmind/default.nixnew file+63
@@ -0,0 +1,63 @@
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+}
pkgs/top-level/all-packages.nix+2
@@ -15571,6 +15571,8 @@ in
1557115571
1557215572 xineUI = callPackage ../applications/video/xine-ui { };
1557315573
15574+ xmind = callPackage ../applications/misc/xmind { };
15575+
1557415576 xneur_0_13 = callPackage ../applications/misc/xneur { };
1557515577
1557615578 xneur_0_8 = callPackage ../applications/misc/xneur/0.8.nix { };