11 src = fetchFromGitHub {
15 hash = "sha256-wTnVZ2C6edXy7+DV5w9Ny1Ry8yKQtahS2AIjFkaJhm8=";
19 echo v${version} > build/version/version.txt
20 echo nixpkgs > build/version/package.txt
23 vendorHash = "sha256-1Al7Dxw6EkGZpjmxQWbRU4uV0KT1emNI3YNGbiX87Yc=";
27 subPackages = [ "cmd/ferretdb" ];
29 # tests in cmd/ferretdb are not production relevant
32 # the binary panics if something required wasn't set during compilation
33 doInstallCheck = true;
34 installCheckPhase = ''
35 $out/bin/ferretdb --version | grep ${version}
38 passthru.tests = nixosTests.ferretdb;
41 description = "A truly Open Source MongoDB alternative";
42 mainProgram = "ferretdb";
43 changelog = "https://github.com/FerretDB/FerretDB/releases/tag/v${version}";
44 homepage = "https://www.ferretdb.io/";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ dit7ya noisersup julienmalka ];