Files
nixpkgs/pkgs/by-name/ga/garnet/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

61 lines
1.3 KiB
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
nix-update-script,
}:
buildDotnetModule rec {
pname = "garnet";
version = "1.0.83";
src = fetchFromGitHub {
owner = "microsoft";
repo = "garnet";
tag = "v${version}";
hash = "sha256-Z1PNgCanrHVyWILwR1HYjJdhoToMU43G9mo1UlRfV8Q=";
};
projectFile = "main/GarnetServer/GarnetServer.csproj";
nugetDeps = ./deps.json;
dotnet-sdk =
with dotnetCorePackages;
sdk_9_0
// {
inherit
(combinePackages [
sdk_9_0
sdk_8_0
])
packages
targetPackages
;
};
dotnetBuildFlags = [
"-f"
"net9.0"
];
dotnetInstallFlags = dotnetBuildFlags;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Remote cache-store from Microsoft Research";
longDescription = ''
A remote cache-store that offers strong performance, scalability,
storage, recovery, cluster sharding, key migration, replication features,
and compatibility with existing Redis clients
'';
homepage = "https://microsoft.github.io/garnet/";
changelog = "https://github.com/microsoft/garnet/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "GarnetServer";
};
}