nixpkgs/pkgs/by-name
2024-12-02 17:37:50 +02:00
..
_0
_1
_2
_3
_4
_5/_5etools
_6
_7
_9
a2
a4/a4
a5/a52dec
aa
ab abctl: 0.13.1 -> 0.22.0 (#359267) 2024-12-01 07:35:24 -06:00
ac
ad
ae
af
ag
ah
ai
aj/aj-snapshot
ak/akira-unstable
al allure: 2.31.0 -> 2.32.0 (#360838) 2024-12-01 17:48:27 -05:00
am amazon-ssm-agent: 3.3.987.0 -> 3.3.1345.0 2024-12-01 04:18:39 +00:00
an anvil-editor: init at 0.4 (#356629) 2024-12-01 15:56:16 +01:00
ao/aocl-utils
ap apx: 2.4.3 -> 2.4.4 (#360705) 2024-12-01 22:18:45 +00:00
aq
ar ariang: 1.3.7 -> 1.3.8 2024-12-01 09:31:20 +00:00
as
at atop: fix cross-compilation 2024-11-30 11:42:00 -05:00
au autosuspend: 7.0.2 -> 7.0.3 2024-12-02 03:44:18 +00:00
av
aw
ax
ay
az
b3/b3sum
b4
b6/b612
ba bats: 1.11.0 -> 1.11.1 2024-11-30 02:06:19 +00:00
bb
bc
bd
be treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
bf bfs: 4.0.3 -> 4.0.4 2024-12-01 20:35:11 +00:00
bg
bi binwalk: fix checkPhase on Darwin (#360001) 2024-12-01 18:47:15 +08:00
bj/bjumblr
bk
bl vte: 0.78.1 -> 0.78.2 (#358895) 2024-12-01 22:10:00 +08:00
bm
bn/bngblaster
bo bombsquad: fix hash mismatch 2024-11-30 03:16:04 +08:00
bp
bq
br treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
bs
bt btrfs-progs: 6.11 -> 6.12 2024-11-30 06:27:28 +00:00
bu buildkite-cli: 3.2.0 -> 3.3.1 2024-12-01 01:33:50 +00:00
bv
bw
by
bz/bzrtp
c2
c3
c6/c64-debugger
c-
ca cargo-rdme: 1.4.5 -> 1.4.8 (#360972) 2024-12-02 08:31:43 -05:00
cb
cc
cd
ce various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
cf
cg
ch chainsaw 2.9.2 -> 2.10.1 (#360011) 2024-11-30 13:38:57 +01:00
ci various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
cj
ck
cl
cm
cn
co codeium: add versionCheckHook 2024-11-30 17:20:26 +01:00
cp
cq/cq
cr cruft: init at 2.15.0 (#299346) 2024-11-30 12:55:10 +08:00
cs
ct
cu
cv
cw
cx cxx-rs: 1.0.94 -> 1.0.131 2024-11-30 20:59:39 +02:00
cy
cz
d2
d-
da dashy-ui: fix uncalled settings override phase (#360933) 2024-12-02 12:03:23 +05:30
db
dc
dd ddns-go: 6.7.2 -> 6.7.6 (#360509) 2024-12-01 09:49:16 -05:00
de deno: 2.1.1 -> 2.1.2 (#360138) 2024-12-01 19:37:41 +01:00
df
dg
dh
di incus: format 2024-11-30 00:04:54 -05:00
dj
dk
dl
dm
dn
do
dp
dq
dr
ds
dt
du
dv
dw
dx
dy
dz/dzen2
e1
e2
ea
eb
ec
ed
ee/eepers
ef
eg
ei
ej
ek eksctl: 0.193.0 -> 0.194.0 2024-12-01 00:49:11 +00:00
el various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
em maintainers: remove stnley 2024-11-29 20:20:31 -05:00
en entt: 3.13.2 -> 3.14.0 2024-12-02 04:38:17 +00:00
eo
ep
eq
er erigon, nodeinfo: fix tags for buildGoModule (#360030) 2024-11-29 19:43:35 -05:00
es
et etlegacy-unwrapped: 2.82.1 -> 2.83.1 (#360489) 2024-12-01 01:00:00 +01:00
eu
ev evcc: 0.131.6 -> 0.131.8 2024-11-30 18:29:04 +01:00
ew
ex exprtk: 0.0.2 -> 0.0.3 2024-12-02 07:32:13 +00:00
ey
ez
f1
f2
f3/f3
f5/f5_6
fa fanbox-dl: 0.23.2 -> 0.27.1 2024-12-01 19:04:12 +00:00
fb
fc
fd
fe feishin: 0.11.1 -> 0.12.1 (#359962) 2024-12-02 14:57:29 +01:00
ff
fg
fh fheroes2: 1.1.3 -> 1.1.4 (#359742) 2024-12-01 07:31:43 -06:00
fi firefly-iii: 6.1.21 -> 6.1.24, firefly-iii-data-importer: 1.5.6 -> 1.5.7 (#355838) 2024-12-01 08:59:37 +01:00
fj/fjo
fl flix: 0.52.0 -> 0.54.0 2024-12-01 00:46:30 +00:00
fm various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
fn fna3d: 24.11 -> 24.12 2024-12-02 01:01:35 +00:00
fo folio: 24.13 -> 24.14 2024-12-02 01:15:47 +00:00
fp
fq/fq
fr frog-protocols: don't use pulled commit 2024-11-30 19:04:45 -05:00
fs
ft
fu
fv
fw
fx
fy
fz
g1/g15daemon
g2/g203-led
g3/g3kb-switch
g8/g810-led
g9/g933-utils
g-/g-wrap
ga gapless: 4.0 -> 4.2 2024-11-30 10:31:40 +00:00
gb
gc gcov2lcov: 1.1.0 -> 1.1.1 2024-11-29 19:33:32 +00:00
gd
ge geoserver: 2.26.0 -> 2.26.1 2024-12-01 21:18:41 +00:00
gf
gg gg-jj: init at 0.23.0 2024-12-02 19:33:11 +08:00
gh
gi gitxray: 1.0.16 -> 1.0.16.4 (#360357) 2024-12-02 09:05:04 +01:00
gj
gk/gk-cli gkraken,nixos/gkraken: Drop (#358200) 2024-11-30 10:54:30 +08:00
gl glab: 1.49.0 -> 1.50.0 (#359935) 2024-11-30 20:41:43 +01:00
gm
gn
go gojq: 0.12.16 -> 0.12.17 (#360767) 2024-12-02 06:00:03 +00:00
gp gpu-viewer: 3.06 -> 3.08 2024-12-01 15:40:11 +01:00
gq
gr grafana-alloy: 1.4.3 -> 1.5.0 2024-12-01 23:19:40 +00:00
gs gswatcher: init at 1.7.1 (#359789) 2024-11-29 22:34:08 +08:00
gt various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
gu various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
gv
gw
gx
gy
gz
h2
h5/h5utils
h8/h8mail
ha hardinfo2: init at 2.2.4 2024-12-01 09:13:15 +01:00
hb
hc
hd
he helvum: remove unused clang from build closure 2024-12-01 17:03:48 +08:00
hf
hh
hi hickory-dns: 0.25.0-alpha.3 -> 0.25.0-alpha.4 2024-12-01 08:19:30 +01:00
hj/hjson-go
hl/hledger-check-fancyassertions
hm
hn
ho homebox: 0.15.2 -> 0.16.0 2024-12-01 17:46:31 +01:00
hp
hq/hqplayerd
hr
hs
ht
hu
hv/hvm
hw
hx/hxtools
hy hyprgui: 0.1.8 -> 0.1.9 (#357029) 2024-11-30 00:25:01 +01:00
i2
i3
i8/i810switch
i-/i-dot-ming
ia
ib
ic
id
if
ig
ih/ihp-new
ii iio-oscilloscope: init at 0.17 (#280521) 2024-12-01 19:19:40 +08:00
ij
ik
il
im
in invidious: fix playback for proxied video streaming 2024-12-02 03:16:40 +01:00
io
ip
iq
ir
is
it treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
iu/iucode-tool
iv
iw
ix/ix
iz/izrss
j/j
j4/j4-dmenu-desktop
ja jawiki-all-titles-in-ns0: 0-unstable-2024-10-01 -> 0-unstable-2024-12-01 2024-12-01 14:45:24 +00:00
jb
jc
jd
je jellyfin{,-web}: 10.10.1 → 10.10.2 → 10.10.3 (#356897) 2024-12-01 07:42:12 -06:00
jf
jg/jgmenu
jh
ji treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
jj/jj
jm
jn
jo jogger: 1.2.4-unstable-2024-04-05 -> 1.2.5 (#360093) 2024-11-30 14:50:02 +08:00
jp jp-zip-codes: 0-unstable-2024-10-01 -> 0-unstable-2024-12-01 2024-12-01 14:46:18 +00:00
jq
jr
js
jt
ju
jw jwx: 2.1.1 -> 2.1.3 2024-11-30 10:13:14 +00:00
jx
jy/jython
k0/k0sctl
k2
k3
k4/k40-whisperer
k6/k6
k8
k9/k9s
ka kakoune-lsp: 18.0.2 -> 18.1.0 2024-11-30 17:35:44 +00:00
kb
kc various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
kd
ke
kf/kfilt
kg/kgeotag
kh
ki various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
kl
km
kn
ko komikku: 1.63.0 -> 1.64.0 (#359153) 2024-11-30 21:54:40 +00:00
kp
kr
ks
kt
ku kubefetch: 0.7.2 -> 0.8.0 (#360487) 2024-12-01 09:52:28 -05:00
kv
kw
kx
ky
l2/l2md
la labwc-tweaks-gtk: 0-unstable-2024-10-20 -> 0-unstable-2024-11-25 (#360794) 2024-12-02 07:50:15 -03:00
lb
lc lc0: 0.31.1 -> 0.31.2 2024-12-01 08:22:53 +00:00
ld
le treewide: remove AndersonTorres from maintainers (#360292) 2024-12-01 18:08:16 +08:00
lf/lftp
lg
lh
li librime-lua: 0-unstable-2024-08-19 -> 0-unstable-2024-11-02 (#360780) 2024-12-02 15:06:09 +00:00
lk
ll
lm
ln
lo logdy: 0.13.0 -> 0.13.1 (#357746) 2024-12-01 07:46:57 -06:00
lp
lr
ls
lt
lu treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
lv
lw
lx incus: format 2024-11-30 00:04:54 -05:00
ly
lz
m1
m2
m3/m33-linux
m4
m-/m-cli
ma mac: drop same package as monkeysAudio 2024-12-01 17:40:50 +02:00
mb
mc
md
me mercure: 0.16.3 -> 0.17.1 (#360752) 2024-12-02 07:03:56 +00:00
mf
mg
mh/mhddfs
mi mint-themes: 2.1.9 -> 2.2.0 2024-12-02 12:27:13 +00:00
mj
mk
ml mlx42: 2.4.0 -> 2.4.1 2024-11-30 08:17:49 +00:00
mm
mn
mo monkeysAudio: 10.76 -> 10.81 (#360264) 2024-12-02 14:06:47 +02:00
mp
mq mqtt-exporter: init at 1.5.0 (#360486) 2024-12-01 18:32:26 +08:00
mr
ms
mt
mu mullvad-vpn: add versionCheckHook 2024-11-30 18:40:02 +01:00
mv
mw/mw
mx mxt-app: 1.40 -> 1.41 2024-11-30 04:46:30 +00:00
my
n2
n3/n3
n8/n8n n8n: 1.65.1 -> 1.70.1 2024-12-01 06:27:51 +00:00
n9
na
nb
nc nco: 5.2.8 -> 5.2.9 (#360520) 2024-12-02 07:34:23 +00:00
nd
ne networkd-dispatcher: don't patch conf file path, add extraArgs option (#265348) 2024-12-02 17:37:50 +02:00
nf nf-test: 0.9.1 -> 0.9.2 2024-12-02 04:59:11 +00:00
ng
nh
ni Drop nix 2.18 (#359215) 2024-12-02 14:45:52 +01:00
nj/njam
nk
nl
nm
nn
no notify: 1.0.6 -> 1.0.7 (#360959) 2024-12-02 08:33:38 -05:00
np
nq
nr
ns
nt ntfy-alertmanager: 0.3.0 -> 0.4.0 (#360677) 2024-12-02 00:14:10 +01:00
nu numix-icon-theme-square: 24.07.19 -> 24.10.22 2024-12-01 09:29:29 +00:00
nv various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
nw nwg-clipman: 0.2.3 -> 0.2.4 (#360670) 2024-12-01 09:04:23 -05:00
nx
ny
nz
oa
ob obs-cmd: 0.17.9 -> 0.18.0 2024-11-30 21:28:18 +00:00
oc
od
oe
of
og
oh
oi
ok
ol
om omnisharp-roslyn: bump from .NET 6 to 8, add support for 9 2024-12-01 00:38:55 +01:00
on treewide: remove AndersonTorres from maintainers (#360292) 2024-12-01 18:08:16 +08:00
oo
op openvswitch: 3.4.0 -> 3.4.1 (#345621) 2024-12-02 08:53:54 -05:00
oq
or orchard: 0.24.1 -> 0.25.2 (#360632) 2024-12-01 08:56:31 -05:00
os
ot
ou
ov
ow
ox ox: 0.7.1 -> 0.7.2 (#359879) 2024-11-30 21:51:05 +00:00
p0/p0f
p1/p11-kit
p2/p2pool
p3/p3x-onenote
p4/p4d
p9/p910nd
pa parlay: init at 0.6.0 (#324684) 2024-12-01 16:44:12 +02:00
pb
pc
pd gdal: 3.9.3 -> 3.10.0 (#355220) 2024-12-01 09:11:17 -06:00
pe pet: 0.9.0 -> 1.0.0 2024-11-30 17:30:52 +00:00
pf
pg Merge: postgresqlPackages.pg-gvm: move from top-level package (#359421) 2024-11-30 14:15:53 +01:00
ph phel: 0.13.0 -> 0.16.0 2024-12-01 16:27:44 +01:00
pi pinact: format and add updateScript (#353998) 2024-12-02 18:40:15 +11:00
pk
pl
pm
pn
po podman-tui: 1.2.3 -> 1.3.0 (#360795) 2024-12-02 07:49:30 +00:00
pp
pq
pr protolint: 0.50.5 -> 0.51.0 (#360938) 2024-12-02 08:22:36 -05:00
ps
pt
pu pupdate: 3.19.0 -> 3.20.0 (#360343) 2024-12-01 23:21:12 +04:00
pv
pw
px
py pyrosimple: 2.14.0 -> 2.14.1 (#360912) 2024-12-02 08:27:54 -05:00
pz/pzip
q2/q2pro
q-/q-text-as-data
qa
qb
qc
qd
qe
qg
qh/qhull
qi/qidi-slicer-bin
qm
qn/qnial
qo
qp
qq
qr
qs
qt
qu quba: 1.4.0 -> 1.4.2 (#360955) 2024-12-02 08:35:41 -05:00
qw/qwerty-fr
r0/r0vm
r1
r2 treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
r5/r53-ddns
ra rattler-build: 0.29.0 -> 0.31.1 2024-11-30 15:06:30 +00:00
rb
rc
rd
re treewide: remove AndersonTorres from maintainers (#360292) 2024-12-01 18:08:16 +08:00
rf rfc: 1.0.0 -> 1.0.1 2024-11-30 10:25:00 +00:00
rg
rh
ri treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
rk
rl
rm
rn
ro root: 6.32.08 -> 6.34.00 (#342062) 2024-12-01 11:35:39 -05:00
rp
rq
rr
rs
rt
ru rucola: init at 0.4.1 (#341286) 2024-12-01 18:40:20 +08:00
rv/rvvm
rw
rx
ry
rz/rzip
s0/s0ix-selftest-tool
s2
s3
s4/s4cmd
s5
s7/s7
s9/s9fes
s-
sa saleae-logic-2: fix appimageTools version 2024-12-01 11:07:26 +01:00
sb
sc scaleway-cli: 2.34.0 -> 2.35.0 (#360149) 2024-12-01 07:51:51 -06:00
sd various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
se servo: use rustPlatform.bindgenHook 2024-11-30 09:29:00 -05:00
sf
sg
sh shotcut: fix reference to ffmpeg in patch 2024-12-02 12:00:13 +01:00
si simplotask: 1.16.0 -> 1.16.1 (#360970) 2024-12-02 15:30:19 +04:00
sj/sjasmplus
sk
sl
sm smartcat: 2.1.0 -> 2.2.0 (#360825) 2024-12-01 22:01:39 +00:00
sn
so various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
sp spacectl: 1.6.0 -> 1.7.1 2024-11-30 22:30:23 +00:00
sq
sr
ss appimageTools: use version (#359930) 2024-12-01 08:12:40 -08:00
st appimageTools: use version (#359930) 2024-12-01 08:12:40 -08:00
su Merge: sudo: 1.9.16 -> 1.9.16p2 (#355672) 2024-12-01 15:49:45 +01:00
sv svkbd: 0.4.1 -> 0.4.2 (#359414) 2024-12-01 17:57:58 -08:00
sw nixos/activation, switch-to-configuration-ng, doc: improve NIXOS_LUSTRATE installation experience (#349049) 2024-12-01 19:16:26 +02:00
sx
sy
sz
t1
t4/t4kcommon
t-/t-rex t-rex: broken with rust 1.80, won't be fixed upstream 2024-12-02 05:13:06 +00:00
ta
tb tbls: 1.78.0 -> 1.79.4 2024-11-30 08:15:30 +00:00
tc
td
te terraform-compliance: 1.3.48 -> 1.3.49 (#360676) 2024-12-02 11:21:37 +00:00
tf
tg
th thrift-ls: 0.2.2 -> 0.2.5 2024-11-30 15:07:58 +00:00
ti tio: 3.7 -> 3.8 (#360518) 2024-12-01 09:46:41 -05:00
tk
tl
tm
tn
to
tp
tq/tqsl
tr trojan-rs: init at 0.16.0-unstable-2024-11-21 2024-12-02 01:28:53 +08:00
ts ts_query_ls: init at 1.0.1 (#350834) 2024-12-01 18:07:28 +01:00
tt
tu turn-rs: 3.1.0 -> 3.2.0 2024-12-01 14:42:08 +00:00
tv
tw
tx
ty typos: 1.27.3 -> 1.28.1 2024-12-02 13:43:22 +09:00
tz
u0/u001-font
u2/u2ps
u3/u3-tool
u9/u9fs
u-
ua
ub
uc
ud
ue
uf
ug
uh
ui
uk/ukmm
ul
um
un
up updatecli: 0.82.0 -> 0.88.0 (#360016) 2024-11-30 17:34:59 +00:00
uq
ur
us
ut
uu
uv
uw
ux
v2
v4/v4l2-relayd
va vals: 0.37.7 -> 0.37.8 2024-11-30 23:09:06 +00:00
vb
vc
vd
ve vencord: 1.10.7 -> 1.10.8 (#360267) 2024-11-30 18:44:43 +01:00
vf/vfkit
vg
vh
vi viu: 1.5.0 -> 1.5.1 2024-12-01 11:06:46 +00:00
vk treewide: remove AndersonTorres from maintainers (#360292) 2024-12-01 18:08:16 +08:00
vl
vm
vn
vo
vp
vr
vs
vt
vu
vv
vw
vx/vxl
vy
vz/vzic
w3/w3m
w_
wa treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
wb various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
wc
wd
we webdav: 5.4.3 -> 5.4.4 2024-11-29 23:53:16 +01:00
wf
wg wget: modernize and use PCRE2 instead of PCRE1 (#360567) 2024-12-01 18:55:13 +01:00
wh
wi winbox4: add savalet as a maintainer 2024-12-01 19:22:15 +01:00
wk/wkhtmltopdf
wl
wm
wo treewide: add --enable-wayland-ime flag to all Electron packages that uses NIXOS_OZONE_WL (#358620) 2024-11-29 18:48:23 +01:00
wp
wq
wr
ws
wt various: remove AndersonTorres from maintainers 2024-11-30 16:29:06 -03:00
wu
wv
ww/wwcd
wx
wy
x1
x2
x3/x3270
x4
x8/x86info
x-/x-create-mouse-void
xa xautocfg: init at 1.2 (#335733) 2024-11-30 23:25:53 +08:00
xb
xc
xd
xe xen-guest-agent: remove unused clang from build closure 2024-12-01 17:03:30 +08:00
xf
xg
xh
xi
xj
xk
xl xlogo: 1.0.6 -> 1.0.7 2024-12-02 14:10:30 +00:00
xm
xn
xo
xp xpipe: 12.0 -> 13.2 (#358493) 2024-12-01 15:07:58 +01:00
xq
xr
xs
xt xtf: 0-unstable-2024-09-13 -> 0-unstable-2024-11-01 2024-12-01 05:26:45 +00:00
xu
xv xv: 6.0.1 -> 6.0.2 2024-11-30 18:17:02 +00:00
xw
xx
xy/xylib
xz
ya yaml2json: 1.3.3 -> 1.3.4 2024-12-02 03:14:33 +00:00
yc/ycmd
yd
ye
yg
yj/yj
yl/yle-dl
ym
yo youtrack: 2024.3.47197 -> 2024.3.52635 2024-12-01 02:10:49 +00:00
yp/ypbind-mt
yq/yq-go
ys/ysfx
yt ytdownloader: 3.18.3 -> 3.18.4 (#360118) 2024-11-30 08:58:54 +00:00
yu
yx/yx
yy/yyjson
z8/z88dk
z-/z-lua
za
zb
zc
zd
ze Revert "zen-browser: init at 1.0.1-a.22" 2024-11-30 11:26:04 +08:00
zf
zg
zi zigbee2mqtt: 1.41.0 -> 1.42.0 2024-12-01 18:52:15 +01:00
zk
zl
zm
zn
zo
zp
zr/zrepl
zs zsh-wd: 0.9.1 -> 0.9.2 2024-12-01 00:08:10 +00:00
zt
zu
zv/zvbi
zw/zwave-js-server
zx
zy/zydis
zz
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 attribute name corresponding to the package, and so is the lowercase 2-letter prefix of the attribute 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. Since it would take a lot of contributor and reviewer time to migrate all packages manually, an automated migration is planned, though it is expected to still take some time to get done. If you're interested in helping out with this effort, please see this ticket.

Since only PRs to packages in pkgs/by-name can be automatically merged, if package maintainers would like to use this feature, they are welcome to migrate their packages to pkgs/by-name. To lessen PR traffic, they're encouraged to also perform some more general maintenance on the package in the same PR, though this is not required and must not be expected.

Note that callPackage definitions in all-packages.nix with custom arguments should not be removed. That is a backwards-incompatible change because it changes the .override interface. Such packages may still be moved to pkgs/by-name however, in order to avoid the slightly superficial choice of directory / category in which the default.nix file was placed, but please keep the definition in all-packages.nix using callPackage. See also changing implicit attribute defaults.

Definitions like the following however, can be transitioned:

# all-packages.nix
fooWithBaz = foo.override {
  bar = baz;
};
# turned into pkgs/by-name/fo/fooWithBaz/package.nix with:
{
  foo,
  baz,
}:

foo.override {
  bar = baz;
}

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-vet tool.

You can locally emulate the CI check using

$ ./ci/nixpkgs-vet.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;
}