2016-04-30 18:28:11 +00:00
|
|
|
{ stdenv, fetchFromGitHub, automake, autoconf, libtool, gettext, utillinux, openisns, openssl, kmod }:
|
2016-04-24 12:37:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "open-iscsi-${version}";
|
|
|
|
version = "2.0-873-${stdenv.lib.substring 0 7 src.rev}";
|
2015-10-21 03:58:33 +00:00
|
|
|
|
2016-04-30 18:28:11 +00:00
|
|
|
buildInputs = [ automake autoconf libtool gettext utillinux openisns.lib openssl kmod ];
|
2012-02-17 14:32:28 +00:00
|
|
|
|
2016-04-24 12:37:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "open-iscsi";
|
|
|
|
repo = "open-iscsi";
|
|
|
|
rev = "4c1f2d90ef1c73e33d9f1e4ae9c206ffe015a8f9";
|
|
|
|
sha256 = "0h030zk4zih3l8z5662b3kcifdxlakbwwkz1afb7yf0cicds7va8";
|
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
|
|
|
|
2016-04-24 12:52:13 +00:00
|
|
|
NIX_LDFLAGS = "-lkmod";
|
|
|
|
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
|
|
|
|
|
2010-08-30 09:40:44 +00:00
|
|
|
preConfigure = ''
|
2016-04-30 18:28:11 +00:00
|
|
|
sed -i 's|/usr|/|' Makefile
|
2010-08-30 09:40:44 +00:00
|
|
|
'';
|
|
|
|
|
2015-10-21 03:58:33 +00:00
|
|
|
postInstall = ''
|
2016-04-30 18:28:11 +00:00
|
|
|
cp usr/iscsistart $out/sbin/
|
|
|
|
$out/sbin/iscsistart -v
|
2015-10-21 03:58:33 +00:00
|
|
|
'';
|
|
|
|
|
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;
|
2016-04-24 12:37:38 +00:00
|
|
|
homepage = http://www.open-iscsi.com;
|
2016-02-29 16:37:20 +00:00
|
|
|
platforms = platforms.linux;
|
2016-04-30 18:28:11 +00:00
|
|
|
maintainers = with maintainers; [ cleverca22 ];
|
2010-08-30 09:40:44 +00:00
|
|
|
};
|
|
|
|
}
|