# Installing Go package

**URL:** <https://discourse.flox.dev/t/installing-go-package/969>\
**Category:** Developing with flox\
**Created:** [September 6, 2024, 8:26pm UTC](https://discourse.flox.dev/t/installing-go-package/969 "2024-09-06T20:26:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhirn](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mhirn](https://discourse.flox.dev/u/mhirn)\
**Post date:** [September 6, 2024, 8:26pm UTC](https://discourse.flox.dev/t/installing-go-package/969/1 "2024-09-06T20:26:32Z")

</div>

Hey - I’m trying to setup our monorepo environment, we depend on this go package ([GitHub - grafana/cuetsy: Experimental CUE-\>TypeScript exporter](https://github.com/grafana/cuetsy)) 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

---

<div class="post-metadata">

**Author:** ![ghudgins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/ghudgins/32/588_2.png) [@ghudgins](https://discourse.flox.dev/u/ghudgins)\
**Post date:** [September 6, 2024, 9:34pm UTC](https://discourse.flox.dev/t/installing-go-package/969/2 "2024-09-06T21:34:58Z")

</div>

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](https://flox.dev/docs/reference/command-reference/manifest.toml/#flake-descriptors) instead of a package from the Flox catalog.

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

---

<div class="post-metadata">

**Author:** ![bryanhonof](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/bryanhonof/32/696_2.png) [@bryanhonof](https://discourse.flox.dev/u/bryanhonof)\
**Post date:** [September 7, 2024, 12:36am UTC](https://discourse.flox.dev/t/installing-go-package/969/3 "2024-09-07T00:36:56Z")

</div>

Hey Michael,

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

```console
$ 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. 😁

I also [opened a PR against nixpkgs](https://github.com/NixOS/nixpkgs/pull/340223), 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.

---

<div class="post-metadata">

**Author:** ![mhirn](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mhirn](https://discourse.flox.dev/u/mhirn)\
**Post date:** [September 7, 2024, 6:49pm UTC](https://discourse.flox.dev/t/installing-go-package/969/4 "2024-09-07T18:49:24Z")

</div>

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.

```auto
❯ 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.

---

<div class="post-metadata">

**Author:** ![ghudgins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/ghudgins/32/588_2.png) [@ghudgins](https://discourse.flox.dev/u/ghudgins)\
**Post date:** [September 12, 2024, 8:14pm UTC](https://discourse.flox.dev/t/installing-go-package/969/5 "2024-09-12T20:14:27Z")

</div>

just following up, this is now in Flox!

```auto
flox search cuetsy
cuetsy Experimental CUE->TypeScript exporter

```
