As you may know there is no native way to know which nixpkgs commit should I install in order to have older versions of a package. This is because nix-env -qa usually offers 1 version (the latest). More about it here
So I think it would be awesome to embed into nox <query> the Nixpkgs Database so users can find all versions associated to a package and then add it to their projects easily, for instance $ nox nox can display information similar to this: https://kamadorueda.github.io/nixpkgs-db/#/pkg/nox (or display into console the data). The experience is up to us, please see below.
What I imagine is the best user experience possible is:
$ nox awscli
4 matching packages found:
0. awscli
1. awscli2
2. python27Packages.awscli
3. ....
Which package do you want to inspect? Please type the number
> 0
Available versions:
0. 1.9.6
1. 1.9.12
2. 1.7.47
3. ....
Which version do you want to install? Please type the number
> 1
Installing awscli @ 1.9.12
Done!
As you may know there is no native way to know which nixpkgs commit should I install in order to have older versions of a package. This is because nix-env -qa usually offers 1 version (the latest). More about it here
So I think it would be awesome to embed into
nox <query>
the Nixpkgs Database so users can find all versions associated to a package and then add it to their projects easily, for instance$ nox nox
can display information similar to this: https://kamadorueda.github.io/nixpkgs-db/#/pkg/nox (or display into console the data). The experience is up to us, please see below.What I imagine is the best user experience possible is:
Let me know your thoughts !