mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
dc94c79d54
svn path=/nixpkgs/trunk/; revision=22437
40 lines
870 B
Nix
40 lines
870 B
Nix
{ stdenv, fetchurl, unzip }:
|
|
|
|
let
|
|
|
|
version = "1.60";
|
|
|
|
src = fetchurl {
|
|
name = "lsiutil-${version}.zip";
|
|
url = "http://www.lsi.com/DistributionSystem/AssetDocument/LSIUtil_${version}.zip";
|
|
sha256 = "1d4337faa56e24f7d98db87b9de94d6e2c17ab671f4e301b93833eea08b9e426";
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lsiutils-${version}";
|
|
|
|
srcs = [ src "Source/lsiutil.tar.gz" ];
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
sourceRoot = "lsiutil";
|
|
|
|
preBuild =
|
|
''
|
|
ensureDir $out/bin
|
|
substituteInPlace Makefile --replace /usr/bin $out/bin
|
|
substituteInPlace lsiutil.c \
|
|
--replace /sbin/modprobe modprobe \
|
|
--replace /bin/mknod $(type -P mknod)
|
|
'';
|
|
|
|
installPhase = "true";
|
|
|
|
meta = {
|
|
homepage = http://www.lsi.com/;
|
|
description = "LSI Logic Fusion MPT command line management tool";
|
|
license = "unfree";
|
|
};
|
|
}
|