mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
38 lines
993 B
Nix
38 lines
993 B
Nix
{ stdenv, fetchurl, kernel }:
|
|
|
|
let
|
|
srcs = import ./srcs.nix { inherit fetchurl; };
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "fusionio-iomemory-vsl-${srcs.version}";
|
|
|
|
src = srcs.vsl;
|
|
|
|
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;
|
|
description = "Kernel driver for accessing fusion-io cards";
|
|
license = licenses.unfree;
|
|
platforms = [ "x86_64-linux" ];
|
|
broken = stdenv.system != "x86_64-linux";
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|