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