chore: create package for nix
This commit is contained in:
parent
5228b6117d
commit
4d41ff63eb
4 changed files with 22 additions and 0 deletions
|
@ -4,5 +4,7 @@ project(difftest)
|
|||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
include_directories(include)
|
||||
add_subdirectory(src)
|
||||
|
|
17
default.nix
Normal file
17
default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, cmake
|
||||
, mini-gdbstub
|
||||
, cli11
|
||||
}: stdenv.mkDerivation {
|
||||
pname = "diffu";
|
||||
version = "0.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
mini-gdbstub
|
||||
cli11
|
||||
];
|
||||
}
|
|
@ -49,6 +49,7 @@
|
|||
mini-gdbstub
|
||||
];
|
||||
};
|
||||
packages.default = pkgs.callPackage ./default.nix { };
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
add_executable(diffu cli.cpp difftest.cpp gdbstub.cpp loader.cpp main.cpp)
|
||||
target_link_libraries(diffu PRIVATE gdbstub)
|
||||
install ( TARGETS diffu )
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue