A Nix flake that packages the Modal CLI — serverless AI and cloud infrastructure — from the upstream PyPI wheel.
modal is a pure-Python (py3-none-any) application, so this flake builds
identically on Linux and macOS for both x86-64 and aarch64.
Run the CLI directly without installing:
nix run github:OpenStaticFish/modal-flake -- --helpCheck the installed version:
nix run github:OpenStaticFish/modal-flake -- --versionInstall into your Nix profile:
nix profile install github:OpenStaticFish/modal-flake
modal --helpUse in a NixOS config:
{inputs.modal-flake.url="github:OpenStaticFish/modal-flake";outputs={nixpkgs,modal-flake, ... }:
letsystem="x86_64-linux";in{nixosConfigurations.my-host=nixpkgs.lib.nixosSystem{inheritsystem;modules=[{environment.systemPackages=[modal-flake.packages.${system}.default];}];};};}Use in Home Manager:
{inputs,pkgs, ... }:
{home.packages=[inputs.modal-flake.packages.${pkgs.system}.default];}nix build .#modal
./result/bin/modal --helppackages.${system}.modal/packages.${system}.default— themodalCLI.formatter.${system}—nixpkgs-fmt.
Supported systems: x86_64-linux, aarch64-linux, aarch64-darwin,
x86_64-darwin.
The packaged modal client is licensed under Apache-2.0 by Modal Labs. This
packaging flake is likewise distributed under Apache-2.0.