2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ferretdb";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.9.2";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FerretDB";
|
|
|
|
repo = "FerretDB";
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-lJlj5GNgrllcaEednxVCmMPHG2aU4z3mKkm9t0cO5Tk=";
|
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-03-04 12:14:45 +00:00
|
|
|
vendorSha256 = "sha256-I5ucq3K0lRsokG9lahmBUH9mIYa5tgHnL+vxKSzW1hw=";
|
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-03-04 12:14:45 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya noisersup julienmalka ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|