vym: 2.7.1 -> 2.8.42

+75 -42
+21
pkgs/applications/misc/vym/000-fix-zip-paths.diff
···
··· 1 + diff -Naur source-old/src/main.cpp source-new/src/main.cpp 2 + --- source-old/src/main.cpp 1969-12-31 21:00:01.000000000 -0300 3 + +++ source-new/src/main.cpp 2022-10-23 22:30:00.463905363 -0300 4 + @@ -286,13 +286,10 @@ 5 + // Platform specific settings 6 + vymPlatform = QSysInfo::prettyProductName(); 7 + 8 + -#if defined(Q_OS_WINDOWS) 9 + - // Only Windows 10 has tar. Older windows versions not supported. 10 + - zipToolPath = "tar"; 11 + -#else 12 + - zipToolPath = "/usr/bin/zip"; 13 + - unzipToolPath = "/usr/bin/unzip"; 14 + -#endif 15 + + // Nixpkgs-specific hack 16 + + zipToolPath = "@zipPath@"; 17 + + unzipToolPath = "@unzipPath@"; 18 + + 19 + iconPath = vymBaseDir.path() + "/icons/"; 20 + flagsPath = vymBaseDir.path() + "/flags/"; 21 +
+51 -41
pkgs/applications/misc/vym/default.nix
··· 1 - { lib, mkDerivation, fetchurl, pkg-config, qmake, qtscript, qtsvg }: 2 3 - mkDerivation rec { 4 pname = "vym"; 5 - version = "2.7.1"; 6 7 - src = fetchurl { 8 - url = "mirror://sourceforge/project/vym/${version}/${pname}-${version}.tar.bz2"; 9 - sha256 = "0lyf0m4y5kn5s47z4sg10215f3jsn3k1bl389jfbh2f5v4srav4g"; 10 }; 11 12 - # 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" 17 ]; 18 19 - 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 - ''; 32 33 - hardeningDisable = [ "format" ]; 34 35 - nativeBuildInputs = [ pkg-config qmake ]; 36 - buildInputs = [ qtscript qtsvg ]; 37 - 38 - postInstall = '' 39 - install -Dm755 -t $out/share/man/man1 doc/*.1.gz 40 - ''; 41 42 meta = with lib; { 43 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. 49 50 - 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. 53 ''; 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 + }: 15 16 + stdenv.mkDerivation (finalAttrs: { 17 pname = "vym"; 18 + version = "2.8.42"; 19 20 + src = fetchFromGitHub { 21 + owner = "insilmaril"; 22 + repo = "vym"; 23 + rev = "89f50bcba953c410caf459b0a4bfbd09018010b7"; # not tagged yet (why??) 24 + hash = "sha256-xMXvc8gt3nfKWbU+WoS24wCUTGDQRhG0Q9m7yDhY5/w="; 25 }; 26 27 + patches = [ 28 + (substituteAll { 29 + src = ./000-fix-zip-paths.diff; 30 + zipPath = "${zip}/bin/zip"; 31 + unzipPath = "${unzip}/bin/unzip"; 32 + }) 33 ]; 34 35 + nativeBuildInputs = [ 36 + cmake 37 + pkg-config 38 + wrapQtAppsHook 39 + ]; 40 41 + buildInputs = [ 42 + qtbase 43 + qtscript 44 + qtsvg 45 + ]; 46 47 + qtWrapperArgs = [ 48 + "--prefix PATH : ${lib.makeBinPath [ unzip zip ]}" 49 + ]; 50 51 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. 59 60 + 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; 66 maintainers = [ maintainers.AndersonTorres ]; 67 platforms = platforms.linux; 68 }; 69 + })
+3 -1
pkgs/top-level/all-packages.nix
··· 32070 32071 yeahwm = callPackage ../applications/window-managers/yeahwm { }; 32072 32073 - vym = qt5.callPackage ../applications/misc/vym { }; 32074 32075 wad = callPackage ../tools/security/wad { }; 32076
··· 32070 32071 yeahwm = callPackage ../applications/window-managers/yeahwm { }; 32072 32073 + vym = callPackage ../applications/misc/vym { 32074 + inherit (libsForQt5) qmake qtscript qtsvg qtbase wrapQtAppsHook; 32075 + }; 32076 32077 wad = callPackage ../tools/security/wad { }; 32078