31 lines
638 B
Nix
31 lines
638 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "badger";
|
|
version = "4.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dgraph-io";
|
|
repo = "badger";
|
|
rev = "v${version}";
|
|
hash = "sha256-J9ayW+Q6ODCDlGQ1bFt5Gd2chVsVfEetny5GPklOK5E=";
|
|
};
|
|
|
|
vendorHash = "sha256-0hQcaXsFUh3vYOMr2eqfMPfgy7LjiU1icOzWAgQFmTE=";
|
|
|
|
subPackages = [ "badger" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Fast key-value DB in Go";
|
|
homepage = "https://github.com/dgraph-io/badger";
|
|
license = licenses.asl20;
|
|
mainProgram = "badger";
|
|
maintainers = with maintainers; [ farcaller ];
|
|
};
|
|
}
|