Due to how flox packages work, there are 3 stabilities. But what if I want to install really old package that is not in there? Is there an option to subscribe to nixpkgs?
There is a community tool to find which nixpkgs hash has which package version but it’s something I would like to avoid using as it’s not a way I want to work with it
Yes you should still be able to install older packages using an inline declaration ( we are making progress on allowing this from the CLI in the future though ).
So lets say you used a search tool like the one you linked to find an old release of terraform at 1.0.7.
$ flox edit -e my-env;
# Write your inline package like this.
# Replace that `rev' with whatever you'd like.
{
inline.packages.terraform = { system, ... }: let
nixpkgs = builtins.getFlake
"github:NixOS/nixpkgs/f8f124009497b3f9908f395d2533a990feee1de8";
in nixpkgs.legacyPackages.${system}.terraform;
}
This does not work, Nix tried to download https://api.github.com/repos/NixOS/nixpkgs/commits/79b3d4bcae8c7007c9fd51c279a8a67acfa73a2a/79b3d4bcae8c7007c9fd51c279a8a67acfa73a2a for some reason
This is true, this conversation was referring to an older version.
Right now Flox has a built in search catalog based on Nixpkgs 23.11 (you can read a bit about it here What is the Flox Catalog? - Flox Docs ). This means only the later versions of software are available (and not 5.7 that you are looking for)
We’re aware that this isn’t a great experience (people need specific versions of things!) and we are currently in the process of exposing multiple versions/revisions of Nixpkgs to Flox and broadening the amount of software that is available so you could flox show mysql and get a large list of versions hopefully inclusive of the version you’re targeting.