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