summaryrefslogtreecommitdiffstats
path: root/pkgs/servers
diff options
context:
space:
mode:
authorMostly Void <dit7ya@users.noreply.github.com>2022-09-04 19:23:06 +0530
committerGitHub <noreply@github.com>2022-09-04 15:53:06 +0200
commit5518e6aba11f50f0953fa21c7ad6a283c4741b95 (patch)
treebc4c221dbff07abe393f343c689e0435d8b70206 /pkgs/servers
parentc209faac4d75630830cf867b670b1cee76a64cef (diff)
ferretdb: init at 0.5.2 (#188584)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/nosql/ferretdb/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/servers/nosql/ferretdb/default.nix b/pkgs/servers/nosql/ferretdb/default.nix
new file mode 100644
index 000000000000..01105ffd0b19
--- /dev/null
+++ b/pkgs/servers/nosql/ferretdb/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+ pname = "ferretdb";
+ version = "0.5.2";
+
+ src = fetchFromGitHub {
+ owner = "FerretDB";
+ repo = "FerretDB";
+ rev = "v${version}";
+ sha256 = "sha256-WSdscZ1/Dix83RE95Iv61rdaSBWx1GMi6qOIPNus+ZI=";
+ };
+
+ postPatch = ''
+ echo ${version} > internal/util/version/gen/version.txt
+ '';
+
+ vendorSha256 = "sha256-fGmGE08w9w2QnBVdMZ2IKo8Zq3euJGCBVTTHNKYFY3U=";
+
+ CGO_ENABLED = 0;
+
+ subPackages = [ "cmd/ferretdb" ];
+
+ meta = with lib; {
+ description = "A truly Open Source MongoDB alternative";
+ homepage = "https://github.com/FerretDB/FerretDB";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ dit7ya ];
+ };
+}