open-iscsi: Use kmod so that iscsiadm loads the tcp transport modules.
This commit is contained in:
parent
e091d27944
commit
32d6f7c114
@ -1,10 +1,10 @@
|
||||
{ stdenv, fetchFromGitHub, nukeReferences, automake, autoconf, libtool, gettext, utillinux, openisns, openssl }:
|
||||
{ stdenv, fetchFromGitHub, nukeReferences, automake, autoconf, libtool, gettext, utillinux, openisns, openssl, kmod }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "open-iscsi-${version}";
|
||||
version = "2.0-873-${stdenv.lib.substring 0 7 src.rev}";
|
||||
outputs = [ "out" "iscsistart" ];
|
||||
|
||||
buildInputs = [ nukeReferences automake autoconf libtool gettext utillinux openisns.lib openssl ];
|
||||
buildInputs = [ nukeReferences automake autoconf libtool gettext utillinux openisns.lib openssl kmod ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-iscsi";
|
||||
@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
DESTDIR = "$(out)";
|
||||
|
||||
NIX_LDFLAGS = "-lkmod";
|
||||
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's|/usr/|/|' Makefile
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user