nixpkgs/pkgs/by-name
2023-10-25 08:49:01 +02:00
..
_4/_4th
_9/_9base
a4/a4
aa/aarch64-esr-decoder
ac/action-validator action-validator: init at 0.5.3 2023-10-10 14:35:02 +01:00
af/afterstep
ai/airscan
al algol68g: 3.3.24 -> 3.4.2 2023-10-16 01:36:00 -03:00
ao/aocl-utils
ar arxiv-latex-cleaner: init at v1.0.1 2023-10-10 13:50:57 -07:00
as
aw/aws-azure-login
ba Merge pull request #260560 from xrelkd/update/bat 2023-10-12 03:13:49 -05:00
be bemoji: init at 0.3.0 2023-10-18 19:28:55 +02:00
bi Merge pull request #259645 from otavio/bb-lsp 2023-10-11 16:46:11 +01:00
bm/bmake
bo boogie: 3.0.4 -> 3.0.5 2023-10-11 12:37:10 +00:00
br/bruno
ca
cb/cbmbasic cbmbasic: init at unstable-2022-12-18 2023-10-16 06:17:35 +02:00
cd cdk: 5.0-20221025 -> 5.0-20230201 2023-10-09 23:50:05 -03:00
ce/celluloid
ci cimg: 3.2.6 -> 3.3.1 2023-10-09 19:01:25 -03:00
cl Merge pull request #258967 from sagikazarmark/add-clarity-city 2023-10-13 00:24:48 +02:00
cn/cntb
co codespelunker: migrate to by-name 2023-10-17 15:12:36 +11:00
cp/cpu-x cpu-x: migrate to by-name 2023-10-17 14:59:10 +11:00
cr/create-react-app treewide: remove myself (ma27) from a few packages 2023-10-18 15:47:20 -03:00
ct/ctx
cy/cyme cyme: add darwin support 2023-10-25 08:49:01 +02:00
de/debianutils
di/dialog dialog: migrate to by-name 2023-10-10 17:51:30 -03:00
dj/djent
dm/dmenu-bluetooth
do doublecmd: 1.1.2 -> 1.1.3 2023-10-15 10:40:17 -03:00
dx dxvk: migrate to by-name 2023-10-08 16:10:33 -04:00
dy/dyalog
ec ecc: init at 1.0.11 2023-10-08 22:36:08 +08:00
ek/eksctl
el/elvish
en/engage
es/esbuild-config
eu/eudev eudev: refactor 2023-10-09 00:46:25 -03:00
ez/eza eza: 0.14.2 -> 0.15.0 2023-10-19 16:09:43 +02:00
fl/fleng
fm/fm-tune fm-tune: migrate to by-name 2023-10-17 15:10:39 +11:00
fo/fortune-kind fortune-kind: 0.1.4 -> 0.1.5 2023-10-19 15:58:57 +02:00
fr/freecell-solver freecell-solver: 4.18.0 -> 6.8.0 2023-10-14 23:08:29 -03:00
ga gash-utils: use generic wrapping 2023-10-11 18:30:32 +02:00
gb/gbar
ge Merge pull request #260642 from Madouura/pr/geticons 2023-10-20 13:08:45 +02:00
gh
gi git-get: init at 0.5.0 2023-10-16 12:04:32 -06:00
gm/gmic gmic: 3.2.6 -> 3.3.1 2023-10-09 19:01:25 -03:00
go go-camo: migrate to by-name 2023-10-17 14:56:01 +11:00
gr/grimblast
gu guile-quickcheck: set strictDeps 2023-10-15 00:17:55 +02:00
ha haunt: migrate to by-name 2023-10-11 23:42:04 -03:00
he headphones-toolbox: 0.0.4 -> 0.0.5 2023-10-18 10:17:54 -04:00
hy
i3/i3bar-river
ic/icewm icewm: 3.4.2 -> 3.4.3 2023-10-09 09:43:07 -03:00
if/ifrextractor-rs
im immersed-vr: init at 9.6 2023-10-12 15:29:17 +09:00
in
ir/ironbar
ji/jinja2-cli
ju/justbuild
ka/katriawm
ke/kermit-terminal kermit-terminal: update 2023-10-11 23:42:04 -03:00
km/kmsvnc kmsvnc: init at 0.0.5 2023-10-19 10:03:51 -04:00
ko/kokkos kokkos: init at 4.1.00 2023-10-16 08:34:02 -05:00
kt/ktfmt
ku/kubectl-neat
la/labwc
le Merge pull request #257784 from tricktron/fix-lemminx-on-x86_64-linux 2023-10-12 18:08:12 +02:00
li Merge pull request #260524 from DamienCassou/lint-staged 2023-10-18 19:29:31 +02:00
lu/luastatus
lx/lxd-to-incus
ma matrix-commander-rs: 0.1.32 -> 0.3.0 2023-10-15 13:56:56 +00:00
me/mermaid-cli
mf/mfoc-hardnested
mi Merge pull request #261705 from gepbird/minecraftia-init 2023-10-18 21:12:49 +02:00
mk/mksh
ml/mlx42
mo/modern-cpp-kafka modern-cpp-kafka: init at 2023.03.07 2023-10-15 23:29:27 +02:00
n2/n2 n2: init at unstable-2023-10-10 2023-10-18 12:45:52 +02:00
na/nawk
ne netclient: init at 0.21.0 2023-10-09 15:58:01 +02:00
nf/nfft
ni nickel: migrate to by-name 2023-10-11 22:20:32 -03:00
nl/nls nls: delete Cargo.lock 2023-10-11 22:20:32 -03:00
no/notion
ns/nsxiv nsxiv: 31 -> 32 2023-10-12 01:30:41 -03:00
nu/nuget
oc/octorpki octorpki: vendorSha256 -> vendorHash 2023-10-19 02:41:38 +02:00
oe/oelint-adv
op/openpgl openpgl: Fix aarch64 compilation 2023-10-13 16:06:42 -07:00
or/orchard orchard: 0.13.1 -> 0.14.1 2023-10-12 06:51:23 +00:00
ou/outputcheck
pa/passes
pd/pdepend
pe
pg/pgmoneta pgmoneta: init at 0.7.0 2023-10-14 04:20:00 +00:00
ph/phpdocumentor
pi Merge pull request #258928 from psibi/pid1-rs 2023-10-18 11:21:37 -04:00
pl/platformsh
po/poethepoet poethepoet: 0.24.0 -> 0.24.1 2023-10-08 14:14:24 -04:00
pp/ppsspp ppsspp: 1.16.5 -> 1.16.6 2023-10-13 12:31:01 -03:00
pr presenterm: init at 0.2.0 2023-10-18 23:28:18 +02:00
px/pxder
py/pyp pyp: migrate to by-name 2023-10-11 23:42:04 -03:00
qu quicksand: init at 2.0-unstable-2021-01-15 2023-10-18 12:49:51 +02:00
ra raft-cowsql: 0.17.3 -> 0.17.7 2023-10-16 20:34:49 +00:00
rc/rc
re Merge pull request #258555 from rexxDigital/reactphysics3d 2023-10-19 23:24:26 +02:00
ri rimgo: 1.2.0 -> 1.2.1 2023-10-18 14:45:13 +02:00
ro robodoc: refactor 2023-10-11 23:42:04 -03:00
rs rst2html5: migrate to by-name 2023-10-11 23:42:04 -03:00
ru rustplayer: init at unstable-2022-12-29 2023-10-17 10:24:30 +08:00
sa/samrewritten
sc Merge pull request #259582 from ianmjones/scd2html-1.0.0 2023-10-19 11:46:50 +02:00
se Merge pull request #257083 from rudolfvesely/master 2023-10-18 00:48:21 +02:00
sh shopware-cli: 0.3.5 -> 0.3.6 2023-10-19 12:42:14 +00:00
si rocm-related: fixup for ROCm 5.7.0 2023-10-09 17:03:19 -05:00
sl
sm/smallwm
so/sound-of-sorting sound-of-sorting: update 2023-10-11 23:42:04 -03:00
sp rocm-related: fixup for ROCm 5.7.0 2023-10-09 17:03:19 -05:00
ss/sssnake
st/static-server
su supersonic: drop glfw3.buildInputs 2023-10-12 15:55:16 +02:00
sw/swipe-guess swipe-guess: init at 0.2.1 2023-10-16 19:57:50 -04:00
sy synthesia: init at 10.9 2023-10-18 15:37:54 +02:00
tc/tcsh
th
ti tilda: migrate to by-name 2023-10-11 23:42:04 -03:00
tk/tkdiff tkdiff: init at 5.6 2023-10-19 06:18:45 -07:00
tm/tmuxifier
tr Merge pull request #260133 from ProminentRetail/tradingview 2023-10-15 00:37:57 +02:00
tu tusc-sh: 1.0.2 -> 1.1.0 2023-10-19 10:01:46 +00:00
tx/txr txr: migrate to by-name 2023-10-11 23:42:04 -03:00
uc uclibc-ng: refactor 2023-10-11 23:42:04 -03:00
ud Merge pull request #259844 from haruki7049/udev-gothic-nf 2023-10-10 19:04:32 +02:00
ui uiua386: init at 0.0.19 2023-10-18 18:05:00 +02:00
un
up uplosi: 0.1.1 -> 0.1.2 2023-10-13 20:36:34 +02:00
ux/uxn
ve Merge pull request #261006 from vgskye/add-vesktop 2023-10-15 16:44:45 +03:00
vi/virtio-win virtio-win: rename from win-virtio 2023-10-18 00:27:06 +02:00
wa Merge pull request #260978 from jfvillablanca/wait4x 2023-10-18 12:44:47 +02:00
wb/wb32-dfu-updater wb32-dfu-updater: apply suggestions from code review 2023-10-18 17:10:13 +02:00
wi/windowmaker windowmaker.dockapps.wmcube: init 2023-10-20 00:53:54 -03:00
wo/wonderdraft
xm/xmldiff
xo/xorriso
xs/xscreensaver xscreensaver: migrate to by-name 2023-10-11 23:42:04 -03:00
ye/yeahwm
yt/ytui-music
zc/zcfan
zi/zitadel
zp/zpaqfranz
zx/zxpy
README.md by-name: make the way of adding packages clearer 2023-10-09 19:12:29 +02:00

