From 25f786043a8a411e8d4b795bf161f91b6485893b Mon Sep 17 00:00:00 2001 From: Andrew Haynes Date: Thu, 26 Mar 2026 11:32:09 -0400 Subject: [PATCH] REMOVING NIX --- .envrc | 1 - flake.nix | 46 ---------------------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 .envrc delete mode 100644 flake.nix diff --git a/.envrc b/.envrc deleted file mode 100644 index 1d953f4..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use nix diff --git a/flake.nix b/flake.nix deleted file mode 100644 index d51b55e..0000000 --- a/flake.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; - - outputs = { - self, - nixpkgs, - }: let - system = "aarch64-darwin"; - pkgs = nixpkgs.legacyPackages.${system}; - in { - packages.${system}.default = pkgs.stdenv.mkDerivation { - name = "image_processor"; - src = ./.; - - # Add pkg-config here so CMake can find it during the build - nativeBuildInputs = [ - pkgs.cmake - pkgs.pkg-config - ]; - - buildInputs = [pkgs.libjpeg_turbo]; - - # Nix's default CMake phase will run, but we need to ensure - # the library actually gets installed to the nix store output - installPhase = '' - mkdir -p $out/lib $out/include - - # Copy the library (looks like your build made a static lib 'libPROCESSOR.a') - cp libPROCESSOR.a $out/lib/ - - # Copy headers safely. - # If your headers are in a subfolder, change './*.h' to './src/*.h' etc. - # The '|| true' ensures the build doesn't crash if no headers are found. - cp *.h $out/include/ || cp src/*.h $out/include/ || true - - echo "✅ Installed libPROCESSOR.a and headers to $out" - ''; - }; - - devShells.${system}.default = pkgs.mkShell { - # This makes sure the shell also has the tools for manual debugging - nativeBuildInputs = [pkgs.pkg-config pkgs.cmake]; - buildInputs = [pkgs.libjpeg_turbo]; - }; - }; -}