2015-10-21 03:58:33 +00:00
|
|
|
{ stdenv, fetchurl, nukeReferences }:
|
2014-01-05 01:57:21 +00:00
|
|
|
let
|
2015-09-23 10:03:42 +00:00
|
|
|
pname = "open-iscsi-2.0-873";
|
2014-01-05 01:57:21 +00:00
|
|
|
in stdenv.mkDerivation {
|
2015-09-23 10:03:42 +00:00
|
|
|
name = "${pname}";
|
2015-10-21 03:58:33 +00:00
|
|
|
outputs = [ "out" "iscsistart" ];
|
|
|
|
|
|
|
|
buildInputs = [ nukeReferences ];
|
2012-02-17 14:32:28 +00:00
|
|
|
|
2010-08-30 09:40:44 +00:00
|
|
|
src = fetchurl {
|
2014-01-05 01:57:21 +00:00
|
|
|
url = "http://www.open-iscsi.org/bits/${pname}.tar.gz";
|
2015-09-23 10:03:42 +00:00
|
|
|
sha256 = "1nbwmj48xzy45h52917jbvyqpsfg9zm49nm8941mc5x4gpwz5nbx";
|
2010-08-30 09:40:44 +00:00
|
|
|
};
|
|
|
|
|
2012-02-17 14:32:28 +00:00
|
|
|
DESTDIR = "$(out)";
|
2010-08-30 09:40:44 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's|/usr/|/|' Makefile
|
|
|
|
'';
|
|
|
|
|
2015-10-21 03:58:33 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $iscsistart/bin/
|
|
|
|
cp -v usr/iscsistart $iscsistart/bin/
|
|
|
|
nuke-refs $iscsistart/bin/iscsistart
|
|
|
|
'';
|
|
|
|
|
2010-08-30 09:40:44 +00:00
|
|
|
meta = {
|
2012-02-17 14:32:28 +00:00
|
|
|
description = "A high performance, transport independent, multi-platform implementation of RFC3720";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-02-17 14:32:28 +00:00
|
|
|
homepage = http://www.open-iscsi.org;
|
2010-08-30 09:40:44 +00:00
|
|
|
};
|
|
|
|
}
|