2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchurl, pkg-config, qmake, qtscript, qtsvg }:
|
2014-08-20 23:08:07 +02:00
|
|
|
|
2019-12-12 23:08:11 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "vym";
|
2019-12-25 00:14:31 +01:00
|
|
|
version = "2.7.1";
|
2014-08-20 23:08:07 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-12 23:08:11 +01:00
|
|
|
url = "mirror://sourceforge/project/vym/${version}/${pname}-${version}.tar.bz2";
|
2019-12-25 00:14:31 +01:00
|
|
|
sha256 = "0lyf0m4y5kn5s47z4sg10215f3jsn3k1bl389jfbh2f5v4srav4g";
|
2014-08-20 23:08:07 +02:00
|
|
|
};
|
|
|
|
|
2019-12-12 23:08:11 +01:00
|
|
|
# Hardcoded paths scattered about all have form share/vym
|
|
|
|
# which is encouraging, although we'll need to patch them (below).
|
|
|
|
qmakeFlags = [
|
|
|
|
"DATADIR=${placeholder "out"}/share"
|
|
|
|
"DOCDIR=${placeholder "out"}/share/doc/vym"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for x in \
|
|
|
|
exportoofiledialog.cpp \
|
|
|
|
main.cpp \
|
|
|
|
mainwindow.cpp \
|
|
|
|
tex/*.{tex,lyx}; \
|
|
|
|
do
|
|
|
|
substituteInPlace $x \
|
|
|
|
--replace /usr/share/vym $out/share/vym \
|
|
|
|
--replace /usr/local/share/vym $out/share/vym \
|
|
|
|
--replace /usr/share/doc $out/share/doc/vym
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-24 17:06:55 +01:00
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config qmake ];
|
2019-12-12 23:08:11 +01:00
|
|
|
buildInputs = [ qtscript qtsvg ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm755 -t $out/share/man/man1 doc/*.1.gz
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontGzipMan = true;
|
2014-08-20 23:08:07 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-08-20 23:08:07 +02:00
|
|
|
description = "A mind-mapping software";
|
|
|
|
longDescription = ''
|
|
|
|
VYM (View Your Mind) is a tool to generate and manipulate maps which show your thoughts.
|
|
|
|
Such maps can help you to improve your creativity and effectivity. You can use them
|
|
|
|
for time management, to organize tasks, to get an overview over complex contexts,
|
|
|
|
to sort your ideas etc.
|
2016-02-24 17:06:55 +01:00
|
|
|
|
2014-08-20 23:08:07 +02:00
|
|
|
Maps can be drawn by hand on paper or a flip chart and help to structure your thoughs.
|
|
|
|
While a tree like structure like shown on this page can be drawn by hand or any drawing software
|
|
|
|
vym offers much more features to work with such maps.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.insilmaril.de/vym/";
|
2014-09-10 20:59:54 +02:00
|
|
|
license = licenses.gpl2;
|
2014-09-26 23:44:29 +02:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2014-09-10 20:59:54 +02:00
|
|
|
platforms = platforms.linux;
|
2014-08-20 23:08:07 +02:00
|
|
|
};
|
|
|
|
}
|