mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
39 lines
865 B
Nix
39 lines
865 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openseachest";
|
|
version = "23.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Seagate";
|
|
repo = "openSeaChest";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-2snxruIC/93+yI7g/9cCXcms8FaoXnoyWq9py8GTwrs=";
|
|
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;
|
|
};
|
|
}
|