nixpkgs/pkgs/applications/networking/seaweedfs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, seaweedfs
}:
2020-11-05 16:48:09 +01:00
buildGoModule rec {
pname = "seaweedfs";
2022-11-09 09:57:57 +01:00
version = "3.34";
2020-11-05 16:48:09 +01:00
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
2022-11-09 09:57:57 +01:00
hash = "sha256-lOCZHkLJCDvaT3CcHUBbsybdy0H6BfKKGpd/73cxcWA=";
2020-11-05 16:48:09 +01:00
};
2022-11-09 09:57:57 +01:00
vendorHash = "sha256-1RUWONkXArXYg8gQogKUhMSGdIYyT3lq5qWuUQBsFig=";
2020-11-05 16:48:09 +01:00
subPackages = [ "weed" ];
2022-10-22 13:22:15 +02:00
ldflags = [
"-w"
"-s"
"-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=N/A"
];
tags = [
"elastic"
"gocdk"
"sqlite"
"ydb"
"tikv"
];
preBuild = ''
export GODEBUG=http2client=0
'';
# There are no tests.
doCheck = false;
passthru.tests.version = testers.testVersion {
package = seaweedfs;
command = "weed version";
};
2020-11-05 16:48:09 +01:00
meta = with lib; {
description = "Simple and highly scalable distributed file system";
homepage = "https://github.com/chrislusf/seaweedfs";
2022-10-22 13:22:15 +02:00
maintainers = with maintainers; [ azahi cmacrae ];
mainProgram = "weed";
2020-11-05 16:48:09 +01:00
license = licenses.asl20;
};
}