Installing Go package

Hey - I’m trying to setup our monorepo environment, we depend on this go package (GitHub - grafana/cuetsy: Experimental CUE->TypeScript exporter) and I can’t find it via flox search cuetsy --all. The docs said I should reach out here in that case. Could you help us get cuetsy installed in our environment?

Thanks,
Michael

Hey Michael,

Thanks for reaching out. If you don’t find something in Flox the best thing to do is to use Flox to provide OS packages (like glibc, etc) and the package manager of choice (go and its tooling) and then rely on go for your go dependencies.

if you wanted to continue down this path you’d have to write a Nix flake for the missing packages and use flox install to install a Flake reference instead of a package from the Flox catalog.

…we’re also working on features that will make getting packages into Flox much easier!

Hey Michael,

I went ahead and packaged it in a Nix Flake so you’d be able to get unblocked on this.

$ flox install github:bryanhonof/cuetsy-flake
✅ 'cuetsy-flake' installed to environment 'tmp.cJjt8gbtxT'
$ flox activate
✅ You are now using the environment 'tmp.cJjt8gbtxT'.
To stop using this environment, type 'exit'

flox [tmp.cJjt8gbtxT] $ cuetsy --help
NAME:
   cuetsy - Converting CUE objects to their TypeScript equivalent.

USAGE:
   cuetsy [global options] command [command options] [arguments...]

...

Would you mind giving that a shot, and letting me know if it works as expected?
I’m quite unfamiliar with this tool myself. :grin:

I also opened a PR against nixpkgs, once that’s merged, it’ll show up in the catalog within a few days.
Once in the catalog, you can stop using the temporary flake solution listed above.

2 Likes

Hi @bryanhonof - thanks for packaging it up and sharing it.

I tried to follow your steps above, but receive the following non-descript error when I try to install it.

❯ flox install github:bryanhonof/cuetsy-flake
❌ ERROR: Failed to build package 'cuetsy-flake': error: 1 dependencies of derivation '/nix/store/vlq31ijc6sf6aaic96sxhmlclgbcgyn8-cuetsy-0.1.11.drv' failed to build

UPDATE: the error disappeared after I made sure there is enough disk space and I uninstalled the go layer.

just following up, this is now in Flox!

flox search cuetsy
cuetsy  Experimental CUE->TypeScript exporter