diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-16 16:20:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 16:20:21 +0100 |
commit | 5e39986fe26e20207aebd46ce4b1f12ec0488aa1 (patch) | |
tree | 8c3181f36ba068ef0c1e689341fe40511cfc9794 /pkgs/tools/system | |
parent | 6b98d97c4541be06fe3d50448be4410c60dce07a (diff) | |
parent | 83fa3d7c121a31168be07652b32a633380fd0ef6 (diff) |
Merge pull request #142151 from justinas/openseachest
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/openseachest/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/system/openseachest/default.nix b/pkgs/tools/system/openseachest/default.nix new file mode 100644 index 000000000000..7b7909fbe002 --- /dev/null +++ b/pkgs/tools/system/openseachest/default.nix @@ -0,0 +1,38 @@ +{ lib +, fetchFromGitHub +, stdenv +}: + +stdenv.mkDerivation rec { + pname = "openseachest"; + version = "21.06.21"; + + src = fetchFromGitHub { + owner = "Seagate"; + repo = "openSeaChest"; + rev = "v${version}"; + sha256 = "09xay3frk0yh48ww650dsjp0rx0w1m3ab3rpz5k1jizppv4kk9fi"; + fetchSubmodules = true; + }; + + makeFlags = [ "-C Make/gcc" ]; + buildFlags = [ "release" ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/{bin,share} + cp -r Make/gcc/openseachest_exes/. $out/bin + cp -r docs/man $out/share + + runHook postInstall + ''; + + meta = with lib; { + description = "A collection of command line diagnostic tools for storage devices"; + homepage = "https://github.com/Seagate/openSeaChest"; + license = licenses.mpl20; + maintainers = with maintainers; [ justinas ]; + platforms = with platforms; freebsd ++ linux; + }; +} |