nixpkgs/pkgs/by-name
2024-08-29 09:29:38 +02:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa aaaaxy: 1.5.173 -> 1.5.183 2024-08-26 12:31:53 +00:00
ab
ac
ad adwaita-icon-theme-legacy: init at 46.2 2024-08-26 12:57:50 +05:30
ae aegisub: change --replace to --replace-fail 2024-08-27 16:33:29 +02:00
af
ag
ai aider-chat: 0.51.0 -> 0.53.0 2024-08-28 10:26:29 +00:00
al ffmpeg_4: almost drop (#336401) 2024-08-27 22:08:20 +02:00
am amazon-ssm-agent: 3.3.551.0 -> 3.3.808.0 2024-08-27 12:39:14 +00:00
an ananicy-rules-cachyos: 0-unstable-2024-07-27 -> 0-unstable-2024-08-26 (#337863) 2024-08-28 10:02:53 +05:30
ao/aocl-utils
ap application-title-bar: 0.7.0 -> 0.7.2 2024-08-26 01:00:43 +00:00
aq/aquamarine
ar arkenfox-userjs: 126.1 -> 128.0 2024-08-26 19:55:09 +08:00
as ast-grep: 0.24.1 -> 0.26.3 2024-08-27 07:36:42 +00:00
at Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
au treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
av
aw aws-sso-cli: skip broken TestServerWithSSL 2024-08-21 20:46:51 -05:00
ax
ay
az Merge pull request #336288 from katexochen/azure-cli/socks 2024-08-21 09:58:51 -03:00
b3/b3sum
ba basedpyright: 1.17.0 -> 1.17.1 2024-08-28 15:53:21 +00:00
bc
bd
be betterdiscordctl: substitute --replace with --replace-fail 2024-08-25 17:59:23 +02:00
bi bitwarden-desktop: 2024.8.0 -> 2024.8.1 (#337755) 2024-08-28 19:23:32 -07:00
bk/bk
bl blockbench: use electron.dist 2024-08-27 21:37:14 +02:00
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br bruno: use electron.dist 2024-08-27 21:37:14 +02:00
bs
bt
bu bup: 0.33.3 -> 0.33.4 (#337403) 2024-08-27 08:12:48 +02:00
by
c-
c2
ca caprine: use electron.dist 2024-08-27 21:37:14 +02:00
cb
cc
cd
ce Merge pull request #334221 from superherointj/ceph-csi-refactor 2024-08-23 15:33:29 -03:00
cg
ch chatzone-desktop: init at 5.2.1 (#311654) 2024-08-27 16:52:39 +02:00
ci cinny-desktop: 4.0.3 -> 4.1.0, use hashRouter (#334805) 2024-08-27 05:17:18 +01:00
cj/cjs
cl clever-tools: 3.8.1 -> 3.8.2 2024-08-23 01:27:55 +00:00
cm treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
cn
co cosmic-screenshot: unstable-2023-11-08 -> 1.0.0-alpha.1 (#335381) 2024-08-28 19:42:36 +00:00
cp
cq/cq
cr crabfit-api: fix Rust 1.80.0 build regression 2024-08-24 21:58:48 +02:00
cs
ct/ctx
cu Merge pull request #308317 from Pandapip1/init-cups-idprt 2024-08-22 15:00:07 +02:00
cv/cvemap
cy
cz/czkawka
da dapr-cli: 1.14.0 -> 1.14.1 2024-08-21 17:59:31 +00:00
db
dc
dd
de treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
dg/dgoss
dh/dhcpig
di diesel-cli: 2.2.1 -> 2.2.3 (#337382) 2024-08-26 18:28:43 -04:00
dj/djent
dm
dn dnsmap: init at 0.36-unstable-2024-08-20 2024-08-21 09:15:14 -06:00
do downonspot: 0.5.1 -> 0.6.0 2024-08-27 00:44:14 +00:00
dp
dr
ds
dt
du dummyhttp: 1.0.3 -> 1.1.0 2024-08-23 12:37:46 +00:00
dv/dvb-apps
dw
dx
dy
e1/e1s
ea
eb
ec
ed edk2: 202405 -> 202408 2024-08-27 15:14:52 +00:00
ee/eepers
ef/efibootmgr
eg/eg25-manager
ei Merge pull request #336715 from r-ryantm/auto-update/eigenlayer 2024-08-23 15:17:58 -04:00
ej/ejsonkms
ek/eksctl
el
em
en
eo/eog
ep
er eris-go: 20240128 -> 20240826 2024-08-27 05:00:44 +00:00
es
et
eu
ev
ew/eww
ex
ey/eyewitness
ez/eza eza: 0.19.0 -> 0.19.1 2024-08-28 14:19:59 +02:00
f2/f2fs-tools
fa tree-wide: remove eelco as maintainer from things he no longer maintains (#336287) 2024-08-26 20:39:56 +02:00
fb/fbset
fc
fe feishin: use electron.dist 2024-08-27 21:37:15 +02:00
ff ffmpeg-normalize: move to pkgs/by-name 2024-08-28 11:03:35 +02:00
fg/fgqcanvas
fi firefly-iii-data-importer: init at 1.5.4 2024-08-28 08:29:32 +02:00
fj/fjo
fl flarectl: 0.102.0 -> 0.103.0 2024-08-28 13:25:35 +00:00
fm fmtoy: 0-unstable-2024-06-07 -> 0-unstable-2024-06-11 (#325489) 2024-08-28 10:12:53 +02:00
fn/fnott
fo footage: init at 1.3.2 (#336976) 2024-08-27 11:57:31 +02:00
fr frankenphp: 1.2.4 -> 1.2.5 2024-08-28 00:56:55 +00:00
fs
ft/fte
fu
fv
fw/fwupd fwupd: 1.9.23 -> 1.9.24 2024-08-22 13:59:12 +02:00
fx/fx
fy fyne: 2.5.0 -> 2.5.1 2024-08-25 21:25:44 +00:00
fz
g3/g3kb-switch
ga treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
gb
gc
gd gdm-settings: fix eval 2024-08-24 02:17:34 +02:00
ge getmail6: 6.19.03 -> 6.19.04 2024-08-25 13:15:08 -07:00
gf Merge pull request #331978 from r-ryantm/auto-update/gfal2 2024-08-22 23:20:49 -04:00
gg/gg
gh
gi treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
gk/gk-cli
gl glasskube: 0.16.0 -> 0.17.0 2024-08-26 16:45:46 -07:00
gm gmid: 2.1 -> 2.1.1 2024-08-25 13:04:26 +00:00
gn gnome-notes: Fix updateScript 2024-08-26 19:46:52 +08:00
go goofcord: use electron.dist 2024-08-27 21:37:15 +02:00
gp
gr grafana-alloy: 1.3.0 -> 1.3.1 2024-08-27 21:23:42 +02:00
gt Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
gu Merge pull request #335856 from museoa/guile-sqlite3 2024-08-23 17:12:41 -03:00
gv/gvisor
gx/gxml
h2/h2
h5/h5utils
h8/h8mail
ha harper: init at 0.9.5 (#335659) 2024-08-28 23:16:12 -04:00
hb/hb-honeypot
hc/hclfmt hclfmt: 2.21.0 -> 2.22.0 2024-08-26 13:03:28 +00:00
hd
he heptabase: 1.35.3 -> 1.35.4 (#337470) 2024-08-26 18:52:08 -04:00
hi Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
hj/hjson-go
hn/hn-text
ho Merge pull request #336313 from r-ryantm/auto-update/home-manager 2024-08-21 14:35:12 +02:00
hp
ht
hu
hv/hvm
hw/hwinfo hwinfo: add updater 2024-08-21 22:38:35 +02:00
hx/hxtools hxtools: init at 20231224 2024-08-25 15:01:04 +02:00
hy hyprland: fixed broken OpenGL on asahi linux 2024-08-25 03:15:27 -07:00
i2/i2p i2p: 2.6.0 -> 2.6.1 2024-08-25 19:52:56 +02:00
i3
ia
ic
id
if
ig
ii
ij ijq: 1.1.1 -> 1.1.2 2024-08-28 10:33:15 -05:00
im immich-go: 1.21.3 -> 0.22.0 2024-08-27 10:51:15 +00:00
in Merge pull request #306650 from returntoreality/indi-3rdparty-refactor 2024-08-25 23:09:21 +05:30
io
ip
ir
is isc-cron: adopt and wash 2024-08-23 12:22:22 -03:00
it
iv
iw/iw
iz/izrss
ja
jc/jcli
jd/jdt-language-server
je jellyfin: 10.9.7 -> 10.9.10 2024-08-25 16:48:30 +02:00
ji
jj/jj
jn
jo
jq/jq-zsh-plugin
jr Merge pull request #301914 from I-Al-Istannen/pkg/jreleaser-cli 2024-08-23 16:46:46 +02:00
js
jt/jtdx
ju
jw/jwasm
ka kanidm: require big-parallel for building 2024-08-28 17:55:32 -04:00
kc
kd
ke
kg/kgeotag
ki musly: add patches for FFmpeg 7, C++17, and external deps; kissfft: build with CMake; libresample: 0.1.3 -> 0.1.4-unstable-2024-08-23 (#332035) 2024-08-27 01:12:57 +01:00
kl
km
kn
ko koodo-reader: use electron.dist 2024-08-27 21:37:16 +02:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kx
ky
la labwc-menu-generator: 0-unstable-2024-05-27 -> 0.1.0-unstable-2024-07-09 2024-08-25 12:16:44 -03:00
lb
lc
ld
le legba: fix darwin build (#336084) 2024-08-27 09:07:46 -04:00
lg/lgogdownloader lgogdownloader: 3.14 -> 3.15 2024-08-23 17:14:12 +00:00
li musly: add patches for FFmpeg 7, C++17, and external deps; kissfft: build with CMake; libresample: 0.1.3 -> 0.1.4-unstable-2024-08-23 (#332035) 2024-08-27 01:12:57 +01:00
lk/lk-jwt-service
ll llama-cpp: 3565 -> 3620 2024-08-24 21:41:17 +00:00
lm lmstudio: 0.2.31 -> 0.3.1 2024-08-25 22:33:10 +02:00
ln/lngen
lo loopwm: 1.0.0 -> 1.1.1 2024-08-27 17:31:10 +01:00
lp
lr/lrcget
ls lsd: 1.1.3 -> 1.1.5 2024-08-26 13:01:33 +00:00
lt/ltris
lu lubelogger: 1.3.5 -> 1.3.6 2024-08-27 01:21:16 +00:00
lv/lv_font_conv
lw/lwgrp
lx lxc: added option for unprivileged containers (#310088) 2024-08-28 15:16:56 -04:00
lz
m1/m1ddc
m2
ma treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
mb
mc
md md-tui: 0.8.5 -> 0.8.6 2024-08-28 09:05:54 +02:00
me meteor-git: 0.22.0 -> 0.23.0 (#337833) 2024-08-28 03:00:28 +00:00
mf
mg
mi micro: 2.0.13 -> 2.0.14 2024-08-28 01:22:33 +00:00
mk
ml/mlx42
mo mosdepth: 0.3.8 -> 0.3.9 2024-08-28 01:22:07 +00:00
mp
mq mqtt-explorer: use electron.dist 2024-08-27 21:37:16 +02:00
mr/mricron
ms
mu musly: add patches for FFmpeg 7, C++17, and external deps; kissfft: build with CMake; libresample: 0.1.3 -> 0.1.4-unstable-2024-08-23 (#332035) 2024-08-27 01:12:57 +01:00
my
n2/n2
n8/n8n n8n: make deterministic, decrease closure size 2024-08-25 01:40:03 +02:00
n9/n98-magerun2
na nanopb: fix build by resolving name collision (#337119) 2024-08-26 21:23:31 +01:00
nb nbqa: 1.8.7 -> 1.9.0 (#337735) 2024-08-27 20:03:19 +02:00
nc
nd/ndstrim
ne nexusmods-app: use finalAttrs (#336221) 2024-08-28 07:59:29 -07:00
nf
ng
nh
ni nixfmt-rfc-style: unstable-2024-08-08 -> unstable-2024-08-16 2024-08-21 15:00:51 +02:00
nl
nm
nn
no novops: 0.15.0 -> 0.16.0 2024-08-28 01:41:08 +00:00
np
nr nrr: 0.9.4 -> 0.9.5 2024-08-26 07:22:01 +00:00
ns nstool: 1.9.0 -> 1.9.1 2024-08-21 20:13:06 +00:00
nt
nu
nv
nw nwg-panel: 0.9.37 -> 0.9.38 2024-08-28 12:37:48 +00:00
nx/nxengine-evo
nz Merge pull request #333931 from devusb/nzbget 2024-08-22 13:55:17 +02:00
oa oama: init at 0.14 2024-08-24 11:09:55 +12:00
ob
oc
od
oe/oelint-adv
of
oh
oi
ok okteto: 2.30.1 -> 2.30.2 2024-08-26 17:32:54 +00:00
ol
om
on
oo
op opshin: 0.22.0 -> 0.23.0 2024-08-27 12:20:32 +00:00
oq/oqs-provider
or orchard: 0.22.0 -> 0.22.1 2024-08-22 03:21:58 +00:00
os
ot oterm: 0.2.9 -> 0.4.2 2024-08-23 17:19:09 +00:00
ou
ov ovn: 24.03.2 -> 24.03.3 2024-08-24 12:50:52 +00:00
ow
pa Merge pull request #329102 from helsinki-systems/fix/parmetis-archive-org 2024-08-21 21:41:51 +01:00
pc pcsx2: 2.1.17 -> 2.1.102 2024-08-21 20:00:48 -03:00
pd Merge pull request #332074 from fgaz/pdf4tcl/init 2024-08-22 13:39:59 +02:00
pe petsc: moved mpiSupport flag to passthru 2024-08-24 12:10:31 +00:00
pf/pfft
pg pgraphs: 0.6.13 -> 0.6.17 (#333191) 2024-08-28 20:29:51 -04:00
ph
pi
pk
pl
pm pmbootstrap: fix darwin build 2024-08-23 16:51:16 +01:00
pn
po pop-launcher: prefer --replace-fail for substituteInPlace (#337457) 2024-08-28 19:33:34 +00:00
pp/ppsspp
pq
pr treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
ps
pt
pu Merge pull request #335896 from pbsds/bump-pulsar-1724017823 2024-08-21 19:45:37 +02:00
pv
pw
px/pxder
py pytr: init at 0.2.2 2024-08-25 12:40:26 -07:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm qcm: 1.0.4 -> 1.0.5 2024-08-26 12:21:11 +08:00
qd
qg/qgrep
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs qsv: init at 0.131.1 2024-08-22 17:40:46 -04:00
qt/qtractor
qu glxinfo: replace with mesa-demos 2024-08-28 14:38:12 +02:00
qw/qwerty-fr
r0/r0vm
r1/r10k
ra rabbit: 2.1.0 -> 2.2.0 2024-08-28 23:13:25 +02:00
rc rclip: 1.10.2 -> 1.10.3 2024-08-28 16:19:45 +08:00
rd/rdwatool
re renode-dts2repl: 0-unstable-2024-08-16 -> 0-unstable-2024-08-20 (#337648) 2024-08-28 11:44:23 +00:00
rf/rfdump
rh/rHttp
ri ride: use electron.dist 2024-08-27 21:37:17 +02:00
rk box64: 0.2.8 -> 0.3.0 (#326034) 2024-08-27 16:34:12 +02:00
rl/rl_json
rm
rn
ro roddhjav-apparmor-rules: 0-unstable-2024-08-06 -> 0-unstable-2024-08-26 2024-08-26 20:23:57 +00:00
rp/rpcs3 rpcs3: 0.0.32-16833-981a1c56f -> 0.0.32-16857-1c16ada67 2024-08-23 14:22:33 +00:00
rq rquickshare: 0.10.2 -> 0.11.2 2024-08-23 04:15:07 +00:00
rr/rrdtool
rs
rt rtorrent: 0.9.8-unstable-2024-08-09 -> 0.9.8-unstable-2024-08-20 2024-08-24 09:50:08 +00:00
ru ffmpeg_4: almost drop (#336401) 2024-08-27 22:08:20 +02:00
rw/rwpspread
ry ryujinx: 1.1.1376 -> 1.1.1379 2024-08-26 03:51:04 +00:00
s0/s0ix-selftest-tool s0ix-selftest-tool: 0-unstable-2024-08-13 -> 0-unstable-2024-08-20 2024-08-23 21:41:33 +00:00
s3
sa sabnzbd: 4.3.2 -> 4.3.3 2024-08-26 18:48:07 +00:00
sb sby: Fix description. Remove duplicated inputs. --replace-fail instead of --replace. Be specific about which files patchShebangs is applied to. Run hooks in installPhase. Use btor2tools as input now that is updated 2024-08-24 16:33:28 -05:00
sc scs: 3.2.3 -> 3.2.7 2024-08-24 19:25:17 +02:00
sd Merge pull request #329809 from reckenrode/SDL_image-fixes 2024-08-23 15:38:58 +02:00
se setzer: move to pkgs/by-name 2024-08-26 21:09:49 -07:00
sf/sfwbar
sg/sgfutils
sh Merge pull request #318197 from getchoo/pkgs/showtime/init 2024-08-26 11:52:13 +08:00
si siyuan: use electron.dist 2024-08-27 21:37:17 +02:00
sk skypeforlinux: adopt 2024-08-22 09:56:07 +00:00
sl slumber: 1.5.0 -> 1.8.1 2024-08-25 14:57:10 +02:00
sm
sn treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
so so: 0.4.9 -> 0.4.10 2024-08-23 18:33:59 -03:00
sp spicetify-cli: 2.37.2 -> 2.37.4 2024-08-25 15:09:28 -06:00
sq
sr
ss
st nixos/streamcontroller: init, streamcontroller: init at 1.5.0-beta.6-unstable-2024-08-13, pythonPackages.usb-monitor: init at 1.21 (#335545) 2024-08-28 11:38:05 +02:00
su treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
sv
sw sway-overfocus: 0.2.3-fix -> 0.2.4 2024-08-24 04:10:44 +00:00
sx
sy syndicate-server: init 0.46.0 2024-08-27 11:47:19 +00:00
t-/t-rex
ta Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
tb/tbump
tc Merge pull request #332069 from fgaz/tcludp/init 2024-08-22 13:38:59 +02:00
td Merge pull request #332077 from fgaz/tdom/init 2024-08-22 13:40:16 +02:00
te teams-for-linux: 1.4.27 -> 1.9.5 (#337868) 2024-08-28 20:17:47 -07:00
tg
th
ti tinymist: 0.11.19 -> 0.11.20 2024-08-26 20:55:50 +02:00
tk
tl
tm
to
tp
tr trealla: 2.55.22 -> 2.55.25 2024-08-26 19:34:16 +00:00
ts/tsm-client
tt
tu
tw
tx
ty typst-lsp: move to pkgs/by-name 2024-08-22 13:24:07 +02:00
ub
uc
ud Merge pull request #335418 from r-ryantm/auto-update/udev-gothic 2024-08-21 20:28:54 +02:00
ue
ug
uh/uhttpmock_1_0
ui uiua: 0.12.2 -> 0.12.3 2024-08-28 04:02:55 +00:00
um/umpire
un
up
ur/urban-cli
us
ut
uu/uuu
uv/uv uv: 0.3.3 -> 0.3.5 2024-08-28 00:57:06 +00:00
uw
ux uxn: 1.0-unstable-2024-08-12 -> 1.0-unstable-2024-08-25 2024-08-28 07:59:36 +00:00
va
vc maintainers: remove superherointj 2024-08-26 17:50:54 -03:00
vd/vdhcoapp
ve vesktop: use electron.dist 2024-08-27 21:37:18 +02:00
vg vgm2x: 0.0.0-unstable-2023-08-27 -> 0-unstable-2024-06-18 (#325500) 2024-08-28 10:13:26 +02:00
vi vimcats: init at 1.0.2 2024-08-28 11:10:07 +02:00
vk
vl
vm
vn
vo
vp
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa warp-terminal: Add Aarch64 support 2024-08-28 02:43:20 +02:00
wb
wc/wcurl
we werf: 2.10.3 -> 2.10.4 2024-08-25 08:59:33 +00:00
wf/wf-touch
wg/wg-access-server
wh
wi wiseunpacker: init at 1.3.3 (#336611) 2024-08-26 07:29:45 -07:00
wl
wo wowup-cf: 2.12.0 -> 2.20.0 2024-08-23 02:48:58 +00:00
wp
wr/wrangler
ws
wt
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa xarcan: 0-unstable-2024-08-04 -> 0-unstable-2024-08-26 2024-08-28 04:06:33 +00:00
xc
xd
xe Merge pull request #332099 from fabaff/xeol-darwin 2024-08-25 09:23:46 +02:00
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr
xs
xu/xunit-viewer
xv/xviewer
xw
ya yazi-unwrapped: 0.3.1 -> 0.3.2 2024-08-28 10:12:20 +01:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo youki: move to pkgs/by-name 2024-08-24 14:42:22 +02:00
ys/ysfx
yt
yu yubico-piv-tool: reformat and migrate to pkgs/by-name 2024-08-25 11:39:30 +02:00
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.149.6 -> 0.150.4 2024-08-28 13:02:38 -04:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp zpaqfranz: 60.5 -> 60.6 2024-08-26 00:38:15 +00:00
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;
}