mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
1.1 KiB
Nix
36 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";
|
|
};
|
|
}
|