Skip to content

OpenStaticFish/modal-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modal-flake

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.

Usage

Run the CLI directly without installing:

nix run github:OpenStaticFish/modal-flake -- --help

Check the installed version:

nix run github:OpenStaticFish/modal-flake -- --version

Install into your Nix profile:

nix profile install github:OpenStaticFish/modal-flake
modal --help

Use in a NixOS config:

{
  inputs.modal-flake.url = "github:OpenStaticFish/modal-flake";

  outputs = { nixpkgs, modal-flake, ... }:
    let
      system = "x86_64-linux";
    in
    {
      nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
        inherit system;
        modules = [
          {
            environment.systemPackages = [
              modal-flake.packages.${system}.default
            ];
          }
        ];
      };
    };
}

Use in Home Manager:

{ inputs, pkgs, ... }:

{
  home.packages = [
    inputs.modal-flake.packages.${pkgs.system}.default
  ];
}

Build

nix build .#modal
./result/bin/modal --help

Flake outputs

  • packages.${system}.modal / packages.${system}.default — the modal CLI.
  • formatter.${system}nixpkgs-fmt.

Supported systems: x86_64-linux, aarch64-linux, aarch64-darwin, x86_64-darwin.

License

The packaged modal client is licensed under Apache-2.0 by Modal Labs. This packaging flake is likewise distributed under Apache-2.0.

About

Modal CLI — serverless AI and cloud infrastructure

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages