{ inputs = { nixpkgs.url = "github:nixos/nixpkgs"; utils.url = "github:numtide/flake-utils"; naersk.url = "github:nix-community/naersk"; }; outputs = { self, nixpkgs, utils, naersk, }: utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; naersk-lib = naersk.lib."${system}"; in rec { packages.apod = naersk-lib.buildPackage { pname = "apod"; root = ./.; buildInputs = with pkgs; [openssl pkg-config]; }; packages.default = packages.apod; apps.apod = utils.lib.mkApp { drv = packages.apod; }; apps.default = apps.apod; devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ openssl pkg-config rustc cargo cargo-audit rustfmt clippy ]; }; formatter = pkgs.alejandra; }); }