diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-06-15 11:49:18 +0300 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-06-20 19:21:35 +0200 |
commit | 1dd527ad6cc5d6ec4d07e7a7c51b7e19e6734910 (patch) | |
tree | 934f80f8c4856ab005e79780678c4b93aedbce5f /pkgs/applications/editors/cudatext | |
parent | 1aa1cf03b62f05e21f425fee1108b5065da2ad89 (diff) |
cudatext: 1.165.2 → 1.166.2
Diffstat (limited to 'pkgs/applications/editors/cudatext')
-rw-r--r-- | pkgs/applications/editors/cudatext/default.nix | 8 | ||||
-rw-r--r-- | pkgs/applications/editors/cudatext/deps.json | 28 | ||||
-rwxr-xr-x | pkgs/applications/editors/cudatext/update.sh | 10 |
3 files changed, 28 insertions, 18 deletions
diff --git a/pkgs/applications/editors/cudatext/default.nix b/pkgs/applications/editors/cudatext/default.nix index 7f6c54858836e..1a5c82c344fa1 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.165.2"; + version = "1.166.2"; src = fetchFromGitHub { owner = "Alexey-T"; repo = "CudaText"; rev = version; - sha256 = "sha256-eNpU7PpzyL2KHPL6cPmxZw/49VALjCWUdavV6Ex1IQI="; + sha256 = "sha256-kJ1UpVff6FS/gk3Ecz+GEDFYeu2CmXG5ehFEawk+/yg="; }; postPatch = '' @@ -66,7 +66,7 @@ stdenv.mkDerivation rec { NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath buildInputs}"; buildPhase = lib.concatStringsSep "\n" (lib.mapAttrsToList (name: dep: '' - cp -r --no-preserve=mode ${dep} ${name} + ln -s ${dep} ${name} '') deps) + '' lazbuild --lazarusdir=${lazarus}/share/lazarus --pcp=./lazarus --ws=${widgetset} \ bgrabitmap/bgrabitmap/bgrabitmappack.lpk \ @@ -83,7 +83,7 @@ stdenv.mkDerivation rec { ''; installPhase = '' - install -Dm755 app/cudatext $out/bin/cudatext + install -Dm755 app/cudatext -t $out/bin install -dm755 $out/share/cudatext cp -r app/{data,py,settings_default} $out/share/cudatext diff --git a/pkgs/applications/editors/cudatext/deps.json b/pkgs/applications/editors/cudatext/deps.json index f2c4fc6539a15..840d39c66c2d9 100644 --- a/pkgs/applications/editors/cudatext/deps.json +++ b/pkgs/applications/editors/cudatext/deps.json @@ -1,23 +1,23 @@ { "EncConv": { "owner": "Alexey-T", - "rev": "2022.04.18", - "sha256": "sha256-UV07a9qNzd0JQWCq/eD0K9fA7kxAKj5OP7dOpECo8xw=" + "rev": "2022.06.19", + "sha256": "sha256-M00rHH3dG6Vx6MEALxRNlnLLfX/rRI+rdTS7riOhgeg=" }, "ATBinHex-Lazarus": { "owner": "Alexey-T", - "rev": "2022.04.16", - "sha256": "sha256-7ye73KSpoPvvxBNwBC3uloufFE+448RDyNScumk1ViE=" + "rev": "2022.06.14", + "sha256": "sha256-3QhARraYURW5uCf2f4MZfUbxdbsg9h7BlXUxKcz4jwA=" }, "ATFlatControls": { "owner": "Alexey-T", - "rev": "2022.05.06", - "sha256": "sha256-mYZ3mgtUpQ8sry5WmdluHca/CR7RqR9GRrxIoeZFLes=" + "rev": "2022.06.19", + "sha256": "sha256-4pkwgg2U6NAGv+fVFKIli2Qe3fyDMiliFLJSgsh1hsQ=" }, "ATSynEdit": { "owner": "Alexey-T", - "rev": "2022.06.01", - "sha256": "sha256-dilFwvtD8OLLq7QOPWSG3FeBM12Yy4ztM+CedJQAAaU=" + "rev": "2022.06.14", + "sha256": "sha256-rS4hO4jm9k6raspPzX7z7HF8cdTqcwcD2DDRvQFQjLk=" }, "ATSynEdit_Cmp": { "owner": "Alexey-T", @@ -26,13 +26,13 @@ }, "EControl": { "owner": "Alexey-T", - "rev": "2022.05.06", - "sha256": "sha256-ppm8Wuxhi5N3Er0f0h9d+v2spwEMr7ksf9tz4vI42+M=" + "rev": "2022.06.14", + "sha256": "sha256-P21Tb/hhQvXvT3LhM3lw4B0joQ2cFxsOXjljKaut6OM=" }, "ATSynEdit_Ex": { "owner": "Alexey-T", - "rev": "2022.05.23", - "sha256": "sha256-/PqEx2Z1TVjnxfeWR9qBZUNzdqDBttuLmSBzIEPe1MY=" + "rev": "2022.06.14", + "sha256": "sha256-Kcl3y5SN9DKUDL3ozjMrlsObsMVtGuU5iWrpLoMbPz4=" }, "Python-for-Lazarus": { "owner": "Alexey-T", @@ -51,7 +51,7 @@ }, "bgrabitmap": { "owner": "bgrabitmap", - "rev": "v11.4", - "sha256": "sha256-jZL8lzjua033E76IL0HIk/fihC73ifCb4LqMni7vvb0=" + "rev": "v11.5", + "sha256": "sha256-Pevh+yhtN3oSSvbQfnO7SM6UHBVe0sSpbK8ss98XqcU=" } } diff --git a/pkgs/applications/editors/cudatext/update.sh b/pkgs/applications/editors/cudatext/update.sh index f7aae6ff8b494..5cee9d709a0ba 100755 --- a/pkgs/applications/editors/cudatext/update.sh +++ b/pkgs/applications/editors/cudatext/update.sh @@ -4,7 +4,17 @@ set -euo pipefail cd "$(dirname "$0")" +nixpkgs="$(git rev-parse --show-toplevel)" + +oldVersion=$(nix-instantiate --eval -E "(import \"$nixpkgs\" { config = {}; overlays = []; }).cudatext.version" | tr -d '"') version=$(curl -s https://api.github.com/repos/Alexey-T/CudaText/releases/latest | jq -r '.tag_name') + +if [[ $version == $oldVersion ]]; then + echo "Already at latest version $version" + exit 0 +fi +echo "New version: $version" + url="https://github.com/Alexey-T/CudaText/archive/refs/tags/${version}.tar.gz" hash=$(nix-prefetch-url --quiet --unpack --type sha256 $url) sriHash=$(nix hash to-sri --type sha256 $hash) |