am-kernels/default.nix

38 lines
586 B
Nix
Raw Permalink Normal View History

2024-07-12 08:45:56 +00:00
{ lib,
stdenv,
cmake,
abstract-machine,
arch ? "riscv-nemu"
}:
stdenv.mkDerivation rec {
pname = "am-kernel";
version = "2024-07-10";
src = ./.;
nativeBuildInputs = [
cmake
];
buildInputs = [
abstract-machine
];
cmakeFlags = [
(lib.cmakeFeature "ARCH" arch)
];
cmakeBuildType = "Debug";
2024-07-12 08:45:56 +00:00
dontStrip = true;
doCheck = true;
2024-07-12 08:45:56 +00:00
meta = with lib; {
description = "AbstractMachine kernels";
homepage = "https://github.com/NJU-ProjectN/am-kernels.git";
license = with licenses; [ ];
maintainers = with maintainers; [ ];
};
}