nixpkgs/pkgs/by-name
2024-08-18 16:42:06 -04:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab Merge pull request #334427 from r-ryantm/auto-update/ablog 2024-08-14 15:40:16 -04:00
ac
ad
ae
af
ag
ai aider-chat: init at 0.50.0 2024-08-14 20:13:17 +02:00
al alpaca: 1.0.6 -> 1.1.1 2024-08-14 11:08:35 +08:00
am
an
ao/aocl-utils
ap
aq/aquamarine
ar Merge pull request #334163 from SFrijters/arduino-cli-1.0.4 2024-08-14 03:11:27 +00:00
as
at attic-client,attic-server: 0-unstable-2024-02-08 -> 0-unstable-2024-08-01 2024-08-13 12:14:15 +02:00
au
av
aw
ax
ay
az
b3/b3sum
ba basedpyright: 1.15.2 -> 1.16.0 2024-08-14 15:26:00 +02:00
bc
bd
be
bi
bk/bk
bl bluetuith: 0.2.2 -> 0.2.3 2024-08-14 06:00:49 +00:00
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br
bs
bt
bu bugstalker: 0.1.4 -> 0.2.2 2024-08-14 13:37:32 +02:00
by
c-
c2
ca casadi: always set PYTHON_PREFIX, using placeholder "out". 2024-08-13 20:58:02 +03:00
cb
cc
cd
ce
cg
ch charmcraft: 3.1.1 -> 3.1.2 2024-08-14 02:33:51 +00:00
ci Merge pull request #332619 from r-ryantm/auto-update/cinny-unwrapped 2024-08-14 03:09:40 +00:00
cj/cjs
cl Merge pull request #294662 from BANanaD3V/init-cloak-pt 2024-08-14 23:13:02 +02:00
cm
cn
co Merge master into staging-next 2024-08-14 06:01:07 +00:00
cp
cq/cq
cr crawley: 1.7.7 -> 1.7.8 2024-08-13 12:09:40 +00:00
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db
dc
dd
de
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn
do dopamine: 3.0.0-preview.29 -> 3.0.0-preview.31 2024-08-14 07:51:52 +00:00
dp
dr
ds
dt
du
dv/dvb-apps
dw/dwl
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ef/efibootmgr
eg/eg25-manager
ei
ej/ejsonkms
ek/eksctl
el
em
en
eo/eog
ep
er
es
et
eu
ev
ew/eww
ex
ey/eyewitness
ez/eza
f2/f2fs-tools
fa fastfetch: 2.21.0 -> 2.21.2 2024-08-13 23:11:52 -05:00
fb/fbset
fc
fe fedimint: 0.3.3 -> 0.4.1 2024-08-14 13:37:21 +02:00
ff
fg/fgqcanvas
fi filterpath: 1.0.1 -> 1.0.2 2024-08-14 04:28:07 +00:00
fj/fjo
fl flarectl: 0.101.0 -> 0.102.0 2024-08-14 20:31:29 +00:00
fm
fn/fnott
fo Merge pull request #333198 from isabelroses/forgejo-cli 2024-08-13 17:10:13 +02:00
fr frankenphp: 1.2.3 -> 1.2.4 2024-08-14 09:37:09 +00:00
fs
ft/fte
fu
fv
fw/fwupd
fx/fx
fy
fz
g3/g3kb-switch
ga
gb
gc
gd
ge
gf
gg/gg
gh
gi
gk/gk-cli
gl
gm
gn
go gossip: move hash to last attribute 2024-08-14 09:54:34 +02:00
gp
gr
gt
gu
gv/gvisor
gx/gxml
h2/h2
h5/h5utils
h8/h8mail
ha
hb/hb-honeypot
hc/hclfmt
hd
he
hi
hj/hjson-go
hn/hn-text
ho home-manager: 0-unstable-2024-08-02 -> 0-unstable-2024-08-11 2024-08-13 14:35:30 +00:00
hp
ht
hu hugo: 0.131.0 -> 0.132.1 2024-08-13 20:26:26 +08:00
hv/hvm
hy
i2/i2p
i3
ia
ic
id
if/ifrextractor-rs
ig
ii
ij
im
in
io
ip
ir
is
it
iv
iw/iw
iz/izrss
ja
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn jnv: 0.3.0 -> 0.4.0 2024-08-13 14:47:43 +00:00
jo joshuto: 0.9.8 -> 0.9.8-unstable-2024-07-20 2024-08-13 14:25:35 +02:00
jq/jq-zsh-plugin
jr/jrl-cmakemodules
js
jt/jtdx
ju
jw/jwasm
ka
kc
kd
ke Merge pull request #332921 from ofalvai/keepassxc-go-unbreak-darwin 2024-08-13 11:04:30 +02:00
kg/kgeotag
ki
kl
km
kn
ko
kp/kplex
kr
ks
kt
ku kulala-fmt: 1.2.0 -> 1.3.0 2024-08-13 14:50:48 +00:00
kv/kvmarwaita
kx
ky
la
lb
lc
ld
le
lg/lgogdownloader
li Merge pull request #333294 from trofi/libpkgconf-update 2024-08-14 21:10:56 +00:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo Merge pull request #331824 from yzx9/logseq-drawin-support 2024-08-13 18:30:53 +10:00
lp
lr/lrcget
ls
lt/ltris
lu lunar-client: 3.2.12 -> 3.2.15 2024-08-14 11:40:30 +00:00
lv/lv_font_conv
lw/lwgrp
lx
lz
m1/m1ddc
m2
ma Merge pull request #333724 from zimward/mangareader 2024-08-14 17:24:23 +00:00
mb
mc
md mdt: 0.8.1 -> 0.8.4 2024-08-14 02:06:01 +00:00
me meteor-git: init at 0.22.0 2024-08-18 16:42:06 -04:00
mf
mg
mi
mk
ml/mlx42
mo
mp
mq
mr/mricron
ms
mu
my Merge pull request #331616 from LeSuisse/mysql84-8.4.2 2024-08-13 21:39:37 -04:00
n2/n2
n8/n8n
n9/n98-magerun2
na namespace-cli: 0.0.388 -> 0.0.389 2024-08-13 15:23:39 +00:00
nb
nc
nd/ndstrim
ne Merge pull request #331355 from MattSturgeon/nexus-refactor-unfree 2024-08-14 11:48:06 -03:00
nf
ng
nh
ni Merge pull request #333708 from DSOverlord/niri 2024-08-14 23:11:16 +02:00
nl
nm
nn
no
np
nr
ns
nt
nu
nv
nw
nx/nxengine-evo
nz/nzbhydra2
oa
ob
oc
od
oe/oelint-adv
of
oh Merge pull request #329314 from redyf/update-oh-my-posh 2024-08-14 02:11:38 +02:00
oi
ok okteto: 2.29.3 -> 2.30.1 2024-08-14 04:31:57 +00:00
ol ollama: only run service test on linux 2024-08-13 09:37:35 -04:00
om
on
oo
op open62541: 1.4.2 -> 1.4.4 2024-08-13 17:45:20 +02:00
oq/oqs-provider
or
os
ot
ou
ov
ow
pa
pc
pd
pe
pf/pfft
pg
ph phpunit: 11.3.0 -> 11.3.1 2024-08-14 17:23:42 +00:00
pi Merge pull request #333063 from ryand56/update/picocrypt 2024-08-13 09:26:05 +02:00
pk
pl
pm
pn
po Merge pull request #328817 from r-ryantm/auto-update/poethepoet 2024-08-13 21:22:14 -04:00
pp/ppsspp
pq
pr proxsuite: disable a failing test on aarch64-linux 2024-08-13 21:24:53 +02:00
ps
pt
pu
pv
pw
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd
qg/qgrep
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr qrtool: switch to GitLab source 2024-08-14 10:25:31 -07:00
qs
qt/qtractor
qu
qw/qwerty-fr
r0/r0vm
r1/r10k
ra
rc
rd/rdwatool
re renovate: 38.18.17 -> 38.27.0 2024-08-14 04:17:56 +00:00
rf/rfdump
rh/rHttp
ri
rk
rl/rl_json
rm
rn
ro
rp/rpcs3
rq
rr/rrdtool
rs
rt
ru Merge pull request #331757 from alyssais/rustic 2024-08-14 09:01:56 +02:00
rw/rwpspread
ry
s0/s0ix-selftest-tool
s3
sa
sb
sc screenly-cli: format with nixfmt-rfc-style 2024-08-13 14:28:21 +01:00
sd
se
sf/sfwbar
sg/sgfutils
sh Merge pull request #333115 from ryand56/update/sherlock 2024-08-14 04:12:52 +00:00
si Merge pull request #332048 from r-ryantm/auto-update/silverbullet 2024-08-13 21:41:49 -04:00
sk Merge pull request #334339 from vytskalt/skia-cross 2024-08-14 16:27:16 -03:00
sl slimserver: Fix bug in scanner 2024-08-14 14:15:42 +02:00
sm
sn
so
sp Merge pull request #334584 from r-ryantm/auto-update/spicetify-cli 2024-08-14 15:06:26 -04:00
sq
sr
ss
st
su Merge pull request #333696 from paveloom/subtitleedit 2024-08-14 17:28:52 +00:00
sv
sw
sx
sy symbolicator: 23.11.2 -> 24.7.1 2024-08-14 13:38:17 +02:00
t-/t-rex
ta nixosTests.taskchampion-sync-server: init 2024-08-14 08:06:11 +03:00
tb/tbump
tc
td
te Merge pull request #334357 from r-ryantm/auto-update/terraform-local 2024-08-14 10:16:22 +00:00
tg
th
ti tinymist: add GaetanLepage to maintainers 2024-08-13 13:31:54 +02:00
tk
tl
tm
to
tp
tr tracexec: 0.5.1 -> 0.5.2 2024-08-13 09:43:26 +00:00
ts/tsm-client
tt
tu
tw
tx
ty
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un
up
ur/urban-cli
us
ut
uu/uuu
uv/uv
uw
ux uxplay: 1.68.3 -> 1.69 2024-08-13 08:07:45 +00:00
va
vc Merge pull request #327790 from r-ryantm/auto-update/vcpkg 2024-08-13 23:11:52 -04:00
vd/vdhcoapp
ve
vg/vgm2x
vi
vk
vl
vm
vn
vo
vp
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa Merge master into staging-next 2024-08-13 18:01:28 +00:00
wb
wc/wcurl
we weblate: init at 5.6.2 2024-08-13 08:44:54 +02:00
wf/wf-touch
wg/wg-access-server
wh
wi wit-bindgen: 0.29.0 -> 0.30.0 2024-08-13 04:52:47 +00:00
wl
wo
wp
wr/wrangler
ws
wt
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa
xc
xd
xe
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr
xs
xu/xunit-viewer
xv/xviewer
xw
ya yamlscript: 0.1.69 -> 0.1.71 2024-08-13 11:01:22 +00:00
yc/ycmd
yd/ydotool
ye
yg yggdrasil: 0.5.7 -> 0.5.8 2024-08-13 08:25:39 +00:00
yj/yj
yo
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.147.2 -> 0.148.0 2024-08-14 13:42:56 -04:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp
zs
zu
zw/zwave-js-server
zx
README.md

