nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDotnetModule,
4 dotnetCorePackages,
5 fetchFromGitHub,
6 nix-update-script,
7}:
8
9buildDotnetModule rec {
10 pname = "garnet";
11 version = "1.0.78";
12
13 src = fetchFromGitHub {
14 owner = "microsoft";
15 repo = "garnet";
16 tag = "v${version}";
17 hash = "sha256-V/h0X4CZ9FOcUetyyvo9umYS+VqJbYehg3QS/yp4OBM=";
18 };
19
20 projectFile = "main/GarnetServer/GarnetServer.csproj";
21 nugetDeps = ./deps.json;
22
23 dotnet-sdk =
24 with dotnetCorePackages;
25 sdk_9_0
26 // {
27 inherit
28 (combinePackages [
29 sdk_9_0
30 sdk_8_0
31 ])
32 packages
33 targetPackages
34 ;
35 };
36
37 dotnetBuildFlags = [
38 "-f"
39 "net9.0"
40 ];
41 dotnetInstallFlags = dotnetBuildFlags;
42
43 passthru = {
44 updateScript = nix-update-script { };
45 };
46
47 meta = {
48 description = "Remote cache-store from Microsoft Research";
49 longDescription = ''
50 A remote cache-store that offers strong performance, scalability,
51 storage, recovery, cluster sharding, key migration, replication features,
52 and compatibility with existing Redis clients
53 '';
54 homepage = "https://microsoft.github.io/garnet/";
55 changelog = "https://github.com/microsoft/garnet/releases/tag/v${version}";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ getchoo ];
58 mainProgram = "GarnetServer";
59 };
60}