vym: nixfmt-rfc-style and hammer

- use lib.getExe
- put patches on a dedicated directory

+32 -18
pkgs/applications/misc/vym/000-fix-zip-paths.diff pkgs/applications/misc/vym/patches/0000-fix-zip-paths.diff
+32 -18
pkgs/applications/misc/vym/default.nix
··· 1 - { lib 2 - , stdenv 3 - , cmake 4 - , fetchFromGitHub 5 - , pkg-config 6 - , substituteAll 7 - , unzip 8 - , zip 9 - , qt5 10 }: 11 12 let 13 - inherit (qt5) qtbase qtscript qtsvg wrapQtAppsHook; 14 in 15 stdenv.mkDerivation (finalAttrs: { 16 pname = "vym"; ··· 23 hash = "sha256-5cHhv9GDjJvSqGJ+7fI0xaWCiXw/0WP0Bem/ZRV8Y7M="; 24 }; 25 26 - outputs = [ "out" "man" ]; 27 28 patches = [ 29 (substituteAll { 30 - src = ./000-fix-zip-paths.diff; 31 - zipPath = "${zip}/bin/zip"; 32 - unzipPath = "${unzip}/bin/unzip"; 33 }) 34 ]; 35 ··· 45 qtsvg 46 ]; 47 48 - strictDeps = true; 49 - 50 qtWrapperArgs = [ 51 - "--prefix PATH : ${lib.makeBinPath [ unzip zip ]}" 52 ]; 53 54 meta = { 55 homepage = "http://www.insilmaril.de/vym/"; 56 description = "Mind-mapping software"; 57 - mainProgram = "vym"; 58 longDescription = '' 59 VYM (View Your Mind) is a tool to generate and manipulate maps which show 60 your thoughts. Such maps can help you to improve your creativity and ··· 67 work with such maps. 68 ''; 69 license = with lib.licenses; [ gpl2Plus ]; 70 maintainers = with lib.maintainers; [ AndersonTorres ]; 71 platforms = lib.platforms.linux; 72 };
··· 1 + { 2 + lib, 3 + cmake, 4 + fetchFromGitHub, 5 + pkg-config, 6 + qt5, 7 + stdenv, 8 + substituteAll, 9 + unzip, 10 + zip, 11 }: 12 13 let 14 + inherit (qt5) 15 + qtbase 16 + qtscript 17 + qtsvg 18 + wrapQtAppsHook 19 + ; 20 in 21 stdenv.mkDerivation (finalAttrs: { 22 pname = "vym"; ··· 29 hash = "sha256-5cHhv9GDjJvSqGJ+7fI0xaWCiXw/0WP0Bem/ZRV8Y7M="; 30 }; 31 32 + outputs = [ 33 + "out" 34 + "man" 35 + ]; 36 37 patches = [ 38 (substituteAll { 39 + src = ./patches/0000-fix-zip-paths.diff; 40 + zipPath = "${lib.getExe zip}"; 41 + unzipPath = "${lib.getExe unzip}"; 42 }) 43 ]; 44 ··· 54 qtsvg 55 ]; 56 57 qtWrapperArgs = [ 58 + "--prefix PATH : ${ 59 + lib.makeBinPath [ 60 + unzip 61 + zip 62 + ] 63 + }" 64 ]; 65 66 + strictDeps = true; 67 + 68 meta = { 69 homepage = "http://www.insilmaril.de/vym/"; 70 description = "Mind-mapping software"; 71 longDescription = '' 72 VYM (View Your Mind) is a tool to generate and manipulate maps which show 73 your thoughts. Such maps can help you to improve your creativity and ··· 80 work with such maps. 81 ''; 82 license = with lib.licenses; [ gpl2Plus ]; 83 + mainProgram = "vym"; 84 maintainers = with lib.maintainers; [ AndersonTorres ]; 85 platforms = lib.platforms.linux; 86 };