# Install package from nix-env / flake / overlay

**URL:** <https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679>\
**Category:** Uncategorized\
**Created:** [March 5, 2023, 10:44am UTC](https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679 "2023-03-05T10:44:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fleimgruber](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/fleimgruber/32/400_2.png) [@fleimgruber](https://discourse.flox.dev/u/fleimgruber)\
**Post date:** [March 5, 2023, 10:44am UTC](https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679/1 "2023-03-05T10:44:27Z")

</div>

First off, I read and relate very much to [Alternative to .config/nixpkgs/config.nix:packageOverrides - #3 by limeytexan](https://discourse.flox.dev/t/alternative-to-config-nixpkgs-config-nix-packageoverrides/450/3).

I stumbled on this when following the install instructions here (to the user profile): [GitHub - guibou/nixGL: A wrapper tool for nix OpenGL application](https://github.com/guibou/nixGL#nix-channel-recommended).

Now my question is to how to make this and similar packages ready for flox. I am eyeballing [Build and develop custom packages | flox:docs](https://floxdev.com/docs/custom-packages/), but wanted to get some insight from the community for the specific nixGL package as well as ideas on these situations in general.

---

<div class="post-metadata">

**Author:** ![tomberek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/tomberek/32/83_2.png) [@tomberek](https://discourse.flox.dev/u/tomberek)\
**Post date:** [March 6, 2023, 3:33pm UTC](https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679/2 "2023-03-06T15:33:45Z")

</div>

Installing things from arbitrary flakes into an environment is possible with this:

```auto
flox install github:guibou/nixGL#nixGLDefault

```

or add this to your declarative config:

```auto
packages."github:guibou/nixGL".nixGLDefault = {};

```

---

<div class="post-metadata">

**Author:** ![robinbrantley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/robinbrantley/32/39_2.png) [@robinbrantley](https://discourse.flox.dev/u/robinbrantley)\
**Post date:** [March 9, 2023, 11:30am UTC](https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679/3 "2023-03-09T11:30:27Z")

</div>

Hi @fleimgruber - Did @tomberek’s update address your query or do you need a bit more help to get moving forward?

---

<div class="post-metadata">

**Author:** ![fleimgruber](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/fleimgruber/32/400_2.png) [@fleimgruber](https://discourse.flox.dev/u/fleimgruber)\
**Post date:** [March 9, 2023, 6:55pm UTC](https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679/4 "2023-03-09T18:55:33Z")

</div>

Thanks, that worked!

---

<div class="post-metadata">

**Author:** ![fleimgruber](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/fleimgruber/32/400_2.png) [@fleimgruber](https://discourse.flox.dev/u/fleimgruber)\
**Post date:** [March 9, 2023, 6:56pm UTC](https://discourse.flox.dev/t/install-package-from-nix-env-flake-overlay/679/5 "2023-03-09T18:56:16Z")

</div>

@robinbrantley thanks for checking back!
