nixpkgs/pkgs/by-name
maxine 5320c114d3
Merge pull request #279259 from martinjlowm/maintainer
dynamodb-local: Add martinjlowm as maintainer
2024-01-12 20:47:43 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa aaaaxy: 1.4.101 -> 1.4.119 2023-12-11 22:14:48 +01:00
ab/aba aba: 0.7.1 -> 0.8.0 2023-12-02 21:48:35 -03:00
ac
ad ad-miner: init at 0.6.0 2023-12-14 14:50:02 +01:00
ae/aeron-cpp aeron-cpp: init at 1.42.1 2023-12-08 16:38:18 +00:00
af/afterstep
ai airlift: drop dependency on argparse 2023-12-20 20:10:30 +01:00
al alephone: 1.6.2 -> 1.7 2023-12-10 09:25:34 +00:00
am amazon-ssm-agent: 3.2.1798.0 -> 3.2.2086.0 2023-12-31 04:03:17 +00:00
an Merge pull request #278826 from running-grass/update_anytype 2024-01-05 10:28:30 -05:00
ao/aocl-utils
ap apt: 2.7.7 -> 2.7.8 2024-01-09 09:40:49 +00:00
ar armitage: init at unstable-2022-12-05 2023-12-31 13:02:10 +11:00
as ast-grep: 0.16.1 -> 0.17.0 2024-01-12 09:48:21 +05:30
at/athens athens: 0.13.0 -> 0.13.1 2024-01-04 13:40:28 +01:00
au/auto-epp
av/avr-sim avr-sim: init at 2.8 2023-11-30 08:19:36 +01:00
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 bemoji: 0.3.0 -> 0.3.0 (fix commit) 2024-01-03 21:32:51 +01:00
bi Merge master into staging-next 2024-01-07 18:00:54 +00:00
bk/bk
bl bluetuith: add update script 2023-12-31 09:40:40 +01:00
bm/bmake
bn/bngblaster bngblaster: init at 0.8.29 2023-12-03 11:14:11 +01:00
bo boogie: 3.0.6 -> 3.0.9 2023-12-13 08:18:51 +00:00
br bruno: 1.5.1 -> 1.6.1 2024-01-06 10:33:03 +00:00
bu Merge pull request #271211 from ehmry/butt 2023-12-02 00:12:07 +11:00
by/bytecode-viewer bytecode-viewer: init at 2.12 2024-01-10 15:15:14 +01:00
c2 c2fmzq: 0.4.16 -> 0.4.17 2023-12-31 05:52:08 +00:00
ca cansina: init at 0.9 2024-01-01 12:06:00 +01:00
cb/cbmbasic
cd
ce centrifugo: 5.1.2 -> 5.2.0 2023-12-31 08:23:34 +00:00
cg/cgl
ch/changelog-d
ci
cl Merge pull request #273706 from r-ryantm/auto-update/cljfmt 2024-01-03 16:20:30 +01:00
cm cmake: drop libatomic workaround for riscv 2023-12-16 16:27:08 -05:00
cn/cntb
co codeium: 1.6.18 -> 1.6.20 2024-01-09 14:22:33 +01:00
cp cpuset: remove thiagokokada from maintainers 2024-01-08 16:23:39 +00:00
cr crc: move to by-name 2023-12-30 11:25:10 +01:00
cs/csvlens csvlens: init at 0.5.1 2024-01-08 13:51:47 +09:00
ct/ctx
cy
cz/czkawka czkawka: migrate to by-name 2024-01-04 18:22:49 -03:00
da/dark-mode-notify
db/dbus-cpp treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck 2023-11-30 18:56:12 +01:00
de decent-sampler: init at 1.9.4 2023-12-21 12:15:42 +09:30
di disko: init at 1.3.0 2024-01-08 08:27:01 +01:00
dj/djent
dm dmarc-report-converter: init at 0.6.5 2024-01-02 10:46:31 +01:00
do dosbox-staging: patches to deal with pagesize detection 2024-01-07 22:55:02 -03:00
dr/drone-scp drone-scp: 1.6.13 -> 1.6.14 2024-01-05 04:27:41 +00:00
dt/dtcmp
du durden: unstable-2023-08-11 -> unstable-2023-10-23 2023-12-05 23:04:47 -03:00
dv/dvb-apps
dx
dy dynamodb-local: Add martinjlowm as maintainer 2024-01-07 00:58:26 +01:00
eb/ebpf-usb ebpf-usb: init at unstable-2022-04-03 after PR review feedback 2024-01-09 22:55:39 -06:00
ec
ed/eduvpn-client eduvpn-client: init at 4.2.0 2024-01-08 12:04:10 +01:00
ei eigenlayer: init at 0.5.0 2023-12-21 14:45:21 +02:00
ek/eksctl eksctl: 0.165.0 -> 0.167.0 2023-12-26 02:46:33 +00:00
el elektroid: move to name-based directory package 2024-01-03 10:17:50 +00:00
em Merge pull request #266658 from snf1k/emojify 2023-12-02 15:09:51 +01:00
en encled: init at unstable-2022-07-23 2024-01-03 22:40:34 +01:00
er eris-go: 20231119 -> 20231219 2024-01-04 06:24:03 +00:00
es espresso: init at 2.4 2024-01-04 11:03:39 +09:00
eu eurofurence: init at 2000-04-21 2024-01-12 09:50:48 +00:00
ez/eza eza: 0.17.0 -> 0.17.1 2024-01-11 16:30:04 +01:00
fa
fc
fe/feather feather: 2.6.1 -> 2.6.2 2024-01-05 08:27:32 +00:00
ff ff2mpv-go: use 'PATH' to invoke 'mpv' 2023-12-31 15:49:04 +00:00
fi
fl flarectl: 0.84.0 -> 0.85.0 2024-01-03 07:04:21 +00:00
fm fmtoy: Move to pkgs/by-name 2023-12-03 20:34:25 +01:00
fn/fnott
fo footswitch: unstable-2022-04-12 -> unstable-2023-10-10 2023-12-11 15:03:56 -05:00
fr freefilesync: migrate to by-name 2024-01-10 22:45:44 +01:00
ga
gb/gbar
gc gcli: 2.0.0 -> 2.1.0 2023-12-11 05:19:17 +00:00
ge get-google-fonts: init at unstable-2020-06-30 2023-12-02 17:02:01 +01:00
gh
gi gickup: 0.10.25 -> 0.10.26 2024-01-07 00:35:55 +00:00
gl glide-media-player: init at 0.6.1 2023-12-23 14:03:20 +08:00
gm/gmic
go goldwarden: 0.2.7 -> 0.2.9 2024-01-05 05:23:05 +00:00
gr grimblast: unstable-2023-10-03 -> unstable-2024-01-11 2024-01-11 14:16:20 +00:00
gt Merge pull request #272092 from UARTman/gtkclipblock 2024-01-09 18:15:41 +01:00
gu guile-lzma: don't strip on darwin 2023-12-05 00:47:20 +01:00
ha hare: unstable-2023-10-23 -> unstable-2023-11-27 2023-12-14 19:27:37 -03:00
hd/hdrop hdrop: 0.2.4 -> 0.3.0 2023-12-29 09:47:11 +00:00
he hercules: 3.13 -> 4.6 2023-12-09 00:27:53 +01:00
hi/hifile hifile: 0.9.9.6 -> 0.9.9.7 2023-12-26 13:27:48 +01:00
hj/hjson-go hjson-go: 4.3.1 -> 4.4.0 2023-12-15 22:39:18 +00:00
ho homeassistant-satellite: relax aiohttp constraint 2023-12-20 20:10:28 +01:00
ht htmx-lsp: init at 0.1.0 2023-12-30 02:28:11 -05:00
hu/hugo hugo: 0.121.1 -> 0.121.2 2024-01-05 20:02:20 +05:30
hy
i3 i3-open-next-ws: init at 0.1.5 2023-12-14 02:10:58 +01:00
ia/ia-writer-quattro ia-writer-quattro: init at unstable-2023-06-16 2023-12-04 00:29:33 +01:00
ic/icewm icewm: 3.4.4 -> 3.4.5 2023-12-29 08:25:22 +00:00
id/idsk idsk: refactor 2023-12-10 14:42:19 +01:00
if/ifrextractor-rs
ig/ignite-cli ignite-cli: init at 28.1.0 2023-12-26 10:18:59 +10:00
ii/iir1 iir1: migrate to by-name 2024-01-07 22:55:02 -03:00
im appimage-run: add libthai 2023-11-30 12:50:44 +01:00
in Merge pull request #263345 from hacker1024/feature/pub2nix 2024-01-05 16:34:07 +01:00
ir/ironbar
ja jasp-desktop: init at 0.18.2 2024-01-11 00:45:52 +01:00
ji jigdo: 0.7.3 -> 0.8.2, refactor 2023-12-10 23:10:35 +01:00
jj/jj jj: init at 1.9.2 2023-12-16 16:22:51 +01:00
jo/joycond-cemuhook
ju/justbuild justbuild: 1.2.1 -> 1.2.4 2024-01-04 20:02:18 +01:00
ka kas: init at 4.1 2023-12-17 13:34:19 +01:00
kc/kconfig-frontends
kd/kdsingleapplication kdsingleapplication: 1.0.0 -> 1.1.0 2023-12-22 19:35:14 +00:00
ke
kg/kgeotag kgeotag: 1.4.0 -> 1.5.0 2024-01-05 05:37:50 +00:00
ki python311Packages.wxpython: rename from wxPython_4_2 2024-01-07 21:16:47 +01:00
kl/klog-time-tracker klog-time-tracker: init at 6.2 2023-11-30 21:15:55 +01:00
km/kmsvnc
ko kor: 0.3.2 -> 0.3.3 2024-01-11 04:59:00 +00:00
ks/kseexpr krita: 5.1.5 -> 5.2.0 2023-11-30 18:02:27 +01:00
kt Merge pull request #274758 from r-ryantm/auto-update/maven 2024-01-04 23:02:33 +01:00
ku kubo: 0.24.0 -> 0.25.0 2023-12-14 23:21:54 +01:00
kx/kxstitch kxstitch: init at unstable-2023-12-31 2024-01-01 23:04:52 +02:00
la Merge pull request #278985 from romildo/upd.labwc-tweaks 2024-01-11 19:11:01 -03:00
lc/lcab
le leaf: 0.1.0 -> 0.2.0 2024-01-05 18:37:35 -07:00
li Merge pull request #275544 from CobaltCause/update-obs 2024-01-09 15:23:44 -06:00
ll llama-cpp: fix cuda support; integrate upstream 2023-12-31 16:57:28 +01:00
ln/lngen
lo loksh: reword 2024-01-04 16:38:41 -03:00
ls/lshw lshw: unstable-2023-03-20 -> 02.20 2024-01-08 14:53:57 +00:00
lu lutgen: add myself as maintainer 2024-01-03 09:10:49 -05:00
lw/lwgrp
lx/lxd-to-incus lxd-to-incus: 0.3.0 -> 0.4.0 2023-12-21 14:20:18 -05:00
lz/lzsa lzsa: init at 1.4.1 2023-12-10 22:24:00 -03:00
m2
ma Merge pull request #242038 from emilytrau/maccy 2024-01-04 15:02:55 +11:00
mc mcomix: make chardet/pdf optional 2024-01-08 13:23:31 +00:00
me Merge master into staging-next 2024-01-07 18:00:54 +00:00
mf/mfoc-hardnested
mi minetest-mapserver: 4.7.0 -> 4.8.0 2023-12-28 08:12:38 +00:00
mk mkbootimage: init at 2.3-unstable-2022-05-26 2023-12-04 10:19:39 +08:00
ml/mlx42
mo morewaita-icon-theme: init at 42.3 2024-01-12 06:12:46 +01:00
mp/mpifileutils
ms/msolve msolve: 0.6.1 -> 0.6.3 2023-12-17 16:31:47 +01:00
mu multirun: init at 1.1.3 2023-12-25 10:23:30 -05:00
my/mystmd mystmd: 1.1.36 -> 1.1.37 2023-12-23 04:20:00 +00:00
n2/n2
na namespace-cli: 0.0.322 -> 0.0.328 2024-01-10 05:28:18 +00:00
nc/ncdc ncdc: 1.23.1 -> 1.24 2024-01-09 10:58:44 +00:00
ne Merge pull request #280060 from drupol/init/newcomputermodern-5-02 2024-01-11 20:16:13 +01:00
nf/nfft
nh/nh nh: use makeBinaryWrapper 2024-01-10 15:21:30 -05:00
ni Merge pull request #269716 from liclac/nix-web-0.2.0 2024-01-12 20:09:33 +01:00
nl nlohmann_json_schema_validator: init at 2.3.0 2023-12-22 11:21:49 +01:00
nn/nncp
no nom: 2.1.0 -> 2.1.1 2024-01-10 13:33:44 +01:00
np/npm-lockfile-fix npm-lockfile-fix: init at 0.1.0 2023-12-31 12:35:35 -03:00
nr/nrpl
ns
nu nucleiparser: source is now tagged 2024-01-12 00:33:08 +01:00
nv/nvidia-texture-tools nvidia-texture-tools: migrate to by-name 2023-12-23 00:35:52 +01:00
nw/nwg-drawer nwg-drawer: 0.4.1 -> 0.4.3 2023-12-05 19:09:26 +00:00
oa Merge pull request #199993 from wentasah/oauth2ms 2023-12-11 09:31:07 -05:00
oc ocenaudio: 3.13.2 -> 3.13.3 2023-12-29 15:28:58 +01:00
oe/oelint-adv oelint-adv: 3.26.6 -> 3.26.12 2024-01-07 22:47:32 +00:00
of/offpunk offpunk: Add passthru.tests.version 2023-12-12 20:28:05 +01:00
oh/oh-my-fish
on onedriver: add wrapGAppsHook 2024-01-04 00:22:09 +09:00
op openswitcher: init at 0.9.1 2024-01-10 01:18:35 +01:00
or/orchard orchard: 0.14.3 -> 0.15.0 2023-12-17 12:30:01 +00:00
ot oterm: 0.1.17 -> 0.1.18 2024-01-10 20:02:12 +03:00
ou/outputcheck
ov Merge pull request #269055 from mrcjkb/overskride 2023-12-28 16:09:14 +01:00
ow/owncloud-client owncloud-client: 5.0.0 -> 5.2.1 2024-01-04 23:32:58 +02:00
pa Merge pull request #264706 from proglottis/par2cmdline-turbo_init 2024-01-10 21:38:48 +01:00
pd pdfrip: init at 2.0.1 2024-01-12 00:35:29 +01:00
pe Merge pull request #259393 from OPNA2608/init/persistent-cache-cpp 2023-12-18 14:07:24 +01:00
pg/pgmoneta pgmoneta: 0.7.2 -> 0.7.3 2023-12-29 10:48:08 +00:00
ph pharo: 10.0.8 -> 10.0.9-de76067 2024-01-12 09:51:25 +00:00
pi pipeworld: unstable-2023-03-02 -> unstable-2023-02-05 2023-12-05 23:04:47 -03:00
pk/pkcrack
pl pls: 0.0.1-beta.2 -> 0.0.1-beta.4 2024-01-06 13:47:09 +01:00
po postlight-parser: init at 2.2.3 2024-01-10 20:56:25 +11:00
pp/ppsspp
pr promptfoo: 0.33.2 -> 0.35.0 2024-01-08 10:28:21 -08: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 pyprland: 1.6.9 -> 1.6.10 2024-01-04 18:12:10 +03:00
pz/pzip
qa/qadwaitadecorations
qr Merge pull request #275544 from CobaltCause/update-obs 2024-01-09 15:23:44 -06:00
qs/qspeakers qspeakers: init at 1.6.9 2023-12-31 10:34:33 +01:00
qu quickjs-ng: init at 0.3.0 2023-12-25 04:20:00 +00:00
ra raft-cowsql: 0.18.3 -> 0.19.1 2024-01-04 18:42:32 +00:00
rc rclip: init at 1.7.6 2023-12-06 16:20:02 +08:00
re Merge pull request #277647 from viraptor/bump-archivebox-2 2024-01-10 13:27:39 +01:00
ri ripunzip: init at 1.1.0 2024-01-02 23:19:49 +01:00
ro roxterm: refactor 2023-12-29 15:23:33 -03:00
rp/rpcs3
rq/rqbit rqbit: 4.0.1 -> 5.4.0 2023-12-17 04:20:00 +00:00
rs nixos/rspamd-trainer: init; rspamd-trainer: init at unstable-2023-11-27 2023-12-27 10:35:53 +01:00
rt/rtl-sdr-osmocom
ru
sa salmon: init at 1.10.2 2024-01-06 23:10:53 +01:00
sc scalingo: 1.29.1 -> 1.30.0 2023-12-23 07:02:27 +00:00
sd SDL2_Pango: init at 2.1.5 2024-01-08 14:23:10 +01:00
se seabios: migrate to by-name 2023-12-11 08:22:52 -03:00
sg/sgfutils sgfutils: init at unstable-2017-11-27 2023-12-04 23:40:12 +02:00
sh shadershark: init at 0.1 2024-01-10 13:33:40 -03:00
si sirius: fixup build with gcc13 2024-01-11 17:19:22 +01: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 sov: 0.93 -> 0.94 2023-12-23 11:43:05 +00:00
sp spfft: fix CUDA build 2024-01-08 20:25:56 +01:00
sr src: 1.32 -> 1.33 2024-01-03 23:00:25 -03:00
ss/sssnake sshx: split components, unstable-2023-11-04 -> unstable-2023-11-23 2023-12-04 05:33:26 +02:00
st steamguard-cli: 0.12.3 -> 0.12.5 2023-12-09 11:28:05 +00:00
su Merge pull request #265689 from natsukium/sudachi/init 2023-12-25 00:02:23 +01:00
sv/svix-server
sw swayimg: 1.12 -> 2.0 2024-01-03 21:14:24 +01:00
sx sx: 2.1.7 -> 3.0 2024-01-08 12:28:17 +00:00
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 Merge pull request #280106 from r-ryantm/auto-update/terrapin-scanner 2024-01-11 10:43:46 +01:00
th Merge pull request #261960 from eclairevoyant/themix-gui 2023-12-04 00:43:57 +01:00
ti tinyxml-2: migrate to by-name 2023-12-31 17:05:46 -03:00
tk/tkdiff
tl/tlrc tlrc: 1.7.1 -> 1.8.0 2023-11-30 21:04:25 +01:00
tm/tmuxifier
to/torrentstream
tp
tr Merge pull request #277459 from tengkuizdihar/init-treedome 2024-01-09 10:38:00 -05:00
tt/ttop ttop: 1.2.7 -> 1.2.8 2023-12-13 23:40:56 +01:00
tu tup: decompose setup hook into more functions 2024-01-04 06:24:03 +00:00
tx/txr txr: 292 -> 293 2023-12-30 08:21:36 +00:00
ty typst: 0.9.0 -> 0.10.0 2023-12-04 17:15:02 +01:00
uc ucode: init at 0.0.20231102 2023-12-07 12:19:06 +01:00
ud udebug: init at unstable-2023-11-28 2023-12-07 12:19:06 +01:00
ui uiua: 0.7.0 -> 0.7.1 2023-12-19 07:10:13 +01:00
un Merge pull request #279816 from r-ryantm/auto-update/universal-android-debloater 2024-01-10 10:55:56 -05:00
up
us/usql usql: 0.17.2 -> 0.17.4 2024-01-05 04:48:09 +00:00
ut/ut ut: 2.0.0 -> 2.0.1 2023-12-24 21:53:07 +00:00
uu/uuu
ux/uxn uxn: unstable-2023-12-25 -> unstable-2024-01-04 2024-01-05 23:21:14 +00:00
va/valijson valijson: 1.0.1 -> 1.0.2 2023-12-25 00:47:17 +00:00
vc Merge pull request #276587 from r-ryantm/auto-update/vcpkg 2024-01-01 09:17:44 +09:00
ve verdict: init at 1.4.2 2023-12-28 10:15:46 -05:00
vg/vgm2x vgm2x: 0.0.0-unstable-2023-05-10 -> 0.0.0-unstable-2023-08-27 2023-12-03 20:34:25 +01:00
vi Merge pull request #276396 from nyabinary/vinegar-1.6.0 2023-12-31 15:04:03 +01:00
wa waybar-mpris: remove unused dependency 2023-12-30 20:55:22 +01:00
wb/wb32-dfu-updater
we Merge remote-tracking branch 'origin/master' into staging-next 2024-01-09 22:42:37 +03:00
wh whistle: 2.9.61 -> 2.9.62 2024-01-06 03:15:15 +00:00
wi win2xcur: init at 0.1.2 2024-01-02 14:54:21 +01:00
wl wlvncc: init at unstable-2023-01-05 2024-01-09 21:44:50 +01:00
wo
wp/wp-cli wp-cli: allow overriding entire config file 2023-11-30 20:44:09 +01:00
ws/wslay
wt/wtfis
x1/x16 x16.emulator: 45 -> 46 2023-12-10 22:24:00 -03:00
xa/xarcan xarcan: unstable-2022-06-14 -> unstable-2023-11-03 2023-12-05 23:04:47 -03:00
xd xdg-terminal-exec: init at unstable-2023-12-08 2023-12-11 13:01:33 +01:00
xm/xmldiff
xo xorriso: update hash 2023-12-06 14:06:36 +01:00
xp/xplr xplr: 0.21.3 -> 0.21.5 2024-01-04 05:23:15 +00:00
xs xsct: 2.0 -> 2.1 2024-01-06 04:49:55 +00:00
xw/xwayland-run xwayland-run: init at 0.0.2 2023-12-18 16:44:05 -03:00
ye/yeahwm
yg/yggdrasil yggdrasil: 0.5.2 → 0.5.4 2023-12-06 07:15:16 +00:00
yt ytree: migrate to by-name 2023-12-01 12:44:16 -03:00
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
zo/zola zola: 0.17.2 -> 0.18.0 2023-12-26 18:25:19 -05:00
zp
zs/zs
zu/zug krita: 5.1.5 -> 5.2.0 2023-11-30 18:02:27 +01:00
zw/zwave-js-server zwave-js-server: 1.33.0 -> 1.34.0 2023-12-25 07:27:48 +00:00
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.