mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
36 lines
960 B
Nix
36 lines
960 B
Nix
{ stdenv, lib, fetchFromGitHub, vdo, kernel }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
inherit (vdo);
|
|
pname = "kvdo";
|
|
version = "8.2.3.3"; # bump this version with vdo
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dm-vdo";
|
|
repo = "kvdo";
|
|
rev = version;
|
|
hash = "sha256-y7uVgWFV6uWRoRqfiu0arG9731mgWijXjcp9KSaZ5X0=";
|
|
};
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
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 = "Pair of kernel modules which provide pools of deduplicated and/or compressed block storage";
|
|
platforms = platforms.linux;
|
|
broken = kernel.kernelOlder "5.17";
|
|
};
|
|
}
|