portsage 0.1.0

A TUI tool to monitor processes and their listening ports
Documentation
{
  description = "🔍 PortSage - TUI to monitor processes and their open ports";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

  outputs =
    { self, nixpkgs }:
    let
      systems = [
        "x86_64-linux"
        "aarch64-linux"
        "x86_64-darwin"
        "aarch64-darwin"
      ];
    in
    {
      packages = builtins.foldl' (
        acc: system:
        let
          pkgs = import nixpkgs { inherit system; };
        in
        acc
        // {
          ${system} = pkgs.rustPlatform.buildRustPackage {
            pname = "portsage";
            version = "0.1.0";
            src = ./.;
            cargoLock = {
              lockFile = ./Cargo.lock;
            };
          };
        }
      ) { } systems;

      defaultPackage = {
        x86_64-linux = self.packages.x86_64-linux;
        aarch64-linux = self.packages.aarch64-linux;
        x86_64-darwin = self.packages.x86_64-darwin;
        aarch64-darwin = self.packages.aarch64-darwin;
      };

      defaultApp = {
        x86_64-linux = {
          type = "app";
          program = "${self.packages.x86_64-linux}/bin/portsage";
        };
        aarch64-linux = {
          type = "app";
          program = "${self.packages.aarch64-linux}/bin/portsage";
        };
        x86_64-darwin = {
          type = "app";
          program = "${self.packages.x86_64-darwin}/bin/portsage";
        };
        aarch64-darwin = {
          type = "app";
          program = "${self.packages.aarch64-darwin}/bin/portsage";
        };
      };
    };
}