2010-07-01 15:18:09 +02:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "1.60";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "lsiutil-${version}.zip";
|
2010-07-06 11:29:05 +02:00
|
|
|
url = "http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/hbas/fibre_channel/hardware_drivers/LSIUtil%20Kit_${version}.zip";
|
2010-07-01 15:18:09 +02:00
|
|
|
sha256 = "1d4337faa56e24f7d98db87b9de94d6e2c17ab671f4e301b93833eea08b9e426";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "lsiutils";
|
|
|
|
inherit version;
|
2010-07-01 15:18:09 +02:00
|
|
|
|
|
|
|
srcs = [ src "Source/lsiutil.tar.gz" ];
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
sourceRoot = "lsiutil";
|
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2010-07-01 15:18:09 +02:00
|
|
|
substituteInPlace Makefile --replace /usr/bin $out/bin
|
|
|
|
substituteInPlace lsiutil.c \
|
|
|
|
--replace /sbin/modprobe modprobe \
|
|
|
|
--replace /bin/mknod $(type -P mknod)
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = "true";
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.lsi.com/";
|
2010-07-01 15:18:09 +02:00
|
|
|
description = "LSI Logic Fusion MPT command line management tool";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2010-07-01 15:18:09 +02:00
|
|
|
};
|
|
|
|
}
|