Files
nixpkgs/pkgs/by-name/ev/eventstore/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

90 lines
2.1 KiB
Nix

{
lib,
git,
dotnetCorePackages,
glibcLocales,
buildDotnetModule,
fetchFromGitHub,
bintools,
stdenv,
mono,
nix-update-script,
}:
let
mainProgram = "EventStore.ClusterNode";
in
buildDotnetModule rec {
pname = "EventStore";
version = "24.10.6";
src = fetchFromGitHub {
owner = "EventStore";
repo = "EventStore";
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_8_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
nativeBuildInputs = [
git
glibcLocales
bintools
];
runtimeDeps = [ mono ];
executables = [ mainProgram ];
# This test has a problem running on macOS
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
"EventStore.Projections.Core.Tests.Services.grpc_service.ServerFeaturesTests<LogFormat+V2,String>.should_receive_expected_endpoints"
"EventStore.Projections.Core.Tests.Services.grpc_service.ServerFeaturesTests<LogFormat+V3,UInt32>.should_receive_expected_endpoints"
];
nugetDeps = ./deps.json;
projectFile = "src/EventStore.ClusterNode/EventStore.ClusterNode.csproj";
doCheck = true;
testProjectFile = "src/EventStore.Projections.Core.Tests/EventStore.Projections.Core.Tests.csproj";
doInstallCheck = true;
installCheckPhase = ''
$out/bin/EventStore.ClusterNode --insecure \
--db "$HOME/data" \
--index "$HOME/index" \
--log "$HOME/log" \
-runprojections all --startstandardprojections \
--EnableAtomPubOverHttp &
PID=$!
sleep 30s;
kill "$PID";
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://geteventstore.com/";
description = "Event sourcing database with processing logic in JavaScript";
license = licenses.bsd3;
maintainers = with maintainers; [
puffnfresh
mdarocha
];
platforms = [
"x86_64-linux"
"x86_64-darwin"
];
inherit mainProgram;
};
}