Files
nixpkgs/pkgs/by-name/kv/kvmtool/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.1 KiB
Nix

{
stdenv,
fetchgit,
lib,
dtc,
}:
stdenv.mkDerivation {
pname = "kvmtool";
version = "0-unstable-2024-04-09";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git";
rev = "da4cfc3e540341b84c4bbad705b5a15865bc1f80";
hash = "sha256-05tNsZauOXe1L1y1YchzvLZm3xOctPJhHCjyAyRnwy4=";
};
patches = [ ./strlcpy-glibc-2.38-fix.patch ];
buildInputs = lib.optionals stdenv.hostPlatform.isAarch64 [ dtc ];
enableParallelBuilding = true;
makeFlags = [
"prefix=${placeholder "out"}"
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
"ARCH=${stdenv.hostPlatform.linuxArch}"
]
++ lib.optionals stdenv.hostPlatform.isAarch64 [
"LIBFDT_DIR=${dtc}/lib"
];
meta = with lib; {
description = "Lightweight tool for hosting KVM guests";
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/tree/README";
license = licenses.gpl2Only;
maintainers = with maintainers; [
astro
mfrw
peigongdsd
];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
mainProgram = "lkvm";
};
}