nixpkgs-suyu/pkgs/os-specific/linux/kvdo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
824 B
Nix
Raw Normal View History

2022-01-14 05:15:03 +01:00
{ stdenv, lib, fetchFromGitHub, vdo, kernel }:
stdenv.mkDerivation rec {
inherit (vdo) version;
pname = "kvdo";
src = fetchFromGitHub {
owner = "dm-vdo";
repo = "kvdo";
rev = version;
2022-02-13 15:29:24 +01:00
sha256 = "1xl7dwcqx00w1gbpb6vlkn8nchyfj1fsc8c06vgda0sgxp7qs5gn";
2022-01-14 05:15:03 +01: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;
};
}