depot/third_party/nixpkgs/pkgs/tools/system/openseachest/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

38 lines
861 B
Nix

{ lib
, fetchFromGitHub
, stdenv
}:
stdenv.mkDerivation rec {
pname = "openseachest";
version = "24.08";
src = fetchFromGitHub {
owner = "Seagate";
repo = "openSeaChest";
rev = "v${version}";
hash = "sha256-g5zCPlqK2AmGvPFqxEeSsZfDf4ksMYdIvJ+1PuuauL8=";
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 = "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;
};
}