2013-03-24 11:45:00 +00:00
|
|
|
{ stdenv, fetchurl, kernelDev}:
|
2010-08-30 09:40:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-24 11:45:00 +00:00
|
|
|
name = "open-iscsi-2.0-871-${kernelDev.version}";
|
2012-02-17 14:32:28 +00:00
|
|
|
|
2010-08-30 09:40:44 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.open-iscsi.org/bits/${name}.tar.gz";
|
|
|
|
sha256 = "1jvx1agybaj4czhz41bz37as076spicsmlh5pjksvwl2mr38gsmw";
|
|
|
|
};
|
|
|
|
|
2013-03-24 11:45:00 +00:00
|
|
|
KSRC = "${kernelDev}/lib/modules/*/build";
|
2012-02-17 14:32:28 +00:00
|
|
|
DESTDIR = "$(out)";
|
2010-08-30 09:40:44 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's|/usr/|/|' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [./kernel.patch];
|
|
|
|
|
|
|
|
meta = {
|
2012-02-17 14:32:28 +00:00
|
|
|
description = "A high performance, transport independent, multi-platform implementation of RFC3720";
|
2010-08-30 09:40:44 +00:00
|
|
|
license = "GPLv2+";
|
2012-02-17 14:32:28 +00:00
|
|
|
homepage = http://www.open-iscsi.org;
|
2010-08-30 09:40:44 +00:00
|
|
|
};
|
|
|
|
}
|