cudatext 0 -> 1 attrpath: cudatext Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/kcn8vn2k3r0kscppk1hg9k5dl7z0f6hd-packages.json.drv building '/nix/store/kcn8vn2k3r0kscppk1hg9k5dl7z0f6hd-packages.json.drv'... Going to be running update for following packages: - cudatext-1.176.0 Press Enter key to continue... Running update for: - cudatext-1.176.0: UPDATING ... - cudatext-1.176.0: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/applications/editors/cudatext/default.nix b/pkgs/applications/editors/cudatext/default.nix index 7af47c46485..d34c0adf68b 100644 --- a/pkgs/applications/editors/cudatext/default.nix +++ b/pkgs/applications/editors/cudatext/default.nix @@ -38,13 +38,13 @@ let in stdenv.mkDerivation rec { pname = "cudatext"; - version = "1.176.0"; + version = "1.183.0"; src = fetchFromGitHub { owner = "Alexey-T"; repo = "CudaText"; rev = version; - hash = "sha256-7J/FAcmZYmgbmYEFm2V3+RBUcLE+8A+yOiJd/xp2Aww="; + hash = "sha256-hfOEL1Qkf8Sk6cNWUBwZXH/DSuo/ObyA5sRLOj9Iw3M="; }; postPatch = '' diff --git a/pkgs/applications/editors/cudatext/deps.json b/pkgs/applications/editors/cudatext/deps.json index 4ae432b946a..2c6dcdf2913 100644 --- a/pkgs/applications/editors/cudatext/deps.json +++ b/pkgs/applications/editors/cudatext/deps.json @@ -1,8 +1,8 @@ { "EncConv": { "owner": "Alexey-T", - "rev": "2022.06.19", - "hash": "sha256-M00rHH3dG6Vx6MEALxRNlnLLfX/rRI+rdTS7riOhgeg=" + "rev": "2023.01.02", + "hash": "sha256-4/ih4sBDel2wm+YFpNcwHoOrK8AgHe3Jbqxl+CYrQFM=" }, "ATBinHex-Lazarus": { "owner": "Alexey-T", @@ -11,13 +11,13 @@ }, "ATFlatControls": { "owner": "Alexey-T", - "rev": "2022.11.09", - "hash": "sha256-2Q1azfhThrk1t65Q+2aRr00V0UFrvR+z5oVMeW9c2ug=" + "rev": "2023.02.05", + "hash": "sha256-ZOnIhUnFd+7mBEz6YIhUOQkhBbCNeTFD0tfUILuC1x4=" }, "ATSynEdit": { "owner": "Alexey-T", - "rev": "2022.11.09", - "hash": "sha256-rgXVOWmmc1ap/fCiXCvn34rhUbNRoMHbTXXYtnxk2pQ=" + "rev": "2023.02.05", + "hash": "sha256-V0mvSuiO5dTztXZ4uvteF0e7B21Ll1uq6o0UHPcZm1o=" }, "ATSynEdit_Cmp": { "owner": "Alexey-T", @@ -26,18 +26,18 @@ }, "EControl": { "owner": "Alexey-T", - "rev": "2022.08.22", - "hash": "sha256-o87V32HhFpCeSxhgkfKiL69oCcmpiReVmiNBPyv1kc4=" + "rev": "2023.01.18", + "hash": "sha256-5R4ZHMTfmIF0VnwOFNOV/i6Dc91yk5dVNcFNrxMMzm0=" }, "ATSynEdit_Ex": { "owner": "Alexey-T", - "rev": "2022.09.03", - "hash": "sha256-6xzYn9x5tZLUhLAT9mQ4+UmpEemg386tAjlWdK8j/Ew=" + "rev": "2023.01.18", + "hash": "sha256-SLZIDcrLwvhkJY92e/wtSsoY5SrjghcumbdpuVdK4iE=" }, "Python-for-Lazarus": { "owner": "Alexey-T", - "rev": "2022.10.26", - "hash": "sha256-pVVO3PMazcGizN3RI4zO2tgLJLDOYIKhwnMLBJ5IiwY=" + "rev": "2023.01.02", + "hash": "sha256-NnPrQAqmKg3Lh16Qp/LZVS4JRtAxXi3qRovLTbzUyYQ=" }, "Emmet-Pascal": { "owner": "Alexey-T", @@ -51,7 +51,7 @@ }, "bgrabitmap": { "owner": "bgrabitmap", - "rev": "v11.5.2", - "hash": "sha256-aGNKkLDbGTeFgFEhuX7R2BXhnllsanJmk4k+1muiSD8=" + "rev": "v11.5.3", + "hash": "sha256-qjBD9TVZQy1tKWHFWkuu6vdLjASzQb3+HRy0FLdd9a8=" } } No auto update branch exists Old version 1.176.0" not present in master derivation file with contents: { stdenv , lib , fetchFromGitHub , lazarus , fpc , libX11 # GTK2/3 , pango , cairo , glib , atk , gtk2 , gtk3 , gdk-pixbuf , python3 # Qt5 , libqt5pas , qt5 , widgetset ? "qt5" # See https://github.com/Alexey-T/CudaText-lexers , additionalLexers ? [ "Nix" ] }: assert builtins.elem widgetset [ "gtk2" "gtk3" "qt5" ]; let deps = lib.mapAttrs (name: spec: fetchFromGitHub { repo = name; inherit (spec) owner rev hash; } ) (lib.importJSON ./deps.json); in stdenv.mkDerivation rec { pname = "cudatext"; version = "1.183.0"; src = fetchFromGitHub { owner = "Alexey-T"; repo = "CudaText"; rev = version; hash = "sha256-hfOEL1Qkf8Sk6cNWUBwZXH/DSuo/ObyA5sRLOj9Iw3M="; }; postPatch = '' substituteInPlace app/proc_globdata.pas \ --replace "/usr/share/cudatext" "$out/share/cudatext" \ --replace "libpython3.so" "${python3}/lib/libpython${python3.pythonVersion}.so" \ --replace "AllowProgramUpdates:= true;" "AllowProgramUpdates:= false;" ''; nativeBuildInputs = [ lazarus fpc ] ++ lib.optional (widgetset == "qt5") qt5.wrapQtAppsHook; buildInputs = [ libX11 ] ++ lib.optionals (lib.hasPrefix "gtk" widgetset) [ pango cairo glib atk gdk-pixbuf ] ++ lib.optional (widgetset == "gtk2") gtk2 ++ lib.optional (widgetset == "gtk3") gtk3 ++ lib.optional (widgetset == "qt5") libqt5pas; NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath buildInputs}"; buildPhase = lib.concatStringsSep "\n" (lib.mapAttrsToList (name: dep: '' cp -r ${dep} ${name} '') deps) + '' # See https://wiki.freepascal.org/CudaText#How_to_compile_CudaText substituteInPlace ATSynEdit/atsynedit/atsynedit_package.lpk \ --replace GTK2_IME_CODE _GTK2_IME_CODE lazbuild --lazarusdir=${lazarus}/share/lazarus --pcp=./lazarus --ws=${widgetset} \ bgrabitmap/bgrabitmap/bgrabitmappack.lpk \ EncConv/encconv/encconv_package.lpk \ ATBinHex-Lazarus/atbinhex/atbinhex_package.lpk \ ATFlatControls/atflatcontrols/atflatcontrols_package.lpk \ ATSynEdit/atsynedit/atsynedit_package.lpk \ ATSynEdit_Cmp/atsynedit_cmp/atsynedit_cmp_package.lpk \ EControl/econtrol/econtrol_package.lpk \ ATSynEdit_Ex/atsynedit_ex/atsynedit_ex_package.lpk \ Python-for-Lazarus/python4lazarus/python4lazarus_package.lpk \ Emmet-Pascal/emmet/emmet_package.lpk \ app/cudatext.lpi ''; installPhase = '' install -Dm755 app/cudatext -t $out/bin install -dm755 $out/share/cudatext cp -r app/{data,py,settings_default} $out/share/cudatext install -Dm644 setup/debfiles/cudatext-512.png -t $out/share/pixmaps install -Dm644 setup/debfiles/cudatext.desktop -t $out/share/applications '' + lib.concatMapStringsSep "\n" (lexer: '' if [ -d "CudaText-lexers/${lexer}" ]; then install -Dm644 CudaText-lexers/${lexer}/*.{cuda-lexmap,lcf} $out/share/cudatext/data/lexlib else echo "${lexer} lexer not found" exit 1 fi '') additionalLexers; passthru.updateScript = ./update.sh; meta = with lib; { description = "Cross-platform code editor"; longDescription = '' Text/code editor with lite UI. Syntax highlighting for 200+ languages. Config system in JSON files. Multi-carets and multi-selections. Search and replace with RegEx. Extendable by Python plugins and themes. ''; homepage = "https://cudatext.github.io/"; changelog = "https://cudatext.github.io/history.txt"; license = licenses.mpl20; maintainers = with maintainers; [ sikmir ]; platforms = platforms.linux; }; }