btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / op / openseachest / package.nix
blobd71a32103e0205f6deb44a4b19816459a57d5850
1 { lib
2 , fetchFromGitHub
3 , stdenv
4 }:
6 stdenv.mkDerivation rec {
7   pname = "openseachest";
8   version = "24.08.1";
10   src = fetchFromGitHub {
11     owner = "Seagate";
12     repo = "openSeaChest";
13     rev = "v${version}";
14     hash = "sha256-1vfWX6uTQcM6K6wu9Ygu2xZV4nXm6VnwNHmQ2ceh62s=";
15     fetchSubmodules = true;
16   };
18   makeFlags = [ "-C Make/gcc" ];
19   buildFlags = [ "release" ];
21   installPhase = ''
22     runHook preInstall
24     mkdir -p $out/{bin,share}
25     cp -r Make/gcc/openseachest_exes/. $out/bin
26     cp -r docs/man $out/share
28     runHook postInstall
29   '';
31   meta = with lib; {
32     description = "Collection of command line diagnostic tools for storage devices";
33     homepage = "https://github.com/Seagate/openSeaChest";
34     license = licenses.mpl20;
35     maintainers = with maintainers; [ justinas ];
36     platforms = with platforms; freebsd ++ linux;
37   };