Commit ff25426d authored by Jamie Magee's avatar Jamie Magee
Browse files

eventstore: 23.6.0 -> 24.10.6

parent b8e538ea
Loading
Loading
Loading
Loading
+601 −691

File changed.

Preview size limit exceeded, changes collapsed.

+7 −6
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  bintools,
  stdenv,
  mono,
  nix-update-script,
}:
let
  mainProgram = "EventStore.ClusterNode";
@@ -15,21 +16,21 @@ in

buildDotnetModule rec {
  pname = "EventStore";
  version = "23.6.0";
  version = "24.10.6";

  src = fetchFromGitHub {
    owner = "EventStore";
    repo = "EventStore";
    rev = "oss-v${version}";
    hash = "sha256-+Wxm6yusaCoqXIbsi0ZoALAviKUyNMQwbzsQtBK/PCo=";
    tag = "v${version}";
    hash = "sha256-8/sagvMyJ1/onGMuJ28QLWI5M8dBDWyGOcZKUv3PJsQ=";
    leaveDotGit = true;
  };

  # Fixes application reporting 0.0.0.0 as its version.
  MINVERVERSIONOVERRIDE = version;

  dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
  dotnet-runtime = dotnetCorePackages.aspnetcore_6_0-bin;
  dotnet-sdk = dotnetCorePackages.sdk_8_0;
  dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;

  nativeBuildInputs = [
    git
@@ -69,7 +70,7 @@ buildDotnetModule rec {
    kill "$PID";
  '';

  passthru.updateScript = ./updater.sh;
  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    homepage = "https://geteventstore.com/";
+0 −21
Original line number Diff line number Diff line
#! /usr/bin/env nix-shell
#! nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
# shellcheck shell=bash

set -euo pipefail

cd "$(dirname "${BASH_SOURCE[0]}")"

new_version="$(curl -s "https://api.github.com/repos/EventStore/EventStore/releases/latest" | jq -r '.name')"
new_version="${new_version#oss-v}"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"

if [[ "$new_version" == "$old_version" ]]; then
  echo "Already up to date!"
  exit 0
fi

cd ../../../..
update-source-version eventstore "${new_version//v}"

$(nix-build -A eventstore.fetch-deps --no-out-link)