# Nixpkgs Architecture

**URL:** https://discourse.nixosstag.fcio.net/c/dev/nixpkgs/44.md

[Latest](https://discourse.nixosstag.fcio.net/latest.md) · [Categories](https://discourse.nixosstag.fcio.net/categories.md)

---

## [About the Nixpkgs Architecture category](https://discourse.nixosstag.fcio.net/t/about-the-nixpkgs-architecture-category/20207)

<div class="topic-metadata">

**Author:** [@ryantm](https://discourse.nixosstag.fcio.net/u/ryantm)\
**Replies:** 0

</div>

Discussion about the architecture and design of Nixpkgs

---

## [Guide: How to get commit access to nixpkgs](https://discourse.nixosstag.fcio.net/t/guide-how-to-get-commit-access-to-nixpkgs/19913)

<div class="topic-metadata">

**Author:** [@Profpatsch](https://discourse.nixosstag.fcio.net/u/Profpatsch)\
**Replies:** 3\
**Last updated:** [April 17, 2025, 9:38am UTC](https://discourse.nixosstag.fcio.net/t/guide-how-to-get-commit-access-to-nixpkgs/19913 "2025-04-17T09:38:14Z")

</div>

Introduce yourself (or someone you deem should have commit access) on this Github Issue: https://github.com/NixOS/nixpkgs/issues/50105 If you are a known face to other contributors, they will upvote your nomination and…

---

## [Flake: split into multiple files using module system](https://discourse.nixosstag.fcio.net/t/flake-split-into-multiple-files-using-module-system/67612)

<div class="topic-metadata">

**Author:** [@mightyiam](https://discourse.nixosstag.fcio.net/u/mightyiam)\
**Replies:** 0\
**Last updated:** [August 5, 2025, 1:54pm UTC](https://discourse.nixosstag.fcio.net/t/flake-split-into-multiple-files-using-module-system/67612 "2025-08-05T13:54:17Z")

</div>

---

## [Blog post: Compiler Bootstrapping in Nixpkgs](https://discourse.nixosstag.fcio.net/t/blog-post-compiler-bootstrapping-in-nixpkgs/66791)

<div class="topic-metadata">

**Author:** [@Ericson2314](https://discourse.nixosstag.fcio.net/u/Ericson2314)\
**Replies:** 5\
**Last updated:** [July 22, 2025, 6:24pm UTC](https://discourse.nixosstag.fcio.net/t/blog-post-compiler-bootstrapping-in-nixpkgs/66791 "2025-07-22T18:24:55Z")

</div>

To celebrate getting rid of libCross (libcCross: Remove! by Ericson2314 · Pull Request #414321 · NixOS/nixpkgs · GitHub and treewide: Leverage new top-level \`libc\` in bootstrap, and simplify by Ericson2314 · Pull Requ…

---

## [Lameenc — packaging Python bindings for nixpkgs](https://discourse.nixosstag.fcio.net/t/lameenc-packaging-python-bindings-for-nixpkgs/64232)

<div class="topic-metadata">

**Author:** [@agvantibo](https://discourse.nixosstag.fcio.net/u/agvantibo)\
**Replies:** 1\
**Last updated:** [May 31, 2025, 7:11am UTC](https://discourse.nixosstag.fcio.net/t/lameenc-packaging-python-bindings-for-nixpkgs/64232 "2025-05-31T07:11:44Z")

</div>

I am trying to package the LAME encoding bindings for Python, lameenc. I’ve read the Nixpkgs manual section on Python and have written a derivation that evaluates (when added to pkgs/top-level/python-packages.nix) succes…

---

## [Declare Zed Extensions in Nixpkgs](https://discourse.nixosstag.fcio.net/t/declare-zed-extensions-in-nixpkgs/64752)

<div class="topic-metadata">

**Author:** [@thtrf](https://discourse.nixosstag.fcio.net/u/thtrf)\
**Replies:** 1\
**Last updated:** [May 25, 2025, 5:19pm UTC](https://discourse.nixosstag.fcio.net/t/declare-zed-extensions-in-nixpkgs/64752 "2025-05-25T17:19:08Z")

</div>

VSCode extensions can be declared declaratively via vscode-with-extensions, providing reproducible and consistent setups. Zed also supports extensions, and as its usage grows, it might make sense to support a similar de…

---

## [Working group member search: Module system for packages](https://discourse.nixosstag.fcio.net/t/working-group-member-search-module-system-for-packages/26574)

<div class="topic-metadata">

**Author:** [@Infinisil](https://discourse.nixosstag.fcio.net/u/Infinisil)\
**Replies:** 21\
**Last updated:** [May 16, 2025, 12:49pm UTC](https://discourse.nixosstag.fcio.net/t/working-group-member-search-module-system-for-packages/26574 "2025-05-16T12:49:30Z")

</div>

After the RFC to simplify the package structure, the Nixpkgs Architecture Team is now assembling a working group (WG) to investigate the potential of using a module system for packages in Nixpkgs (see below sections for …

---

## [buildFHSEnv overriding](https://discourse.nixosstag.fcio.net/t/buildfhsenv-overriding/56457)

<div class="topic-metadata">

**Author:** [@zimward](https://discourse.nixosstag.fcio.net/u/zimward)\
**Replies:** 12\
**Last updated:** [April 30, 2025, 10:52pm UTC](https://discourse.nixosstag.fcio.net/t/buildfhsenv-overriding/56457 "2025-04-30T22:52:35Z")

</div>

I noticed that there currently seems to be no way to override inputs to buildFHSEnv as it isn’t wrapped with lib.makeOverrideable and overrideAttrs is also not functional to pass a modified targetPkgs for example. Is th…

---

## [Another implementation of mapAttrsToList](https://discourse.nixosstag.fcio.net/t/another-implementation-of-mapattrstolist/63628)

<div class="topic-metadata">

**Author:** [@ccicnce113424](https://discourse.nixosstag.fcio.net/u/ccicnce113424)\
**Replies:** 5\
**Last updated:** [April 29, 2025, 4:31pm UTC](https://discourse.nixosstag.fcio.net/t/another-implementation-of-mapattrstolist/63628 "2025-04-29T16:31:46Z")

</div>

In nixpkgs, mapAttrsToList is implemented as follows: f: attrs: map (name: f name attrs.${name}) (attrNames attrs) Here is another implementation:: f: attrs: attrValues (mapAttrs (name: value: f name value) attrs) Th…

---

## [Lessons for a Nixpkgs reimplementation](https://discourse.nixosstag.fcio.net/t/lessons-for-a-nixpkgs-reimplementation/57063)

<div class="topic-metadata">

**Author:** [@johnbchron](https://discourse.nixosstag.fcio.net/u/johnbchron)\
**Replies:** 9\
**Last updated:** [April 22, 2025, 11:50am UTC](https://discourse.nixosstag.fcio.net/t/lessons-for-a-nixpkgs-reimplementation/57063 "2025-04-22T11:50:14Z")

</div>

I’m considering a complete reimplementation of nixpkgs. Following are some issues I’ve identified with nixpkgs. Note: I’m not complaining; I’m very grateful for nixpkgs. I just want to improve some things. stdenv cruft…

---

## [Why does \`nixpkgs.config\` exist?](https://discourse.nixosstag.fcio.net/t/why-does-nixpkgs-config-exist/61456)

<div class="topic-metadata">

**Author:** [@sliedes](https://discourse.nixosstag.fcio.net/u/sliedes)\
**Replies:** 7\
**Last updated:** [March 11, 2025, 5:12pm UTC](https://discourse.nixosstag.fcio.net/t/why-does-nixpkgs-config-exist/61456 "2025-03-11T17:12:49Z")

</div>

We have some configuration options under nixpkgs.config that seem different from options in the config hierarchy. What I gather is that they can be set on nixpkgs before pkgs exist, so I’d assume they’re something needed…

---

## [Any interest in separating out \`nixpkgs\`' \`lib\` into its own repo & flake?](https://discourse.nixosstag.fcio.net/t/any-interest-in-separating-out-nixpkgs-lib-into-its-own-repo-flake/39374)

<div class="topic-metadata">

**Author:** [@mindtree](https://discourse.nixosstag.fcio.net/u/mindtree)\
**Replies:** 7\
**Last updated:** [February 13, 2025, 10:26pm UTC](https://discourse.nixosstag.fcio.net/t/any-interest-in-separating-out-nixpkgs-lib-into-its-own-repo-flake/39374 "2025-02-13T22:26:52Z")

</div>

Often when creating flakes for new Nix tools or building blocks, I find myself wanting various basic functions for working with lists, strings, and so on. As a result, I add the entirety of nixpkgs as a flake input just…

---

## [Including SDL2.dev in build environment](https://discourse.nixosstag.fcio.net/t/including-sdl2-dev-in-build-environment/60165)

<div class="topic-metadata">

**Author:** [@Maskawanian](https://discourse.nixosstag.fcio.net/u/Maskawanian)\
**Replies:** 2\
**Last updated:** [February 12, 2025, 1:13am UTC](https://discourse.nixosstag.fcio.net/t/including-sdl2-dev-in-build-environment/60165 "2025-02-12T01:13:35Z")

</div>

Hi there! I’m trying to update the nixpkg for basiliskii to the latest version, and I’m getting stuck with dependencies. The configure script needs access to sdl2-config which is located in SDL2 (or SDL2.dev I believe)…

---

## [What's the status of the single package fixpoint proposal?](https://discourse.nixosstag.fcio.net/t/whats-the-status-of-the-single-package-fixpoint-proposal/58692)

<div class="topic-metadata">

**Author:** [@WeetHet](https://discourse.nixosstag.fcio.net/u/WeetHet)\
**Replies:** 5\
**Last updated:** [January 14, 2025, 8:12am UTC](https://discourse.nixosstag.fcio.net/t/whats-the-status-of-the-single-package-fixpoint-proposal/58692 "2025-01-14T08:12:00Z")

</div>

I… don’t like the current situation with mkDerivation. While it might be okay for packaging stuff in nixpkgs, overriding is super inconsistent, and while RFC 92 doesn’t seem to be moving anywhere, dynamic derivations ARE…

---

## [A (sad?) state of Nixpkgs](https://discourse.nixosstag.fcio.net/t/a-sad-state-of-nixpkgs/49397)

<div class="topic-metadata">

**Author:** [@SirGarry](https://discourse.nixosstag.fcio.net/u/SirGarry)\
**Replies:** 20\
**Last updated:** [December 15, 2024, 7:41am UTC](https://discourse.nixosstag.fcio.net/t/a-sad-state-of-nixpkgs/49397 "2024-12-15T07:41:17Z")

</div>

:wave: Hello fellow Nix users! I’m starting this conversation to better understand the state of nixpkgs and the way the community as a whole approaches the project. Just to be clear - I love what Nix ecosystem has to o…

---

## [The future of \`writers\`, \`writeTextFile\`-based build helpers, and and their \`checkPhase\`](https://discourse.nixosstag.fcio.net/t/the-future-of-writers-writetextfile-based-build-helpers-and-and-their-checkphase/54372)

<div class="topic-metadata">

**Author:** [@shamrocklee](https://discourse.nixosstag.fcio.net/u/shamrocklee)\
**Replies:** 7\
**Last updated:** [December 12, 2024, 2:46am UTC](https://discourse.nixosstag.fcio.net/t/the-future-of-writers-writetextfile-based-build-helpers-and-and-their-checkphase/54372 "2024-12-12T02:46:11Z")

</div>

Summary We currently have three groups of build helpers that create a text file or a compiled binary from a given set of Nix strings. This topic aims to describe the current situation and the problem around the checkPhas…

---

## [Is it possible for us to remove builtins.functionArgs?](https://discourse.nixosstag.fcio.net/t/is-it-possible-for-us-to-remove-builtins-functionargs/51960)

<div class="topic-metadata">

**Author:** [@luochen1990](https://discourse.nixosstag.fcio.net/u/luochen1990)\
**Replies:** 5\
**Last updated:** [November 10, 2024, 9:54pm UTC](https://discourse.nixosstag.fcio.net/t/is-it-possible-for-us-to-remove-builtins-functionargs/51960 "2024-11-10T21:54:00Z")

</div>

The drawback of builtins.functionArgs is that when we write {lib, pkgs, ...}@args: { x = args.x}, if the function is called by callPackage or a similar mechanism that uses builtins.functionArgs, we actually cannot retrie…

---

## [Why is there only one version in nixpkgs?](https://discourse.nixosstag.fcio.net/t/why-is-there-only-one-version-in-nixpkgs/47773)

<div class="topic-metadata">

**Author:** [@kleinsamuel](https://discourse.nixosstag.fcio.net/u/kleinsamuel)\
**Replies:** 10\
**Last updated:** [November 5, 2024, 9:28pm UTC](https://discourse.nixosstag.fcio.net/t/why-is-there-only-one-version-in-nixpkgs/47773 "2024-11-05T21:28:48Z")

</div>

The nixpkgs are managed via the nixpkgs github repo which contains only a specific version for each program. For example when I want to install the Ultimaker Cura program, I install it by adding “cura” to the list of in…

---

## [Figma Agent Service](https://discourse.nixosstag.fcio.net/t/figma-agent-service/55499)

<div class="topic-metadata">

**Author:** [@NathanRHD](https://discourse.nixosstag.fcio.net/u/NathanRHD)\
**Replies:** 2\
**Last updated:** [November 5, 2024, 10:36am UTC](https://discourse.nixosstag.fcio.net/t/figma-agent-service/55499 "2024-11-05T10:36:29Z")

</div>

Hello! I am using the figma-agent package by installing it in my config.nix systemPkgs I think I’d quite like the agent to run on startup, in the background, to restart on error, etc. Does this qualify as a service? I…

---

## [Tagging / categorising nixpkgs?](https://discourse.nixosstag.fcio.net/t/tagging-categorising-nixpkgs/55396)

<div class="topic-metadata">

**Author:** [@bmillwood](https://discourse.nixosstag.fcio.net/u/bmillwood)\
**Replies:** 17\
**Last updated:** [November 3, 2024, 3:02pm UTC](https://discourse.nixosstag.fcio.net/t/tagging-categorising-nixpkgs/55396 "2024-11-03T15:02:18Z")

</div>

I’ve been told this has been discussed before, but I haven’t found the discussion yet. Once upon a time, I went browsing for games that had been packaged for NixOS, by looking in nixpkgs/pkgs/games. With the advent of p…

---

## [Call for Discussion: why and how much should we care about the \`.override\` interfaces? (Part I: Duckstation and PCSX2)](https://discourse.nixosstag.fcio.net/t/call-for-discussion-why-and-how-much-should-we-care-about-the-override-interfaces-part-i-duckstation-and-pcsx2/45117)

<div class="topic-metadata">

**Author:** [@AndersonTorres](https://discourse.nixosstag.fcio.net/u/AndersonTorres)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 3:52pm UTC](https://discourse.nixosstag.fcio.net/t/call-for-discussion-why-and-how-much-should-we-care-about-the-override-interfaces-part-i-duckstation-and-pcsx2/45117 "2024-10-24T15:52:21Z")

</div>

From time to time I refactor the expressions in Nixpkgs, whether mine or someone else’s. The reasons are multiple: cosmetic formatting finalAttrs design pattern removing or banishing bad language constructs suc…

---

## [RFC: Make cc-wrapper warn on -O2 added if -O0, -Og or no optimization option on command line](https://discourse.nixosstag.fcio.net/t/rfc-make-cc-wrapper-warn-on-o2-added-if-o0-og-or-no-optimization-option-on-command-line/54488)

<div class="topic-metadata">

**Author:** [@sliedes](https://discourse.nixosstag.fcio.net/u/sliedes)\
**Replies:** 0\
**Last updated:** [October 17, 2024, 4:21pm UTC](https://discourse.nixosstag.fcio.net/t/rfc-make-cc-wrapper-warn-on-o2-added-if-o0-og-or-no-optimization-option-on-command-line/54488 "2024-10-17T16:21:43Z")

</div>

I’ve told the issue of cc-wrapper adding -O2 due to fortifying silently has been brought up before, with the result of “we can’t think of a better way”. To recap, even if I build a package in “debug mode” (i.e. CMake’s C…

---

## [Box86/Box64 as part of binfmt](https://discourse.nixosstag.fcio.net/t/box86-box64-as-part-of-binfmt/52498)

<div class="topic-metadata">

**Author:** [@imadnyc](https://discourse.nixosstag.fcio.net/u/imadnyc)\
**Replies:** 2\
**Last updated:** [September 24, 2024, 9:35am UTC](https://discourse.nixosstag.fcio.net/t/box86-box64-as-part-of-binfmt/52498 "2024-09-24T09:35:15Z")

</div>

Hey, Currently binfmt runs everything in a qemu container – should we allow for a new flag/option to allow for box86 and 64 emulation for arm devices as well? AFAICT this is the only tool that allows for Linux ↔ Linux t…

---

## [Help me understand two load-bearing \`assert\` statements](https://discourse.nixosstag.fcio.net/t/help-me-understand-two-load-bearing-assert-statements/51420)

<div class="topic-metadata">

**Author:** [@PhilipTaron](https://discourse.nixosstag.fcio.net/u/PhilipTaron)\
**Replies:** 6\
**Last updated:** [September 7, 2024, 4:02pm UTC](https://discourse.nixosstag.fcio.net/t/help-me-understand-two-load-bearing-assert-statements/51420 "2024-09-07T16:02:23Z")

</div>

In all-packages.nix, there are as of this morning only two two assert statements, and they both appear to be “load-bearing” in the sense that if the asserts are removed, packages which used to compile no longer do. One …

---

## [Cross compilation in Nixpkgs help](https://discourse.nixosstag.fcio.net/t/cross-compilation-in-nixpkgs-help/37668)

<div class="topic-metadata">

**Author:** [@axelkar](https://discourse.nixosstag.fcio.net/u/axelkar)\
**Replies:** 4\
**Last updated:** [September 1, 2024, 10:58am UTC](https://discourse.nixosstag.fcio.net/t/cross-compilation-in-nixpkgs-help/37668 "2024-09-01T10:58:44Z")

</div>

Is there a way to have same derivation hashes for the same application built for the same host system which are known to build exactly the same application but built on different systems if the derivation is not a FOD? W…

---

## [Inclusion of device firmwares in Nixpkgs](https://discourse.nixosstag.fcio.net/t/inclusion-of-device-firmwares-in-nixpkgs/50980)

<div class="topic-metadata">

**Author:** [@imadnyc](https://discourse.nixosstag.fcio.net/u/imadnyc)\
**Replies:** 7\
**Last updated:** [August 22, 2024, 9:30pm UTC](https://discourse.nixosstag.fcio.net/t/inclusion-of-device-firmwares-in-nixpkgs/50980 "2024-08-22T21:30:55Z")

</div>

Me, @jleightcap, @RCoeurjoly, @kiike, and @amerinor01 worked on reviving the firmware for the nitrokey family as part of Summer of Nix (cc: @fricklerhandwerk). Right now the work has bitrotted in this repo, and would ben…

---

## [Frustrations about splicing](https://discourse.nixosstag.fcio.net/t/frustrations-about-splicing/49607)

<div class="topic-metadata">

**Author:** [@AndersonTorres](https://discourse.nixosstag.fcio.net/u/AndersonTorres)\
**Replies:** 36\
**Last updated:** [July 29, 2024, 8:15pm UTC](https://discourse.nixosstag.fcio.net/t/frustrations-about-splicing/49607 "2024-07-29T20:15:56Z")

</div>

I made splicing (nativeDrv and crossDrv are older, but were done differently). Splicing is bad. I never wanted it. I causes major headaches when getting anywhere near bootstrapping. It is gross. It is probably slow. …

---

## [Why is Emacs Lisp framework updates taking so long to reach -unstable?](https://discourse.nixosstag.fcio.net/t/why-is-emacs-lisp-framework-updates-taking-so-long-to-reach-unstable/47416)

<div class="topic-metadata">

**Author:** [@AndersonTorres](https://discourse.nixosstag.fcio.net/u/AndersonTorres)\
**Replies:** 16\
**Last updated:** [July 5, 2024, 12:38pm UTC](https://discourse.nixosstag.fcio.net/t/why-is-emacs-lisp-framework-updates-taking-so-long-to-reach-unstable/47416 "2024-07-05T12:38:08Z")

</div>

As the title says. The Emacs Lisp framework received an update that allows a better user experience to create new expressions: I want to rewrite some packages using that new framework. However it is taking a whole m…

---

## [Future design of hardening flags](https://discourse.nixosstag.fcio.net/t/future-design-of-hardening-flags/38826)

<div class="topic-metadata">

**Author:** [@ris](https://discourse.nixosstag.fcio.net/u/ris)\
**Replies:** 5\
**Last updated:** [July 2, 2024, 10:53pm UTC](https://discourse.nixosstag.fcio.net/t/future-design-of-hardening-flags/38826 "2024-07-02T22:53:54Z")

</div>

Up until now, hardening flags (as understood by hardeningEnable, hardeningDisable et al.) have been fairly architecture/processor neutral. On the horizon are a number of new compiler hardening options that are backed by…

---

## [Elixir rustler integration in nixpkgs](https://discourse.nixosstag.fcio.net/t/elixir-rustler-integration-in-nixpkgs/48254)

<div class="topic-metadata">

**Author:** [@xanderio](https://discourse.nixosstag.fcio.net/u/xanderio)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 8:18pm UTC](https://discourse.nixosstag.fcio.net/t/elixir-rustler-integration-in-nixpkgs/48254 "2024-07-01T20:18:07Z")

</div>

Hey, i’m currently trying to upgrade plausible to 2.1.x, but I’m facing a major hurdle rustler. Rustler is an elixir/rust package that enables elixir developer to easily integrate with a rust package. However there is c…

[Next page](https://discourse.nixosstag.fcio.net/c/dev/nixpkgs/44.md?page=1)
