@@ -0,0 +1,38 @@
1+{ lib
2+, fetchFromGitHub
3+, stdenv
4+}:
5+
6+stdenv.mkDerivation rec {
7+ pname = "openseachest";
8+ version = "21.06.21";
9+
10+ src = fetchFromGitHub {
11+ owner = "Seagate";
12+ repo = "openSeaChest";
13+ rev = "v${version}";
14+ sha256 = "09xay3frk0yh48ww650dsjp0rx0w1m3ab3rpz5k1jizppv4kk9fi";
15+ fetchSubmodules = true;
16+ };
17+
18+ makeFlags = [ "-C Make/gcc" ];
19+ buildFlags = [ "release" ];
20+
21+ installPhase = ''
22+ runHook preInstall
23+
24+ mkdir -p $out/{bin,share}
25+ cp -r Make/gcc/openseachest_exes/. $out/bin
26+ cp -r docs/man $out/share
27+
28+ runHook postInstall
29+ '';
30+
31+ meta = with lib; {
32+ description = "A collection of command line diagnostic tools for storage devices";
33+ homepage = "https://github.com/Seagate/openSeaChest";
34+ license = licenses.mpl20;
35+ maintainers = with maintainers; [ justinas ];
36+ platforms = with platforms; freebsd ++ linux;
37+ };
38+}