depot/third_party/nixpkgs/pkgs/tools/system/openseachest/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

38 lines
865 B
Nix

{ lib
, fetchFromGitHub
, stdenv
}:
stdenv.mkDerivation rec {
pname = "openseachest";
version = "22.07";
src = fetchFromGitHub {
owner = "Seagate";
repo = "openSeaChest";
rev = "v${version}";
sha256 = "sha256-YZOQfABDr5DGkL08TYn908XdCSCJCg+9nlWXRBjYBOU=";
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;
};
}