blob: 4054d1c947939ff43452fe715e0a6fa37b9fad67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ferretdb";
version = "0.6.1";
src = fetchFromGitHub {
owner = "FerretDB";
repo = "FerretDB";
rev = "v${version}";
sha256 = "sha256-oSNE7JJwni+X5AiAmHLuxVI9gMh3AT84xejWgmJSlzk=";
};
postPatch = ''
echo ${version} > internal/util/version/gen/version.txt
'';
vendorSha256 = "sha256-H/EXUPNMTD6mgcUFupxL5wTLHvAlH5L6bv2GmvsbKms=";
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 ];
};
}
|