# Nixpkgs Architecture

**URL:** https://discourse.nixos.org/c/dev/nixpkgs/44.md

[Latest](https://discourse.nixos.org/latest.md) · [Categories](https://discourse.nixos.org/categories.md)

---

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

<div class="topic-metadata">

**Author:** [@ryantm](https://discourse.nixos.org/u/ryantm)\
**Replies:** 0

</div>

Discussion about the architecture and design of Nixpkgs

---

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

<div class="topic-metadata">

**Author:** [@Profpatsch](https://discourse.nixos.org/u/Profpatsch)\
**Replies:** 4\
**Last updated:** [November 2, 2026, 12:01am UTC](https://discourse.nixos.org/t/guide-how-to-get-commit-access-to-nixpkgs/19913 "2026-11-02T00:01:01Z")

</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…

---

## [Questions about Tracking issues](https://discourse.nixos.org/t/questions-about-tracking-issues/80708)

<div class="topic-metadata">

**Author:** [@bitbloxhub](https://discourse.nixos.org/u/bitbloxhub)\
**Replies:** 12\
**Last updated:** [October 24, 2026, 7:36pm UTC](https://discourse.nixos.org/t/questions-about-tracking-issues/80708 "2026-10-24T19:36:18Z")

</div>

I’m interested in getting finalAttrs pushed more across nixpkgs, especially in cases like this where it fixes potential AppImage double extraction (thanks @uku3lig!): Unfortunately, it seems like bulk PRs like this are…

---

## [PSA: \`systemd\` is becoming kernel bound](https://discourse.nixos.org/t/psa-systemd-is-becoming-kernel-bound/80676)

<div class="topic-metadata">

**Author:** [@RaitoBezarius](https://discourse.nixos.org/u/RaitoBezarius)\
**Replies:** 15\
**Last updated:** [October 23, 2026, 5:10am UTC](https://discourse.nixos.org/t/psa-systemd-is-becoming-kernel-bound/80676 "2026-10-23T05:10:17Z")

</div>

TL;DR : systemd now ships eBPF programs (nsresourced, mountfsd, networkd helpers). eBPF programs are compiled against the Linux kernel they will run on, specifically kernel’s BTF informations, its vmlinux.h, its exact st…

---

## [Proposition: I think we need DJ to stay pure?](https://discourse.nixos.org/t/proposition-i-think-we-need-dj-to-stay-pure/80381)

<div class="topic-metadata">

**Author:** [@Annetta](https://discourse.nixos.org/u/Annetta)\
**Replies:** 8\
**Last updated:** [October 2, 2026, 12:00am UTC](https://discourse.nixos.org/t/proposition-i-think-we-need-dj-to-stay-pure/80381 "2026-10-02T00:00:24Z")

</div>

Hi :blush: The problem to solve: We need randomness (for example, for key generation), but since it’s fundamentally impure, we handle these tasks “manually”. These impure operations can become tedious and a source of pr…

---

## [Making Nixpkgs less dependent on Bash](https://discourse.nixos.org/t/making-nixpkgs-less-dependent-on-bash/76443)

<div class="topic-metadata">

**Author:** [@anon32574585](https://discourse.nixos.org/u/anon32574585)\
**Replies:** 78\
**Last updated:** [July 30, 2026, 10:04am UTC](https://discourse.nixos.org/t/making-nixpkgs-less-dependent-on-bash/76443 "2026-07-30T10:04:50Z")

</div>

▶ Fair warning I was looking through many different shells recently, and have come to realize that NixOS (or more specifically Nixpkgs) seems to be very reliant on Bash via “bashisms”. Now personally, I don’t have an age…

---

## [Changelog with variables](https://discourse.nixos.org/t/changelog-with-variables/79212)

<div class="topic-metadata">

**Author:** [@arunoruto](https://discourse.nixos.org/u/arunoruto)\
**Replies:** 8\
**Last updated:** [July 29, 2026, 7:56am UTC](https://discourse.nixos.org/t/changelog-with-variables/79212 "2026-07-29T07:56:30Z")

</div>

I was wondering why something like the following meta definition isn’t allowed: meta.changelog = "https://github.com/${finalAttrs.src.owner}/${finalAttrs.src.repo}/releases/tag/${finalAttrs.src.tag}"; This could ev…

---

## [Security fixes should bypass staging — unbound CVE batch as a case study](https://discourse.nixos.org/t/security-fixes-should-bypass-staging-unbound-cve-batch-as-a-case-study/78147)

<div class="topic-metadata">

**Author:** [@w1z4rd](https://discourse.nixos.org/u/w1z4rd)\
**Replies:** 27\
**Last updated:** [July 25, 2026, 4:37pm UTC](https://discourse.nixos.org/t/security-fixes-should-bypass-staging-unbound-cve-batch-as-a-case-study/78147 "2026-07-25T16:37:39Z")

</div>

Three weeks ago, unbound 1.25.1 was released fixing 11 CVEs including a CVSS 10.0 (cache poisoning) and CVSS 9.8 (RCE during DNSSEC validation). The nixpkgs security tracker flagged it within 24 hours. The fix was …

---

## [Remove \_\_allowFileset?](https://discourse.nixos.org/t/remove-allowfileset/78735)

<div class="topic-metadata">

**Author:** [@MrQubo](https://discourse.nixos.org/u/MrQubo)\
**Replies:** 13\
**Last updated:** [July 21, 2026, 3:55pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735 "2026-07-21T15:55:44Z")

</div>

pkgs/top-level/default.nix contains # Temporary hack to let Nixpkgs forbid internal use of \`lib.fileset\` # until \<https://github.com/NixOS/nix/issues/11503\> is fixed. \_\_allowFileset ? true, The issue was fixed 16…

---

## [Are \`lib.platforms\` legacy?](https://discourse.nixos.org/t/are-lib-platforms-legacy/78804)

<div class="topic-metadata">

**Author:** [@ssoss](https://discourse.nixos.org/u/ssoss)\
**Replies:** 2\
**Last updated:** [July 8, 2026, 6:51pm UTC](https://discourse.nixos.org/t/are-lib-platforms-legacy/78804 "2026-07-08T18:51:07Z")

</div>

The lib/meta.nix file has had the following comment for over 8 years: A \`meta.platform\` pattern is either 1. (legacy) a system string. 2. (modern) a pattern for the platform \`parsed\` field. After that period of…

---

## [Re-design \`location.provider\`](https://discourse.nixos.org/t/re-design-location-provider/78751)

<div class="topic-metadata">

**Author:** [@MorningMC](https://discourse.nixos.org/u/MorningMC)\
**Replies:** 1\
**Last updated:** [July 4, 2026, 7:17am UTC](https://discourse.nixos.org/t/re-design-location-provider/78751 "2026-07-04T07:17:07Z")

</div>

Hello everyone, I recently ran into an infinite recursion issue while trying to share my location.\* configuration across multiple machines, and it led me to question the current architectural design of the location.prov…

---

## [Compound licenses](https://discourse.nixos.org/t/compound-licenses/78532)

<div class="topic-metadata">

**Author:** [@ssoss](https://discourse.nixos.org/u/ssoss)\
**Replies:** 16\
**Last updated:** [June 26, 2026, 6:00pm UTC](https://discourse.nixos.org/t/compound-licenses/78532 "2026-06-26T18:00:58Z")

</div>

Right now, many Nixpkgs packages will take a package licensed under Apache-2.0 OR MIT and assign meta.license = with lib.licenses; \[ asl20 mit \]. This is incorrect: the reason that meta.license accepts a list is to ment…

---

## [Shouldn't we put static \`.a\` libraries into \`dev\` instead of \`out\`?](https://discourse.nixos.org/t/shouldnt-we-put-static-a-libraries-into-dev-instead-of-out/74210)

<div class="topic-metadata">

**Author:** [@synalice](https://discourse.nixos.org/u/synalice)\
**Replies:** 7\
**Last updated:** [May 15, 2026, 8:28am UTC](https://discourse.nixos.org/t/shouldnt-we-put-static-a-libraries-into-dev-instead-of-out/74210 "2026-05-15T08:28:03Z")

</div>

I’ve just compiled my own library that installs a .a static library and it went into $out instead of $dev. Is this intentional? I’ve always assumed static libraries are a devel-only artifact.

---

## [Problem evaluating \`gcc\` with \`langRust = true\`](https://discourse.nixos.org/t/problem-evaluating-gcc-with-langrust-true/76877)

<div class="topic-metadata">

**Author:** [@sempiternal-aurora](https://discourse.nixos.org/u/sempiternal-aurora)\
**Replies:** 4\
**Last updated:** [April 8, 2026, 12:07pm UTC](https://discourse.nixos.org/t/problem-evaluating-gcc-with-langrust-true/76877 "2026-04-08T12:07:08Z")

</div>

Hey, I’m working on packaging gccrs and gcobol for nixos, like how gccgo is already packaged. You can see my work in gccrs, gcobol: improve support and package by sempiternal-aurora · Pull Request #507407 · NixOS/nixpkgs…

---

## [Properly dealing with ML / CUDA / Python](https://discourse.nixos.org/t/properly-dealing-with-ml-cuda-python/75847)

<div class="topic-metadata">

**Author:** [@sirati](https://discourse.nixos.org/u/sirati)\
**Replies:** 10\
**Last updated:** [March 5, 2026, 7:48pm UTC](https://discourse.nixos.org/t/properly-dealing-with-ml-cuda-python/75847 "2026-03-05T19:48:01Z")

</div>

The current state of ML on nix and nixOS is an unbearable mess. We really do need to improve on that. I would like to use this topic to discuss solutions for how we should split up ML derivations, so that build servers d…

---

## [Time between / process of qgis 4.0 release and nixpkg inclusion](https://discourse.nixos.org/t/time-between-process-of-qgis-4-0-release-and-nixpkg-inclusion/75865)

<div class="topic-metadata">

**Author:** [@katsboxofhustles](https://discourse.nixos.org/u/katsboxofhustles)\
**Replies:** 1\
**Last updated:** [March 4, 2026, 3:27am UTC](https://discourse.nixos.org/t/time-between-process-of-qgis-4-0-release-and-nixpkg-inclusion/75865 "2026-03-04T03:27:32Z")

</div>

QGIS , a geospatial software , is about to have a major release. https://changelog.qgis.org/en/version/4.0/ I’m new to the nixos discourse, but I subscribe to full time nix podcast , (even if I don’t listen that oft…

---

## [Proposal to have an AI usage policy](https://discourse.nixos.org/t/proposal-to-have-an-ai-usage-policy/75650)

<div class="topic-metadata">

**Author:** [@lisanna](https://discourse.nixos.org/u/lisanna)\
**Replies:** 7\
**Last updated:** [March 1, 2026, 3:22pm UTC](https://discourse.nixos.org/t/proposal-to-have-an-ai-usage-policy/75650 "2026-03-01T15:22:24Z")

</div>

I’ve filed an issue in the Nix repository suggesting that an AI usage policy be adopted: Add AI usage policy to CONTRIBUTING.md · Issue #15340 · NixOS/nix · GitHub, but I think this could also apply to nixpkgs. Wanted to…

---

## [Transparently Supporting PGO/FDO/PLO Optimized Builds](https://discourse.nixos.org/t/transparently-supporting-pgo-fdo-plo-optimized-builds/68420)

<div class="topic-metadata">

**Author:** [@psionik](https://discourse.nixos.org/u/psionik)\
**Replies:** 9\
**Last updated:** [February 10, 2026, 4:15pm UTC](https://discourse.nixos.org/t/transparently-supporting-pgo-fdo-plo-optimized-builds/68420 "2026-02-10T16:15:55Z")

</div>

This thread is early exploration of how to employ heavily optimized binaries that require multi-step workflows while using Nix. Goal Support enabling use of such binaries with a single configuration option on NixOS or o…

---

## [Contributing with 2nix](https://discourse.nixos.org/t/contributing-with-2nix/74722)

<div class="topic-metadata">

**Author:** [@Guilvareux](https://discourse.nixos.org/u/Guilvareux)\
**Replies:** 1\
**Last updated:** [January 26, 2026, 7:27pm UTC](https://discourse.nixos.org/t/contributing-with-2nix/74722 "2026-01-26T19:27:40Z")

</div>

I’m attempting to make my first pull request to nixpkgs: groovy-language-server: init at 0-unstable-2025-12-03 by Guilvareux · Pull Request #483523 · NixOS/nixpkgs · GitHub There’s a gradle project (groovy-language-serv…

---

## [On the difficulty of reliably getting debug info](https://discourse.nixos.org/t/on-the-difficulty-of-reliably-getting-debug-info/74500)

<div class="topic-metadata">

**Author:** [@sliedes](https://discourse.nixos.org/u/sliedes)\
**Replies:** 7\
**Last updated:** [January 23, 2026, 9:44pm UTC](https://discourse.nixos.org/t/on-the-difficulty-of-reliably-getting-debug-info/74500 "2026-01-23T21:44:38Z")

</div>

One thing which is surprisingly hard for me in nixpkgs is reliably getting debug symbols. I’d like to start a discussion on whether this could be improved. First, I’ll explain where the difficulties seem to lie to me as…

---

## [Footgun warning: don't \`set -e\` in an activation script!](https://discourse.nixos.org/t/footgun-warning-dont-set-e-in-an-activation-script/70893)

<div class="topic-metadata">

**Author:** [@PlasmaPower](https://discourse.nixos.org/u/PlasmaPower)\
**Replies:** 2\
**Last updated:** [October 19, 2025, 8:17pm UTC](https://discourse.nixos.org/t/footgun-warning-dont-set-e-in-an-activation-script/70893 "2025-10-19T20:17:43Z")

</div>

I’ve debugged my issue already but I wanted to create this thread to hopefully save others from hours of debugging. Maybe there should be a lint/test/assertion for this in nixpkgs? It all started when I went to install …

---

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

<div class="topic-metadata">

**Author:** [@kleinsamuel](https://discourse.nixos.org/u/kleinsamuel)\
**Replies:** 15\
**Last updated:** [October 13, 2025, 6:37am UTC](https://discourse.nixos.org/t/why-is-there-only-one-version-in-nixpkgs/47773 "2025-10-13T06:37:10Z")

</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…

---

## [Getting notified when merged PRs reach nixos-unstable](https://discourse.nixos.org/t/getting-notified-when-merged-prs-reach-nixos-unstable/70088)

<div class="topic-metadata">

**Author:** [@aciceri](https://discourse.nixos.org/u/aciceri)\
**Replies:** 2\
**Last updated:** [September 30, 2025, 2:29pm UTC](https://discourse.nixos.org/t/getting-notified-when-merged-prs-reach-nixos-unstable/70088 "2025-09-30T14:29:41Z")

</div>

Just thinking out loud, I usually just keep checking https://nixpk.gs manually. Is there a tool or service for this that I’m not aware of? Do you think it would be a good idea to have some automation that comments on PR…

---

## [Optimizing patchShebangs (and other stdenv phases/hooks)](https://discourse.nixos.org/t/optimizing-patchshebangs-and-other-stdenv-phases-hooks/69468)

<div class="topic-metadata">

**Author:** [@jeff-hykin](https://discourse.nixos.org/u/jeff-hykin)\
**Replies:** 1\
**Last updated:** [September 17, 2025, 6:17pm UTC](https://discourse.nixos.org/t/optimizing-patchshebangs-and-other-stdenv-phases-hooks/69468 "2025-09-17T18:17:03Z")

</div>

Quick disclaimer: Yes, swapping a POSIX function with a compiled binary has a lot of complications This discussion maybe already happened, but I can’t find it if it did. I was digging through the internals of mkDeriva…

---

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

<div class="topic-metadata">

**Author:** [@thtrf](https://discourse.nixos.org/u/thtrf)\
**Replies:** 2\
**Last updated:** [September 5, 2025, 12:46am UTC](https://discourse.nixos.org/t/declare-zed-extensions-in-nixpkgs/64752 "2025-09-05T00:46:01Z")

</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…

---

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

<div class="topic-metadata">

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

</div>

---

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

<div class="topic-metadata">

**Author:** [@Ericson2314](https://discourse.nixos.org/u/Ericson2314)\
**Replies:** 5\
**Last updated:** [July 22, 2025, 6:24pm UTC](https://discourse.nixos.org/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.nixos.org/t/lameenc-packaging-python-bindings-for-nixpkgs/64232)

<div class="topic-metadata">

**Author:** [@agvantibo](https://discourse.nixos.org/u/agvantibo)\
**Replies:** 1\
**Last updated:** [May 31, 2025, 7:11am UTC](https://discourse.nixos.org/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…

---

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

<div class="topic-metadata">

**Author:** [@Infinisil](https://discourse.nixos.org/u/Infinisil)\
**Replies:** 21\
**Last updated:** [May 16, 2025, 12:49pm UTC](https://discourse.nixos.org/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.nixos.org/t/buildfhsenv-overriding/56457)

<div class="topic-metadata">

**Author:** [@zimward](https://discourse.nixos.org/u/zimward)\
**Replies:** 12\
**Last updated:** [April 30, 2025, 10:52pm UTC](https://discourse.nixos.org/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…

[Next page](https://discourse.nixos.org/c/dev/nixpkgs/44.md?page=1)
