* Added lsiutil, a command-line utility for LSI controllers.
svn path=/nixpkgs/trunk/; revision=22437
This commit is contained in:
parent
5b4e3a5b40
commit
dc94c79d54
40
pkgs/os-specific/linux/lsiutil/default.nix
Normal file
40
pkgs/os-specific/linux/lsiutil/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ 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";
|
||||||
|
};
|
||||||
|
}
|
@ -6632,6 +6632,10 @@ let
|
|||||||
inherit fetchurl stdenv bison flex perl;
|
inherit fetchurl stdenv bison flex perl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lsiutil = import ../os-specific/linux/lsiutil {
|
||||||
|
inherit fetchurl stdenv unzip;
|
||||||
|
};
|
||||||
|
|
||||||
klibc = makeOverridable (import ../os-specific/linux/klibc) {
|
klibc = makeOverridable (import ../os-specific/linux/klibc) {
|
||||||
inherit fetchurl stdenv perl bison mktemp;
|
inherit fetchurl stdenv perl bison mktemp;
|
||||||
linuxHeaders = glibc.kernelHeaders;
|
linuxHeaders = glibc.kernelHeaders;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user