update flake.nix

This commit is contained in:
2025-03-16 20:04:46 -05:00
parent cec2adec97
commit 659a2690f1
8 changed files with 98 additions and 16073 deletions

View File

@@ -14,7 +14,7 @@
pkgs = import nixpkgs { inherit system; };
in {
Archimedes = pkgs.stdenv.mkDerivation {
Archimedes = pkgs.stdenvNoCC.mkDerivation {
name = "Archimedes";
@@ -22,11 +22,14 @@
#imgui = inputs.imgui;
/*buildInputs = with pkgs; [
];*/
NativeBuildInputs = with pkgs; [
gcc
];
buildPhase = ''
g++ *.cpp -o $name
g++ \
*.cpp \
-o $name
'';
installPhase = ''
@@ -36,17 +39,22 @@
};
TestMenu = pkgs.stdenv.mkDerivation {
TestMenu = pkgs.stdenvNoCC.mkDerivation {
name = "TestMenu";
src = ./.;
/*buildInputs = with pkgs; [
];*/
NativeBuildInputs = with pkgs; [
gcc
];
buildPhase = ''
g++ modules/testMenu/src/*.cpp src/App.cpp -fpic -shared -I src -o $name
g++ \
modules/TestMenu/src/*.cpp src/App.cpp \
-fpic -shared \
-I src \
-o $name
'';
installPhase = ''
@@ -56,17 +64,78 @@
};
Print = pkgs.stdenv.mkDerivation {
Print = pkgs.stdenvNoCC.mkDerivation {
name = "Print";
src = ./.;
/*buildInputs = with pkgs; [
];*/
NativeBuildInputs = with pkgs; [
gcc
];
buildPhase = ''
g++ modules/print/src/*.cpp src/App.cpp -fpic -shared -I src -I include -o $name
g++ \
modules/Print/src/*.cpp src/App.cpp \
-fpic -shared \
-I src -I include \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
Window = pkgs.stdenvNoCC.mkDerivation {
name = "Window";
src = ./.;
NativeBuildInputs = with pkgs; [
gcc
];
buildInputs = with pkgs; [
glfw
];
buildPhase = ''
g++ \
modules/Window/src/*.cpp src/App.cpp \
-fpic -shared \
-I src -I include \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
MainGUI = pkgs.stdenvNoCC.mkDerivation {
name = "MainGUI";
src = ./.;
inherit imgui;
NativeBuildInputs = with pkgs; [
gcc
];
buildPhase = ''
g++ \
modules/MainGUI/src/*.cpp src/App.cpp \
-fpic -shared \
-I src -I include \
-o $name
'';
installPhase = ''