about summary refs log tree commit diff
path: root/pkgs/by-name/ga/garnet/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ga/garnet/package.nix')
-rw-r--r--pkgs/by-name/ga/garnet/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/ga/garnet/package.nix b/pkgs/by-name/ga/garnet/package.nix
new file mode 100644
index 0000000000000..4684f924750b2
--- /dev/null
+++ b/pkgs/by-name/ga/garnet/package.nix
@@ -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];
+  };
+}