# Install smlpkg with Homebrew, MacPorts, Nix

Package manager for Standard ML libraries and programs. Version 0.1.7 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:smlpkg
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install smlpkg
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smlpkg
```

  Evidence: MacPorts ports tree: devel/smlpkg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#smlpkg
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sm/smlpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:smlpkg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/smlpkg>
- **Version:** 0.1.7
- **Source summary:** Package manager for Standard ML libraries and programs
- **Homepage:** <https://github.com/diku-dk/smlpkg>
- **Repository:** <https://github.com/diku-dk/smlpkg>
- **Upstream docs:** <https://github.com/diku-dk/smlpkg#readme>
- **License:** MIT
- **Source archive:** <https://github.com/diku-dk/smlpkg/archive/refs/tags/v0.1.7.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- smlpkg (cli)
- smlpkg (alias)

## Dependencies

- gmp

## Build dependencies

- mlton

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.1.7
- Local data: ok
- Upstream repository: https://github.com/diku-dk/smlpkg
- Upstream latest detected: v0.1.7 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

smlpkg is a generic package manager for Standard ML libraries and programs.

### Project history

The official README says smlpkg assumes nothing about the Standard ML compiler in use and centers package handling around semantic versioning.

The README also says the package manager is almost a complete port of the Futhark package manager, which was designed and implemented in Haskell by Troels Henriksen.

### Adoption history

The official README lists Standard ML package examples across MLKit, MLton, SMLtoJs, and PolyML-oriented workflows.

Input package facts show distribution through Homebrew, MacPorts, and Nix.

### How it is used

`smlpkg add github.com/diku-dk/sml-random` adds a dependency, modifying or creating `sml.pkg`.

`smlpkg sync` populates the `lib` directory from dependencies listed in `sml.pkg`.

### Why package nerds care

smlpkg matters because Standard ML historically lacked a single dominant package-manager workflow; this project gives SML libraries a small semver-based dependency tool.

Its compiler-agnostic stance makes it relevant across MLton, MLKit, SMLtoJs, and related SML ecosystems.

### Timeline

- 2026: Official GitHub releases list v0.1.7 as the latest release dated 2026-01-09.

### Related projects

- Related projects named by the official README include Futhark's package manager, MLton, MLKit, SMLtoJs, GitHub, and GitLab.

### Sources

- <https://github.com/diku-dk/smlpkg#readme>
- source_facts.package-manager


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: sml.pkg
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** smlpkg
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - smlpkg: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smlpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - smlpkg: normalized package name match | MacPorts ports tree: devel/smlpkg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [mlton](https://www.automicvault.com/pkg/brew/mlton/) - Build dependency declared by Homebrew.
- [smlfmt](https://www.automicvault.com/pkg/brew/smlfmt/) - Shares av.db curated category or tags: cli, developer-tools, sml, standard-ml.
- [jsonnet-bundler](https://www.automicvault.com/pkg/brew/jsonnet-bundler/) - Shares av.db curated category or tags: cli, developer-tools, package-manager.
- [luarocks](https://www.automicvault.com/pkg/brew/luarocks/) - Shares av.db curated category or tags: cli, developer-tools, package-manager.
- [rv](https://www.automicvault.com/pkg/brew/rv/) - Shares av.db curated category or tags: cli, developer-tools, package-manager.
- [rye](https://www.automicvault.com/pkg/brew/rye/) - Shares av.db curated category or tags: cli, developer-tools, package-manager.
- [scarb](https://www.automicvault.com/pkg/brew/scarb/) - Shares av.db curated category or tags: cli, developer-tools, package-manager.
- [jsrepo](https://www.automicvault.com/pkg/brew/jsrepo/) - Shares av.db curated category or tags: cli, developer-tools, package-manager.
- [lunarml](https://www.automicvault.com/pkg/brew/lunarml/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gmp, ml.
- [millet](https://www.automicvault.com/pkg/brew/millet/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, ml, sml.

## Combined YAML source

View the package source record on GitHub. [combined/smlpkg.yml](https://github.com/automic-vault/db/blob/main/combined/smlpkg.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
