2019-12-12 22:08:11 +00:00
|
|
|
{ stdenv, mkDerivation, fetchurl, pkgconfig, qmake, qtscript, qtsvg }:
|
2014-08-20 22:08:07 +01:00
|
|
|
|
2019-12-12 22:08:11 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vym";
|
2019-12-12 22:08:11 +00:00
|
|
|
version = "2.7.0";
|
2014-08-20 22:08:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-12 22:08:11 +00:00
|
|
|
url = "mirror://sourceforge/project/vym/${version}/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1rnrfqlff7wv6yni8bvff8n90pmn82k82zd4sn1jsx9r1n3qsfkh";
|
2014-08-20 22:08:07 +01:00
|
|
|
};
|
|
|
|
|
2019-12-12 22:08:11 +00: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 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-24 16:06:55 +00:00
|
|
|
|
2018-06-19 09:09:20 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig qmake ];
|
2019-12-12 22:08:11 +00:00
|
|
|
buildInputs = [ qtscript qtsvg ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm755 -t $out/share/man/man1 doc/*.1.gz
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontGzipMan = true;
|
2014-08-20 22:08:07 +01:00
|
|
|
|
2014-09-10 19:59:54 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-20 22:08:07 +01: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 16:06:55 +00:00
|
|
|
|
2014-08-20 22:08:07 +01: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.
|
|
|
|
'';
|
|
|
|
homepage = http://www.insilmaril.de/vym/;
|
2014-09-10 19:59:54 +01:00
|
|
|
license = licenses.gpl2;
|
2014-09-26 22:44:29 +01:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2014-09-10 19:59:54 +01:00
|
|
|
platforms = platforms.linux;
|
2014-08-20 22:08:07 +01:00
|
|
|
};
|
|
|
|
}
|