2018-11-19 12:34:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub, automake, autoconf, libtool, gettext
|
|
|
|
, utillinux, openisns, openssl, kmod, perl, systemd, pkgconf
|
|
|
|
}:
|
|
|
|
|
2016-04-24 13:37:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "open-iscsi-${version}";
|
2018-11-19 12:34:30 +00:00
|
|
|
version = "2.0.877";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake gettext libtool perl pkgconf ];
|
|
|
|
buildInputs = [ kmod openisns.lib openssl systemd utillinux ];
|
2015-10-21 04:58:33 +01:00
|
|
|
|
2016-04-24 13:37:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "open-iscsi";
|
|
|
|
repo = "open-iscsi";
|
2018-11-19 12:34:30 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0v3dsrl34pdx0yl5jsanrpgg3vw466rl8k81hkshgq3a5mq5qhf6";
|
2010-08-30 10:40:44 +01:00
|
|
|
};
|
2018-11-19 12:34:30 +00:00
|
|
|
|
2012-02-17 14:32:28 +00:00
|
|
|
DESTDIR = "$(out)";
|
2018-11-19 12:34:30 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lkmod -lsystemd";
|
2016-04-24 13:52:13 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
|
|
|
|
|
2010-08-30 10:40:44 +01:00
|
|
|
preConfigure = ''
|
2016-04-30 19:28:11 +01:00
|
|
|
sed -i 's|/usr|/|' Makefile
|
2010-08-30 10:40:44 +01:00
|
|
|
'';
|
2018-11-19 12:34:30 +00:00
|
|
|
|
2015-10-21 04:58:33 +01:00
|
|
|
postInstall = ''
|
2016-04-30 19:28:11 +01:00
|
|
|
cp usr/iscsistart $out/sbin/
|
|
|
|
$out/sbin/iscsistart -v
|
2015-10-21 04:58:33 +01: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";
|
2018-11-19 12:34:30 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = https://www.open-iscsi.com;
|
2016-02-29 16:37:20 +00:00
|
|
|
platforms = platforms.linux;
|
2018-11-19 12:34:30 +00:00
|
|
|
maintainers = with maintainers; [ cleverca22 zaninime ];
|
2010-08-30 10:40:44 +01:00
|
|
|
};
|
|
|
|
}
|