depot/third_party/nixpkgs/pkgs/tools/system/openseachest/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

38 lines
867 B
Nix

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