diff --git a/flake.nix b/flake.nix index e8daec7..ce455db 100755 --- a/flake.nix +++ b/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";