depot/pkgs/by-name/ga/garnet/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

48 lines
1.2 KiB
Nix

{
lib,
buildDotnetModule,
fetchFromGitHub,
dotnetCorePackages,
nix-update-script,
}:
buildDotnetModule rec {
pname = "garnet";
version = "1.0.18";
src = fetchFromGitHub {
owner = "microsoft";
repo = "garnet";
rev = "v${version}";
hash = "sha256-vKjFUa/f/nsBaBkxwIhtMox2qtbBzy+ipuqFHtLhbr4=";
};
projectFile = "main/GarnetServer/GarnetServer.csproj";
nugetDeps = ./deps.nix;
dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_8_0 ];
dotnet-runtime = dotnetCorePackages.runtime_8_0;
dotnetBuildFlags = [
"-f"
"net8.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";
};
}