2022-04-15 01:41:22 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, vdo, kernel }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit (vdo);
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "kvdo";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "8.2.1.6"; # bump this version with vdo
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dm-vdo";
|
|
|
|
repo = "kvdo";
|
|
|
|
rev = version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-S5r2Rgx5pWk4IsdIwmfZkuGL/oEQ3prquyVqxjR3cO0=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
KSRC = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = placeholder "out";
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags="$makeFlags -C ${KSRC} M=$(pwd)"
|
2023-05-24 13:37:59 +00:00
|
|
|
'';
|
2022-04-15 01:41:22 +00:00
|
|
|
installTargets = [ "modules_install" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
inherit (vdo.meta) license maintainers;
|
|
|
|
homepage = "https://github.com/dm-vdo/kvdo";
|
|
|
|
description = "A pair of kernel modules which provide pools of deduplicated and/or compressed block storage";
|
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
broken = kernel.kernelOlder "5.15";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|