make entryPoint a header

This commit is contained in:
2025-03-29 15:37:27 -05:00
parent 0d61a369fc
commit db9b8cc924
8 changed files with 40 additions and 29 deletions

View File

@@ -18,32 +18,38 @@
pkgs = import nixpkgs { inherit system; };
in {
Archimedes = pkgs.stdenvNoCC.mkDerivation {
Archimedes = {
examples = {
minimal = pkgs.stdenvNoCC.mkDerivation {
name = "Archimedes";
name = "Archimedes";
src = ./.;
src = ./.;
nativeBuildInputs = with pkgs; [
clang
];
nativeBuildInputs = with pkgs; [
clang
];
/*buildInputs = with pkgs; [
];*/
/*buildInputs = with pkgs; [
];*/
buildPhase = ''
clang++ \
src/*.cpp \
-I src -I include \
-Wall \
-o $name
'';
buildPhase = ''
clang++ \
src/*.cpp \
example_apps/MinimalApp/MinimalApp.cpp \
include/utils/App/*.cpp \
-I src -I include \
-Wall \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
};
};
TestMenu = pkgs.stdenvNoCC.mkDerivation {
@@ -85,10 +91,11 @@
buildPhase = ''
clang++ \
modules/Print/src/*.cpp \
utils/App/App.cpp \
include/utils/App/App.cpp \
-fpic -shared \
-I src -I include \
-Wall \
-DGUIMODULE_H \
-o $name
'';