File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
pkgs/by-name/db/dbeaver-bin Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1717
1818stdenvNoCC . mkDerivation ( finalAttrs : {
1919 pname = "dbeaver-bin" ;
20- version = "25.0.2 " ;
20+ version = "25.0.4 " ;
2121
2222 src =
2323 let
@@ -30,10 +30,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
3030 aarch64-darwin = "macos-aarch64.dmg" ;
3131 } ;
3232 hash = selectSystem {
33- x86_64-linux = "sha256-UmTy4Flxz/zIh3cLxRi7EhNDf0Ojc7fuzCbRKIE/+CQ =" ;
34- aarch64-linux = "sha256-I+V/2kfdxGx8zNkH98b2685IQPbVPSe9++qS4QEg0LU =" ;
35- x86_64-darwin = "sha256-8Qf69OHXPiqdMs//f1jbKbyKoll+oX+P+l3mpdOvraI =" ;
36- aarch64-darwin = "sha256-bGxn8y9hvJyqj1/i5tScufO5/ZjdlOlPChmeL+DWwoY =" ;
33+ x86_64-linux = "sha256-ALtJIld7gT4pj+jGRkwMloq6B/ZBOMYZxws9N7xNNZg =" ;
34+ aarch64-linux = "sha256-Ka+jEI6y1BRqV83yDvu1yDzJfpUIxKKD+zehVHcNQ/o =" ;
35+ x86_64-darwin = "sha256-P8f0NlMjh/46RChQy8JIm71msqX023K2QaFEic2Br9M =" ;
36+ aarch64-darwin = "sha256-a9H9M1j6iPcrVcfDxCZHeZj6e55QH3XochXaL2OStlI =" ;
3737 } ;
3838 in
3939 fetchurl {
@@ -63,7 +63,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
6363 preInstall = ''
6464 # most directories are for different architectures, only keep what we need
6565 shopt -s extglob
66- pushd ${ lib . optionalString stdenvNoCC . hostPlatform . isDarwin "Contents/Eclipse/" } plugins/com.sun.jna_5.15.0.v20240915-2000 /com/sun/jna/
66+ pushd ${ lib . optionalString stdenvNoCC . hostPlatform . isDarwin "Contents/Eclipse/" } plugins/com.sun.jna_* /com/sun/jna/
6767 rm -r !(ptr|internal|linux-x86-64|linux-aarch64|darwin-x86-64|darwin-aarch64)/
6868 popd
6969 '' ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env nix-shell
22#! nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
3+ BASEDIR=" $( dirname " $0 " ) /../../../.."
34
45latestVersion=$( curl " https://api.github.com/repos/dbeaver/dbeaver/tags" | jq -r ' .[0].name' )
5- currentVersion=$( nix-instantiate --eval -E " with import ./. {}; dbeaver-bin.version " | tr -d ' "' )
6+ currentVersion=$( nix-instantiate --eval -E " with import ${BASEDIR} {}; lib.getVersion dbeaver-bin" | tr -d ' "' )
67
78echo " latest version: $latestVersion "
89echo " current version: $currentVersion "
2223 prefetch=$( nix-prefetch-url " https://github.com/dbeaver/dbeaver/releases/download/$latestVersion /dbeaver-ce-$latestVersion -$2 " )
2324 hash=$( nix-hash --type sha256 --to-sri $prefetch )
2425
25- update-source-version dbeaver-bin $latestVersion $hash --system=$1 --ignore-same-version
26+ (cd " $BASEDIR " && update-source-version dbeaver-bin $latestVersion $hash --system=$1 --ignore-same-version)
2627done
You can’t perform that action at this time.
0 commit comments