2022-04-15 01:41:22 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, vdo, kernel }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (vdo) version;
|
|
|
|
pname = "kvdo";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dm-vdo";
|
|
|
|
repo = "kvdo";
|
|
|
|
rev = version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-4FYTFUIvGjea3bh2GbQYG7hSswVDdNS3S+jWQ9+inpg=";
|
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)"
|
|
|
|
'';
|
|
|
|
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;
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = kernel.kernelOlder "5.15" || kernel.kernelAtLeast "5.17";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|