summary refs log tree commit diff
path: root/pkgs/os-specific/linux/open-iscsi/default.nix
blob: 80703990778487b75ce168d7d243bea6cd43e10d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, kernel}:

stdenv.mkDerivation rec {
  name = "open-iscsi-2.0-871";
  src = fetchurl {
    url = "http://www.open-iscsi.org/bits/${name}.tar.gz";
    sha256 = "1jvx1agybaj4czhz41bz37as076spicsmlh5pjksvwl2mr38gsmw";
  };
  
  KSRC = "${kernel}/lib/modules/*/build";
  DESTDIR="$(out)";
  
  preConfigure = ''
    sed -i 's|/usr/|/|' Makefile
  '';
  
  patches = [./kernel.patch];
  
  meta = {
    description = "Open-iSCSI project is a high performance, transport independent, multi-platform implementation of RFC3720.";
    license = "GPLv2+";
    homepage = http://www.open-iscsi.org ;
  };
}