2015-04-27 22:58:34 +00:00
|
|
|
{ stdenv, fetchurl, kernel }:
|
|
|
|
|
2015-04-28 00:24:33 +00:00
|
|
|
let
|
|
|
|
srcs = import ./srcs.nix { inherit fetchurl; };
|
|
|
|
in
|
2015-04-27 22:58:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-04-28 00:24:33 +00:00
|
|
|
name = "fusionio-iomemory-vsl-${srcs.version}";
|
2015-04-27 22:58:34 +00:00
|
|
|
|
2015-04-28 00:24:33 +00:00
|
|
|
src = srcs.vsl;
|
2015-04-27 22:58:34 +00:00
|
|
|
|
2016-08-13 14:54:58 +00:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2015-04-27 22:58:34 +00:00
|
|
|
prePatch = ''
|
|
|
|
cd root/usr/src/iomemory-vsl-*
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = stdenv.lib.optional (stdenv.lib.versionAtLeast kernel.version "3.19") ./vsl-fix-file-inode.patch;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i Makefile kfio_config.sh \
|
|
|
|
-e "s,\(KERNELDIR=\"\|KERNEL_SRC =\)[^\"]*,\1${kernel.dev}/lib/modules/${kernel.modDirVersion}/build,g"
|
|
|
|
export DKMS_KERNEL_VERSION=${kernel.modDirVersion}
|
|
|
|
export TARGET="x86_64_cc48"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
export INSTALL_ROOT=$out
|
|
|
|
make modules_install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://fusionio.com;
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Kernel driver for accessing fusion-io cards";
|
2015-04-27 22:58:34 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-08-20 19:11:29 +00:00
|
|
|
broken = stdenv.hostPlatform.system != "x86_64-linux";
|
2015-04-27 22:58:34 +00:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|