12 mainProgram = "EventStore.ClusterNode";
15 buildDotnetModule rec {
19 src = fetchFromGitHub {
22 rev = "oss-v${version}";
23 hash = "sha256-+Wxm6yusaCoqXIbsi0ZoALAviKUyNMQwbzsQtBK/PCo=";
27 # Fixes application reporting 0.0.0.0 as its version.
28 MINVERVERSIONOVERRIDE = version;
30 dotnet-sdk = dotnetCorePackages.sdk_6_0;
31 dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
33 nativeBuildInputs = [ git glibcLocales bintools ];
35 runtimeDeps = [ mono ];
37 executables = [ mainProgram ];
39 # This test has a problem running on macOS
40 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
41 "EventStore.Projections.Core.Tests.Services.grpc_service.ServerFeaturesTests<LogFormat+V2,String>.should_receive_expected_endpoints"
42 "EventStore.Projections.Core.Tests.Services.grpc_service.ServerFeaturesTests<LogFormat+V3,UInt32>.should_receive_expected_endpoints"
45 nugetDeps = ./deps.nix;
47 projectFile = "src/EventStore.ClusterNode/EventStore.ClusterNode.csproj";
50 testProjectFile = "src/EventStore.Projections.Core.Tests/EventStore.Projections.Core.Tests.csproj";
52 doInstallCheck = true;
53 installCheckPhase = ''
54 $out/bin/EventStore.ClusterNode --insecure \
56 --index "$HOME/index" \
58 -runprojections all --startstandardprojections \
59 --EnableAtomPubOverHttp &
67 passthru.updateScript = ./updater.sh;
70 homepage = "https://geteventstore.com/";
71 description = "Event sourcing database with processing logic in JavaScript";
72 license = licenses.bsd3;
73 maintainers = with maintainers; [ puffnfresh mdarocha ];
74 platforms = [ "x86_64-linux" "x86_64-darwin" ];