summaryrefslogtreecommitdiff
path: root/pkgs/applications/networking/seaweedfs/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/applications/networking/seaweedfs/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/applications/networking/seaweedfs/default.nix')
-rw-r--r--pkgs/applications/networking/seaweedfs/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/applications/networking/seaweedfs/default.nix b/pkgs/applications/networking/seaweedfs/default.nix
index 61f318009f72..86a3e48ae8ff 100644
--- a/pkgs/applications/networking/seaweedfs/default.nix
+++ b/pkgs/applications/networking/seaweedfs/default.nix
@@ -1,7 +1,7 @@
{ lib
, fetchFromGitHub
, buildGoModule
-, runCommand
+, testVersion
, seaweedfs
}:
@@ -20,10 +20,8 @@ buildGoModule rec {
subPackages = [ "weed" ];
- passthru.tests.check-version = runCommand "weed-version" { meta.timeout = 3; } ''
- ${seaweedfs}/bin/weed version | grep -Fw ${version}
- touch $out
- '';
+ passthru.tests.version =
+ testVersion { package = seaweedfs; command = "weed version"; };
meta = with lib; {
description = "Simple and highly scalable distributed file system";