ferretdb: 0.7.1 -> 0.9.0
Tweak the build process to set correct version.
This commit is contained in:
parent
25d107eb8e
commit
f6b16324f7
|
@ -5,29 +5,32 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "ferretdb";
|
||||
version = "0.7.1";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FerretDB";
|
||||
repo = "FerretDB";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-i3XCYVJfZ2sF4XGOxaBZqBOw7nRdzcGKhNNdqQMccPU=";
|
||||
sha256 = "sha256-+tmClWkW3uhBXuQzuSMJnzeA1rrkpLV0QLCzcKhbThw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo ${version} > internal/util/version/gen/version.txt
|
||||
echo v${version} > build/version/version.txt
|
||||
echo nixpkgs > build/version/package.txt
|
||||
'';
|
||||
|
||||
vendorSha256 = "sha256-qyAc5EVg8QPTnXQjqJGpT3waDrfn8iXz+O1iESCzCIc=";
|
||||
vendorSha256 = "sha256-43FxDRcif8FDHyXdNL/FJEt5ZnCQ8r7d5Red3l9442Q=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
subPackages = [ "cmd/ferretdb" ];
|
||||
|
||||
tags = [ "ferretdb_tigris" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A truly Open Source MongoDB alternative";
|
||||
homepage = "https://github.com/FerretDB/FerretDB";
|
||||
homepage = "https://www.ferretdb.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dit7ya ];
|
||||
maintainers = with maintainers; [ dit7ya noisersup ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue