2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openseachest";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "23.03";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Seagate";
|
|
|
|
repo = "openSeaChest";
|
|
|
|
rev = "v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-D/TvT+LnAVhkQ32U+VdW7AA3BfKurmK4mwIY8vwXIpc=";
|
2021-12-06 16:07:01 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|