build: nix package
This commit is contained in:
parent
9d41ac2f7b
commit
02b38e7b44
1 changed files with 35 additions and 0 deletions
35
default.nix
Normal file
35
default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ 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 = "RelWithDebInfo";
|
||||
dontStrip = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "AbstractMachine kernels";
|
||||
homepage = "https://github.com/NJU-ProjectN/am-kernels.git";
|
||||
license = with licenses; [ ];
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue