4fa4ab3a6e
First, pass in `self' again so that overriding works properly (thanks for pointing that out, @edolstra) Second, instead of having linuxPackages*.kernel mean something different inside the set and out, add a new attribute linuxPackages*.kernelDev, which for the generic kernel is simply linuxPackages*.kernel but for the manual-config kernel is the `dev' output (which has the build tree, source tree, etc.) The second change required trivial modifications in a bunch of expressions, I verified that all of the linuxPackages* sets defined in all-packages.nix have the same drv paths before and after the change. Signed-off-by: Shea Levy <shea@shealevy.com>
27 lines
738 B
Nix
27 lines
738 B
Nix
{ stdenv, fetchurl, kernelDev, module_init_tools}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "iscsitarget-1.4.20.2-${kernelDev.version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/iscsitarget/iscsitarget/1.4.20.2/${name}.tar.gz";
|
|
sha256 = "126kp0yc7vmvdbaw2xfav89340b0h91dvvyib5qbvyrq40n8wg0g";
|
|
};
|
|
|
|
KSRC = "${kernelDev}/lib/modules/*/build";
|
|
|
|
DESTDIR = "$(out)";
|
|
|
|
preConfigure = ''
|
|
export PATH=$PATH:${module_init_tools}/sbin
|
|
sed -i 's|/usr/|/|' Makefile
|
|
'';
|
|
|
|
buildInputs = [ module_init_tools ];
|
|
|
|
meta = {
|
|
description = "iSCSI Enterprise Target (IET), software for building an iSCSI storage system on Linux";
|
|
license = "GPLv2+";
|
|
homepage = http://iscsitarget.sourceforge.net;
|
|
};
|
|
}
|