Name-based package directories

The structure of this directory maps almost directly to top-level package attributes. This is the recommended way to add new top-level packages to Nixpkgs when possible.

Packages found in the named-based structure do not need to be explicitly added to the top-level/all-packages.nix file unless they require overriding the default value of an implicit attribute (see below).

Example

The top-level package pkgs.some-package may be declared by setting up this file structure:

pkgs
└── by-name
   ├── so
   ┊  ├── some-package
      ┊  └── package.nix

Where some-package is the package name and so is the lowercased 2-letter prefix of the package name.

The package.nix may look like this:

# A function taking an attribute set as an argument
{
  # Get access to top-level attributes for use as dependencies
  lib,
  stdenv,
  libbar,

  # Make this derivation configurable using `.override { enableBar = true }`
  enableBar ? false,
}:

# The return value must be a derivation
stdenv.mkDerivation {
  # ...
  buildInputs =
    lib.optional enableBar libbar;
}

You can also split up the package definition into more files in the same directory if necessary.

Once defined, the package can be built from the Nixpkgs root directory using:

nix-build -A some-package

See the general package conventions for more information on package definitions.

Changing implicit attribute defaults

The above expression is called using these arguments by default:

{
  lib = pkgs.lib;
  stdenv = pkgs.stdenv;
  libbar = pkgs.libbar;
}

