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";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "20210418";
|
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";
|
|
|
|
sha256 = "119zgav6caialmf3hr096wkf72l9h76sqc9w5dhx26kj4yp85g8q";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" "INSTALL_MOD_PATH=$(out)" ];
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|