14

cross-posted from: https://programming.dev/post/45148310

Supac - a declarative package manager written in Rust, scriptable in nushell

Supac is a declarative package manager written in Rust fully scriptable in nushell. It's meant to make it easy to use the native package managers in existing distros without going through the associated headaches of using Nix, while maintaining the ergonomics of structured data in nushell.

Currently supported backends are:

  • Archlinux and derivatives
  • flatpak
  • cargo/cargo-binstall
  • uvx (packages only for now)
  • rustup toolchains

I daily drive it, and it works well. Feel free to give it a try!

you are viewing a single comment's thread
view the rest of the comments
[-] innocentz3r0@programming.dev 2 points 2 days ago

Right now, you can do it in two ways:

  • Don't have the Arch key at all. supac will silently skip it.
  • You can write a small wrapper in package.nu that checks the presence of your preferred arch package manager in $env.PATH, if it's there then it'll insert the key and value, and not otherwise.

I'd mostly go with 1 unless you're sharing your non-arch config with an arch config on two separate machines.

this post was submitted on 04 Feb 2026
14 points (93.8% liked)

Linux

12090 readers
428 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS