2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, kernel }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vhba";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "20211218";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-09-18 10:52:07 +00:00
|
|
|
url = "mirror://sourceforge/cdemu/vhba-module-${version}.tar.xz";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-csWowcRSgF5M74yv787MLSXOGXrkxnODCCgC5a3Nd7Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
makeFlags = kernel.makeFlags ++ [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" "INSTALL_MOD_PATH=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Provides a Virtual (SCSI) HBA";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://cdemu.sourceforge.io/about/vhba/";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = with lib.maintainers; [ bendlas ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|