···
12
+
buildGoModule (finalAttrs: {
17
-
hash = "sha256-d8N9py3khwjg/tRyKUfImLy1CwtjoDvWzQB6F+tM5kQ=";
19
+
tag = finalAttrs.version;
20
+
hash = "sha256-h8pyjC/hbKfvt4hEKuq0v5osLMWNU+6mYqFGqsZFqXs=";
20
-
vendorHash = "sha256-WURNRNjUylLsf3+AMfb48VHbqfiPIT0lPmLfNjWphSU=";
23
+
vendorHash = "sha256-KRO0aDGOVx1neXcGsYYqcpD0tAqtR3GSBDhFz5TbQBs=";
25
+
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libredirect.hook ];
subPackages = [ "weed" ];
···
46
-
# Remove unmaintained tests ahd those that require additional services.
47
-
rm -rf unmaintained test/s3
50
+
# Remove unmaintained tests and those that require additional services.
51
+
rm -rf unmaintained test/s3 test/fuse_integration
52
+
# TestECEncodingVolumeLocationTimingBug, TestECEncodingMasterTimingRaceCondition: weed binary not found
53
+
export PATH=$PATH:$NIX_BUILD_TOP/go/bin
55
+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
56
+
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/services=${iana-etc}/etc/services
59
+
__darwinAllowLocalNetworking = true;
passthru.tests.version = testers.testVersion {
command = "weed version";
description = "Simple and highly scalable distributed file system";
homepage = "https://github.com/chrislusf/seaweedfs";
58
-
maintainers = with maintainers; [
69
+
maintainers = with lib.maintainers; [
64
-
license = licenses.asl20;
75
+
license = lib.licenses.asl20;