1{ stdenv, fetchurl, unzip }:
2
3let
4
5 version = "1.60";
6
7 src = fetchurl {
8 name = "lsiutil-${version}.zip";
9 url = "http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/hbas/fibre_channel/hardware_drivers/LSIUtil%20Kit_${version}.zip";
10 sha256 = "1d4337faa56e24f7d98db87b9de94d6e2c17ab671f4e301b93833eea08b9e426";
11 };
12
13in
14
15stdenv.mkDerivation rec {
16 name = "lsiutils-${version}";
17
18 srcs = [ src "Source/lsiutil.tar.gz" ];
19
20 buildInputs = [ unzip ];
21
22 sourceRoot = "lsiutil";
23
24 preBuild =
25 ''
26 mkdir -p $out/bin
27 substituteInPlace Makefile --replace /usr/bin $out/bin
28 substituteInPlace lsiutil.c \
29 --replace /sbin/modprobe modprobe \
30 --replace /bin/mknod $(type -P mknod)
31 '';
32
33 installPhase = "true";
34
35 meta = {
36 homepage = http://www.lsi.com/;
37 description = "LSI Logic Fusion MPT command line management tool";
38 license = stdenv.lib.licenses.unfree;
39 };
40}