···1-{ lib, mkDerivation, fetchurl, pkg-config, qmake, qtscript, qtsvg }:
000000000000023-mkDerivation rec {
4 pname = "vym";
5- version = "2.7.1";
67- src = fetchurl {
8- url = "mirror://sourceforge/project/vym/${version}/${pname}-${version}.tar.bz2";
9- sha256 = "0lyf0m4y5kn5s47z4sg10215f3jsn3k1bl389jfbh2f5v4srav4g";
0010 };
1112- # Hardcoded paths scattered about all have form share/vym
13- # which is encouraging, although we'll need to patch them (below).
14- qmakeFlags = [
15- "DATADIR=${placeholder "out"}/share"
16- "DOCDIR=${placeholder "out"}/share/doc/vym"
017 ];
1819- postPatch = ''
20- for x in \
21- exportoofiledialog.cpp \
22- main.cpp \
23- mainwindow.cpp \
24- tex/*.{tex,lyx}; \
25- do
26- substituteInPlace $x \
27- --replace /usr/share/vym $out/share/vym \
28- --replace /usr/local/share/vym $out/share/vym \
29- --replace /usr/share/doc $out/share/doc/vym
30- done
31- '';
3233- hardeningDisable = [ "format" ];
00003435- nativeBuildInputs = [ pkg-config qmake ];
36- buildInputs = [ qtscript qtsvg ];
37-38- postInstall = ''
39- install -Dm755 -t $out/share/man/man1 doc/*.1.gz
40- '';
4142 meta = with lib; {
043 description = "A mind-mapping software";
44 longDescription = ''
45- VYM (View Your Mind) is a tool to generate and manipulate maps which show your thoughts.
46- Such maps can help you to improve your creativity and effectivity. You can use them
47- for time management, to organize tasks, to get an overview over complex contexts,
48- to sort your ideas etc.
4950- Maps can be drawn by hand on paper or a flip chart and help to structure your thoughs.
51- While a tree like structure like shown on this page can be drawn by hand or any drawing software
52- vym offers much more features to work with such maps.
053 '';
54- homepage = "http://www.insilmaril.de/vym/";
55- license = licenses.gpl2;
56 maintainers = [ maintainers.AndersonTorres ];
57 platforms = platforms.linux;
58 };
59-}
···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, cmake
5+, pkg-config
6+, qmake
7+, qtbase
8+, qtscript
9+, qtsvg
10+, substituteAll
11+, unzip
12+, wrapQtAppsHook
13+, zip
14+}:
1516+stdenv.mkDerivation (finalAttrs: {
17 pname = "vym";
18+ version = "2.8.42";
1920+ src = fetchFromGitHub {
21+ owner = "insilmaril";
22+ repo = "vym";
23+ rev = "89f50bcba953c410caf459b0a4bfbd09018010b7"; # not tagged yet (why??)
24+ hash = "sha256-xMXvc8gt3nfKWbU+WoS24wCUTGDQRhG0Q9m7yDhY5/w=";
25 };
2627+ patches = [
28+ (substituteAll {
29+ src = ./000-fix-zip-paths.diff;
30+ zipPath = "${zip}/bin/zip";
31+ unzipPath = "${unzip}/bin/unzip";
32+ })
33 ];
3435+ nativeBuildInputs = [
36+ cmake
37+ pkg-config
38+ wrapQtAppsHook
39+ ];
000000004041+ buildInputs = [
42+ qtbase
43+ qtscript
44+ qtsvg
45+ ];
4647+ qtWrapperArgs = [
48+ "--prefix PATH : ${lib.makeBinPath [ unzip zip ]}"
49+ ];
0005051 meta = with lib; {
52+ homepage = "http://www.insilmaril.de/vym/";
53 description = "A mind-mapping software";
54 longDescription = ''
55+ VYM (View Your Mind) is a tool to generate and manipulate maps which show
56+ your thoughts. Such maps can help you to improve your creativity and
57+ effectivity. You can use them for time management, to organize tasks, to
58+ get an overview over complex contexts, to sort your ideas etc.
5960+ Maps can be drawn by hand on paper or a flip chart and help to structure
61+ your thoughs. While a tree like structure like shown on this page can be
62+ drawn by hand or any drawing software vym offers much more features to
63+ work with such maps.
64 '';
65+ license = licenses.gpl2Plus;
066 maintainers = [ maintainers.AndersonTorres ];
67 platforms = platforms.linux;
68 };
69+})