leo-editor: cleanup

+13 -8
+13 -8
pkgs/by-name/le/leo-editor/package.nix
··· 8 libsForQt5, 9 }: 10 11 - stdenv.mkDerivation rec { 12 pname = "leo-editor"; 13 version = "6.8.6.1"; 14 15 src = fetchFromGitHub { 16 owner = "leo-editor"; 17 repo = "leo-editor"; 18 - rev = version; 19 - sha256 = "sha256-3ojiIjsGJpPgVSUi0QhIddqwsDxfRWxhxAQ5YmzwZiQ="; 20 }; 21 22 dontBuild = true; ··· 26 makeWrapper 27 python3 28 ]; 29 propagatedBuildInputs = with python3.pkgs; [ 30 pyqt6 31 docutils ··· 36 exec = "leo %U"; 37 icon = "leoapp32"; 38 type = "Application"; 39 - comment = meta.description; 40 desktopName = "Leo"; 41 genericName = "Text Editor"; 42 categories = [ ··· 82 }; 83 84 installPhase = '' 85 mkdir -p "$out/share/icons/hicolor/32x32/apps" 86 cp leo/Icons/leoapp32.png "$out/share/icons/hicolor/32x32/apps" 87 ··· 96 --add-flags "-O $out/share/leo-editor/launchLeo.py" 97 98 wrapQtApp $out/bin/leo 99 ''; 100 101 - meta = with lib; { 102 homepage = "https://leo-editor.github.io/leo-editor/"; 103 description = "Powerful folding editor"; 104 longDescription = "Leo is a PIM, IDE and outliner that accelerates the work flow of programmers, authors and web designers."; 105 - license = licenses.mit; 106 - maintainers = with maintainers; [ 107 leonardoce 108 kashw2 109 ]; 110 mainProgram = "leo"; 111 }; 112 - }
··· 8 libsForQt5, 9 }: 10 11 + stdenv.mkDerivation (finalAttrs: { 12 pname = "leo-editor"; 13 version = "6.8.6.1"; 14 15 src = fetchFromGitHub { 16 owner = "leo-editor"; 17 repo = "leo-editor"; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-3ojiIjsGJpPgVSUi0QhIddqwsDxfRWxhxAQ5YmzwZiQ="; 20 }; 21 22 dontBuild = true; ··· 26 makeWrapper 27 python3 28 ]; 29 + 30 propagatedBuildInputs = with python3.pkgs; [ 31 pyqt6 32 docutils ··· 37 exec = "leo %U"; 38 icon = "leoapp32"; 39 type = "Application"; 40 + comment = finalAttrs.meta.description; 41 desktopName = "Leo"; 42 genericName = "Text Editor"; 43 categories = [ ··· 83 }; 84 85 installPhase = '' 86 + runHook preInstall 87 + 88 mkdir -p "$out/share/icons/hicolor/32x32/apps" 89 cp leo/Icons/leoapp32.png "$out/share/icons/hicolor/32x32/apps" 90 ··· 99 --add-flags "-O $out/share/leo-editor/launchLeo.py" 100 101 wrapQtApp $out/bin/leo 102 + 103 + runHook postInstall 104 ''; 105 106 + meta = { 107 homepage = "https://leo-editor.github.io/leo-editor/"; 108 description = "Powerful folding editor"; 109 longDescription = "Leo is a PIM, IDE and outliner that accelerates the work flow of programmers, authors and web designers."; 110 + license = lib.licenses.mit; 111 + maintainers = with lib.maintainers; [ 112 leonardoce 113 kashw2 114 ]; 115 mainProgram = "leo"; 116 }; 117 + })