But the package might need pkgs.libbar_2 instead. While the function could be changed to take libbar_2 directly as an argument, this would change the .override interface, breaking code like .override { libbar = ...; }. So instead it is preferable to use the same generic parameter name libbar and override its value in pkgs/top-level/all-packages.nix:

libfoo = callPackage ../by-name/so/some-package/package.nix {
  libbar = libbar_2;
};

Manual migration guidelines

Most packages are still defined in all-packages.nix and the category hierarchy. Please hold off migrating your maintained packages to this directory.

  1. An automated migration for the majority of packages is being worked on. In order to save on contributor and reviewer time, packages should only be migrated manually afterwards if they couldn't be migrated automatically.

  2. Manual migrations should only be lightly encouraged if the relevant code is being worked on anyways. For example with a package update or refactoring.

  3. Manual migrations should not remove definitions from all-packages.nix with custom arguments. That is a backwards-incompatible change because it changes the .override interface. Such packages may still be moved to pkgs/by-name however, while keeping the definition in all-packages.nix. See also changing implicit attribute defaults.

Limitations

There's some limitations as to which packages can be defined using this structure:

  • Only packages defined using pkgs.callPackage. This excludes packages defined using pkgs.python3Packages.callPackage ....

    Instead use the category hierarchy for such attributes.

  • Only top-level packages. This excludes packages for other package sets like pkgs.pythonPackages.*.

    Refer to the definition and documentation of the respective package set to figure out how such packages can be declared.

Validation

CI performs certain checks on the pkgs/by-name structure. This is done using the nixpkgs-check-by-name tool. The version of this tool used is the one that corresponds to the NixOS channel of the PR base branch. See here for details.

The tool can be run locally using

nix-build -A tests.nixpkgs-check-by-name
result/bin/nixpkgs-check-by-name .