2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ferretdb";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.9.1";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FerretDB";
|
|
|
|
repo = "FerretDB";
|
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-iqoz7axU5U6MdRl8I2vS3Nh37XZZPI4bRb3oFxpQs6M=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-02-16 17:41:37 +00:00
|
|
|
echo v${version} > build/version/version.txt
|
|
|
|
echo nixpkgs > build/version/package.txt
|
2022-09-09 14:08:57 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
vendorSha256 = "sha256-qtxR1vk/EZZmCRP1Z+EFObfMbQXKiRaSiI1Dsv268b8=";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
subPackages = [ "cmd/ferretdb" ];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
tags = [ "ferretdb_tigris" ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A truly Open Source MongoDB alternative";
|
2023-02-16 17:41:37 +00:00
|
|
|
homepage = "https://www.ferretdb.io/";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.asl20;
|
2023-02-16 17:41:37 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya noisersup ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|