Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 755 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 kernel, 6 kernelModuleMakeFlags, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "vhba"; 11 version = "20250329"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/cdemu/vhba-module-${version}.tar.xz"; 15 hash = "sha256-piog1yDd8M/lpTIo9FE9SY2JwurZ6a8LG2lZ/4EmB14="; 16 }; 17 18 makeFlags = kernelModuleMakeFlags ++ [ 19 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 20 "INSTALL_MOD_PATH=$(out)" 21 ]; 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23 24 meta = with lib; { 25 description = "Provides a Virtual (SCSI) HBA"; 26 homepage = "https://cdemu.sourceforge.io/about/vhba/"; 27 platforms = platforms.linux; 28 license = licenses.gpl2Plus; 29 maintainers = with lib.maintainers; [ bendlas ]; 30 }; 31}