nixpkgs/pkgs/os-specific/linux/sasutils/default.nix
2023-02-18 17:39:01 +00:00

28 lines
768 B
Nix

{ lib, python3Packages, fetchFromGitHub, installShellFiles, sg3_utils }:
python3Packages.buildPythonApplication rec {
pname = "sasutils";
version = "0.4.0";
src = fetchFromGitHub {
owner = "stanford-rc";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-9JRw+UoxU0I5RHuimzYrM/3j8UWHuicVpoOdRRrj2Wc=";
};
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = [ sg3_utils ];
postInstall = ''
installManPage doc/man/man1/*.1
'';
meta = with lib; {
homepage = "https://github.com/stanford-rc/sasutils";
description = "A set of command-line tools to ease the administration of Serial Attached SCSI (SAS) fabrics";
license = licenses.asl20;
maintainers = with maintainers; [ aij ];
};
}