nixpkgs/pkgs/by-name
2023-12-24 18:07:23 -05:00
..
_4/_4th
_9/_9base
a4/a4
aa
ab/aba
ac
ad
ae/aeron-cpp
af/afterstep
ai
al
am amphetype: init at 1.0.0 2023-12-21 09:40:52 +01:00
an/anime4k anime4k: init at 4.0.1 2023-12-16 21:40:19 +01:00
ao/aocl-utils
ap
ar
as treewide: don't use pname for mainProgram where pname is static 2023-12-20 14:25:55 +01:00
at/athens athens: remove timpath flag, don't use pname as repo 2023-12-24 09:48:02 +01:00
au/auto-epp
av/avr-sim
aw treewide: don't use pname for mainProgram where pname is static 2023-12-20 14:25:55 +01:00
ax/axmldec
ay/ayatana-indicator-messages
ba
bc/bc-ur bc-ur: init at 0.3.0 2023-12-17 20:28:59 +01:00
be
bi
bk/bk
bl/bluetility
bm/bmake
bn/bngblaster
bo
br bruno: 1.4.0 -> 1.5.0 2023-12-18 10:37:08 +10:00
bu
c2
ca
cb/cbmbasic
cd
ce
cg/cgl
ch/changelog-d
ci
cl cloudlogoffline: init at 1.1.4 2023-12-21 04:04:44 +01:00
cm
cn/cntb
co composer-require-checker: init at 4.8.0 2023-12-20 14:39:33 +01:00
cp/cpu-x
cr Merge pull request #274712 from superherointj/crossplane-cli-1.14.4 2023-12-24 18:06:50 -05:00
ct/ctx
cy
da/dark-mode-notify
db/dbus-cpp
de decent-sampler: init at 1.9.4 2023-12-21 12:15:42 +09:30
di didder: 1.2.0 -> 1.3.0 2023-12-21 09:18:08 +00:00
dj/djent
dm/dmenu-bluetooth
do doublecmd: 1.1.5 -> 1.1.7 2023-12-15 07:02:17 +00:00
dr/drone-scp drone-scp: 1.6.11 -> 1.6.12 2023-12-24 21:25:09 +00:00
dt/dtcmp
du
dv/dvb-apps
dx
dy/dyalog
ec
ei eigenlayer: init at 0.5.0 2023-12-21 14:45:21 +02:00
ek/eksctl
el/elvish
em
en
er/eriscmd
es/esbuild-config
eu/eudev
ez/eza
fa
fc
fe/feather feather: 2.5.2 -> 2.6.1 2023-12-17 20:31:43 +01:00
ff
fi/firewalk
fl flarectl: 0.82.0 -> 0.83.0 2023-12-15 00:53:11 +00:00
fm
fn/fnott
fo
fr Merge pull request #274430 from shyim/frankenphp-fix-colision 2023-12-20 18:10:00 +01:00
ga
gb/gbar
gc
ge
gh
gi gickup: 0.10.23 -> 0.10.24 2023-12-19 15:33:10 -05:00
gl/glycin-loaders
gm/gmic
go Merge pull request #275642 from SuperSandro2000/go-camo 2023-12-23 21:11:30 -05:00
gr
gu
ha hare: unstable-2023-10-23 -> unstable-2023-11-27 2023-12-14 19:27:37 -03:00
hd/hdrop
he
hi/hifile
hj/hjson-go hjson-go: 4.3.1 -> 4.4.0 2023-12-15 22:39:18 +00:00
ho
ht/http3-ytproxy http3-ytproxy: init at unstable-2022-07-03 2023-12-17 19:48:03 +01:00
hy
i3
ia/ia-writer-quattro
ic/icewm
id/idsk
if/ifrextractor-rs
im
in invidtui: 0.3.6 -> 0.3.7 2023-12-23 21:26:03 +00:00
ir/ironbar
ja
ji
jo/joycond-cemuhook
ju/justbuild
ka/katriawm
kc/kconfig-frontends
kd/kdsingleapplication
ke
kg/kgeotag
ki/kikit
km/kmsvnc
ko
ks/kseexpr
kt ktls-utils: init at 0.10 2023-12-18 16:36:43 -03:00
ku
la
lc/lcab
le Merge pull request #270129 from afh/ledger-by-name 2023-12-23 07:32:28 -05:00
li Apply suggestions from code review 2023-12-23 12:52:58 +08:00
ll Merge pull request #275807 from KaiHa/pr-llama-cpp-assert 2023-12-22 08:36:34 -05:00
ln/lngen
lo Merge pull request #274829 from jtojnar/gnome-update 2023-12-22 20:20:18 +08:00
lu
lw/lwgrp
lx/lxd-to-incus
m2
ma
mc/mcuboot-imgtool
me
mf/mfoc-hardnested
mi Revert "maintainer-list: drop gm6k" 2023-12-19 13:10:44 +01:00
mk/mksh
ml/mlx42
mo monophony: add update script 2023-12-22 14:01:56 +00:00
mp/mpifileutils
ms/msolve msolve: 0.6.1 -> 0.6.3 2023-12-17 16:31:47 +01:00
mu/mus
my/mystmd mystmd: 1.1.36 -> 1.1.37 2023-12-23 04:20:00 +00:00
n2/n2
na Merge pull request #274894 from r-ryantm/auto-update/namespace-cli 2023-12-19 15:51:51 +09:00
ne netclient: 0.21.1 -> 0.21.2 2023-12-17 06:06:19 +00:00
nf/nfft
nh/nh
ni Merge pull request #275580 from Mic92/nix-direnv 2023-12-24 21:16:22 +01:00
nl/nls
nn/nncp
no treewide: don't use pname for mainProgram where pname is static 2023-12-20 14:25:55 +01:00
nr/nrpl
ns
nu numbat: 1.8.0 -> 1.9.0 2023-12-19 14:40:03 +01:00
nw/nwg-drawer
oa
oc
oe/oelint-adv oelint-adv: 3.26.4 -> 3.26.5 2023-12-17 09:52:53 +00:00
of/offpunk
oh/oh-my-fish
on
op
or/orchard orchard: 0.14.3 -> 0.15.0 2023-12-17 12:30:01 +00:00
ot oterm: init at 0.1.17 2023-12-19 18:41:54 +03:00
ou/outputcheck
ov/ovn ovn/ovn-lts: init at 23.09.1/22.03.5 2023-12-22 23:37:41 -05:00
ow/owncloud-client
pa passes: 0.8 -> 0.9 2023-12-17 15:00:13 +00:00
pd
pe Merge pull request #259393 from OPNA2608/init/persistent-cache-cpp 2023-12-18 14:07:24 +01:00
pg/pgmoneta pgmoneta: 0.7.1 -> 0.7.2 2023-12-17 15:43:02 +00:00
ph
pi
pl
po
pp/ppsspp
pr presenterm: 0.4.0 -> 0.4.1 2023-12-22 16:44:17 +01:00
pt/pterm
pu/pushup pushup: init at 0.2 2023-12-23 11:24:53 -06:00
pw pwru: init at 1.0.5 2023-12-23 14:03:39 -05:00
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qr/qrtool qrtool: 0.8.5 -> 0.10.1 2023-12-23 03:14:37 +00:00
qu
ra raft-cowsql: 0.18.2 -> 0.18.3 2023-12-23 03:46:01 +00:00
rc
re regex2json: init at 0.11.0 2023-12-18 22:30:00 +01:00
ri rita: 4.8.0 -> 4.8.1 2023-12-23 04:49:43 +00:00
ro
rp/rpcs3
rq/rqbit rqbit: 4.0.1 -> 5.4.0 2023-12-17 04:20:00 +00:00
rs rsgain: init at 3.4 2023-12-22 21:29:42 -03:00
rt/rtl-sdr-osmocom
ru
sa satty: 0.8.0 -> 0.8.2 2023-12-20 14:27:38 +01:00
sc
sd/sdcc
se
sg/sgfutils
sh shopware-cli: 0.3.12 -> 0.4.4 2023-12-19 22:01:42 +01:00
si Merge pull request #276255 from r-ryantm/auto-update/signal-export 2023-12-24 01:34:54 -06:00
sl
sm smlfut: 1.1.0 -> 1.2.0 2023-12-23 10:20:18 +00:00
sn Merge pull request #269750 from ianmjones/snippetexpander-1.0.1 2023-12-18 13:55:01 +01:00
so soco-cli: 0.4.55 -> 0.4.73 2023-12-17 11:56:02 +01:00
sp
sr/srm-cuarzo srm-cuarzo: init at 0.4.0-1 2023-12-20 20:01:54 +01:00
ss/sssnake
st
su Merge pull request #265689 from natsukium/sudachi/init 2023-12-25 00:02:23 +01:00
sv/svix-server
sw swayfx: wrap like sway 2023-12-17 09:30:31 +00:00
sx/sxhkd
sy syn2mas: init at 0.7.0 2023-12-18 18:29:58 +01:00
ta tailscale-nginx-auth: 1.48.2 -> 1.56.1 2023-12-24 11:34:10 +00:00
tc/tcsh
te terrapin-scanner: 1.0.3 -> 1.1.0 2023-12-20 22:16:20 +01:00
th
ti
tk/tkdiff
tl/tlrc
tm/tmuxifier
to/torrentstream
tp
tr treecat: init at 1.0.2-unstable-2023-11-28 2023-12-15 07:19:46 -03:00
tt/ttop
tu
tx/txr
ty
uc
ud
ui uiua: 0.7.0 -> 0.7.1 2023-12-19 07:10:13 +01:00
un
up
us/usql
ut/ut
uu/uuu
ux/uxn
va/valijson
vc
ve
vg/vgm2x
vi vinegar: add segrevert patch for wine 9.0-rc1-staging 2023-12-17 01:31:31 +03:00
wa waybox: 0.2.0 -> 0.2.2 2023-12-15 10:33:06 +08:00
wb/wb32-dfu-updater
we/websecprobe
wh whistle: 2.9.59 -> 2.9.61 2023-12-23 04:20:00 +00:00
wi Merge pull request #269359 from wineee/wlroots_17 2023-12-22 09:45:58 -05:00
wl/wl-gammarelay-rs
wo
wp/wp-cli
ws/wslay
wt/wtfis
xa/xarcan
xd
xm/xmldiff
xo
xs
xw/xwayland-run xwayland-run: init at 0.0.2 2023-12-18 16:44:05 -03:00
ye/yeahwm
yg/yggdrasil
yt
yu/yunfaavatar
za/zapzap zapzap: fix double wrapping, install icon in correct directory 2023-12-17 21:35:45 +01:00
zb/zbus-xmlgen zbus-xmlgen: init at 3.1.1 2023-12-17 12:24:32 +01:00
zc/zcfan
ze/zesarux
zi/zitadel
zp
zs/zs
zu/zug
zw/zwave-js-server
zx
README.md tests.nixpkgs-check-by-name: Create script to run locally 2023-12-20 17:38:03 +01: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:

    • Either change the package definition to work with pkgs.callPackage.
    • Or use the category hierarchy.
  • 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.

You can locally emulate the CI check using

$ ./pkgs/test/nixpkgs-check-by-name/scripts/run-local.sh master

See here for more info.