add DependsOnPrint
This commit is contained in:
26
flake.nix
26
flake.nix
@@ -95,6 +95,32 @@
|
||||
|
||||
};
|
||||
|
||||
DependsOnPrint = pkgs.stdenvNoCC.mkDerivation {
|
||||
|
||||
name = "DependsOnPrint";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
g++ \
|
||||
modules/DependsOnPrint/src/*.cpp src/App.cpp \
|
||||
-fpic -shared \
|
||||
-I src -I include \
|
||||
-Wall \
|
||||
-o $name
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $name $out/bin
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
Window = pkgs.stdenvNoCC.mkDerivation {
|
||||
|
||||
name = "Window";
|
||||
|
||||
Reference in New Issue
Block a user