Name-based package directories

The structure of this directory maps almost directly to top-level package attributes. Add new top-level packages to Nixpkgs using this mechanism whenever possible.

Packages found in the name-based structure are automatically included, without needing to be added to all-packages.nix. However if the implicit attribute defaults need to be changed for a package, this must still be declared in all-packages.nix.

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

$ ./maintainers/scripts/check-by-name.sh master

See here for more info.

Recommendation for new packages with multiple versions

These checks of the pkgs/by-name structure can cause problems in combination:

  1. New top-level packages using callPackage must be defined via pkgs/by-name.
  2. Packages in pkgs/by-name cannot refer to files outside their own directory.

This means that outside pkgs/by-name, multiple already-present top-level packages can refer to some common file. If you open a PR to another instance of such a package, CI will fail check 1, but if you try to move the package to pkgs/by-name, it will fail check 2.

This is often the case for packages with multiple versions, such as

{
  foo_1 = callPackage ../tools/foo/1.nix { };
  foo_2 = callPackage ../tools/foo/2.nix { };
}

The best way to resolve this is to not use callPackage directly, such that check 1 doesn't trigger. This can be done by using inherit on a local package set:

{
  inherit
    ({
      foo_1 = callPackage ../tools/foo/1.nix { };
      foo_2 = callPackage ../tools/foo/2.nix { };
    })
    foo_1
    foo_2
    ;
}

While this may seem pointless, this can in fact help with future package set refactorings, because it establishes a clear connection between related attributes.

Further possible refactorings

This is not required, but the above solution also allows refactoring the definitions into a separate file:

{
  inherit (import ../tools/foo pkgs)
    foo_1 foo_2;
}
# pkgs/tools/foo/default.nix
pkgs: {
  foo_1 = callPackage ./1.nix { };
  foo_2 = callPackage ./2.nix { };
}

Alternatively using callPackages if callPackage isn't used underneath and you want the same .override arguments for all attributes:

{
  inherit (callPackages ../tools/foo { })
    foo_1 foo_2;
}
# pkgs/tools/foo/default.nix
{
  stdenv
}: {
  foo_1 = stdenv.mkDerivation { /* ... */ };
  foo_2 = stdenv.mkDerivation { /* ... */ };
}

Exposing the package set

This is not required, but the above solution also allows exposing the package set as an attribute:

{
  foo-versions = import ../tools/foo pkgs;
  # Or using callPackages
  # foo-versions = callPackages ../tools/foo { };

  inherit (foo-versions) foo_1 foo_2;
}