# Derivation that builds standard Linux binaries?

**URL:** https://discourse.nixos.org/t/derivation-that-builds-standard-linux-binaries/21557
**Category:** Help
**Created:** [September 9, 2022, 4:07am UTC](https://discourse.nixos.org/t/derivation-that-builds-standard-linux-binaries/21557 "2022-09-09T04:07:51Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![ElvishJerricco](https://discourse.nixos.org/user_avatar/discourse.nixos.org/elvishjerricco/32/984_2.png) [@ElvishJerricco](https://discourse.nixos.org/u/ElvishJerricco)
#### Post date: [September 10, 2022, 12:19am UTC](https://discourse.nixos.org/t/derivation-that-builds-standard-linux-binaries/21557/6 "2022-09-10T00:19:25Z")

</div>

To that end, I have this… silly thing, which may be helpful: [Comparing NixOS:master...ElvishJerricco:run-in-fhs · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/compare/master...ElvishJerricco:nixpkgs:run-in-fhs)

Basically, it takes a derivation and builds it in an FHS user env instead (i.e. you only need it if that derivation wouldn’t have successfully built normally). You still likely have to throw out… most of nixpkgs. But in theory you could build up a package ecosystem where all of them run in an FHS env like this and all of them rely on FHS stuff.

---

_[View the full topic](https://discourse.nixos.org/t/derivation-that-builds-standard-linux-binaries/21557)._
