2010-08-30 10:15:27 +01:00
|
|
|
{ stdenv, fetchurl, kernel, module_init_tools}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-17 14:32:28 +00:00
|
|
|
name = "iscsitarget-1.4.20.2-${kernel.version}";
|
|
|
|
|
2010-08-30 10:15:27 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/iscsitarget/iscsitarget/1.4.20.2/${name}.tar.gz";
|
|
|
|
sha256 = "126kp0yc7vmvdbaw2xfav89340b0h91dvvyib5qbvyrq40n8wg0g";
|
|
|
|
};
|
|
|
|
|
|
|
|
KSRC = "${kernel}/lib/modules/*/build";
|
2012-02-17 14:32:28 +00:00
|
|
|
|
|
|
|
DESTDIR = "$(out)";
|
2010-08-30 10:15:27 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export PATH=$PATH:${module_init_tools}/sbin
|
|
|
|
sed -i 's|/usr/|/|' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ module_init_tools ];
|
|
|
|
|
|
|
|
meta = {
|
2012-02-17 14:32:28 +00:00
|
|
|
description = "iSCSI Enterprise Target (IET), software for building an iSCSI storage system on Linux";
|
2010-08-30 10:15:27 +01:00
|
|
|
license = "GPLv2+";
|
2012-02-17 14:32:28 +00:00
|
|
|
homepage = http://iscsitarget.sourceforge.net;
|
2010-08-30 10:15:27 +01:00
|
|
|
};
|
|
|
|
}
|