Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

garnet: init at 1.0.1 #299566

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
88 changes: 88 additions & 0 deletions pkgs/by-name/ga/garnet/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions pkgs/by-name/ga/garnet/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
buildDotnetModule,
fetchFromGitHub,
garnet,
dotnetCorePackages,
}:
buildDotnetModule {
pname = "garnet";
version = "1.0.1";

src = fetchFromGitHub {
owner = "microsoft";
repo = "garnet";
rev = "v${garnet.version}";
hash = "sha256-elUmM9Yw1/gazIV194P+noIm7ajQpRTccEhD5gN9D2Q=";
};

projectFile = "main/GarnetServer/GarnetServer.csproj";
nugetDeps = ./deps.nix;

dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;

dotnetInstallFlags = ["-f" "net8.0"];

meta = with lib; {
mainProgram = "GarnetServer";
description = "A 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${garnet.version}";
license = licenses.mit;
maintainers = with maintainers; [getchoo];
};
}