flake parts

This commit is contained in:
2026-02-14 17:08:36 -06:00
parent f01bd49fb1
commit d6f8036175
17 changed files with 707 additions and 638 deletions

View File

@@ -0,0 +1,34 @@
{ inputs, ... }: {
perSystem = { system, pkgs, self', ... }: {
packages.Print = pkgs.stdenvNoCC.mkDerivation {
name = "Print";
src = inputs.src;
nativeBuildInputs = with pkgs; [
clang
];
buildPhase = ''
clang++ \
modules/Archimedes-Modules/Print/*.cpp \
-fpic -shared \
-I include \
-Wall \
-DPRINT_DYNAMIC \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
};
}