nixpkgs/pkgs/by-name
Arian van Putten 4ab40e73a5
amazon-ssm-agent: add arianvp to maintainers
I use this package at work. Might as well start maintaining it.
2024-06-08 22:11:51 +03:00
..
_0/_0xpropo
_4
_6/_64gram _64gram: 1.1.23 -> 1.1.24 2024-06-01 06:38:32 +00:00
_9/_9base
a4/a4
a5/a52dec
aa aaaaxy: 1.5.129 -> 1.5.139 2024-06-03 23:18:43 +02:00
ab
ac
ad ad-miner: 1.3.0 -> 1.4.0 2024-06-07 23:26:05 +00:00
ae aegisub: fix build on darwin 2024-05-31 16:14:45 +02:00
af
ag
ai
al alt-tab-macos: refactor updateScript 2024-06-02 00:59:01 +03:00
am amazon-ssm-agent: add arianvp to maintainers 2024-06-08 22:11:51 +03:00
an ananicy-rules-cachyos: 0-unstable-2024-05-28 -> 0-unstable-2024-06-07 2024-06-07 21:00:07 +00:00
ao/aocl-utils
ap apt: 2.9.3 -> 2.9.4 2024-06-04 05:58:46 +00:00
ar arc-browser: 1.44.2-50412 -> 1.44.3-50502 2024-06-02 01:16:18 +03:00
as assetfinder: migrate to buildGoModule 2024-06-07 22:24:59 +02:00
at Merge pull request #316749 from SFrijters/atuin-conditional-completions 2024-06-05 13:14:22 +02:00
au Merge pull request #315383 from isabelroses/auto-cpufreq 2024-05-31 19:11:01 -07:00
av
aw
ax
ay
ba basedpyright: 1.12.3 -> 1.12.4 2024-06-04 15:56:58 +02:00
bc
bd/bdf2ttf
be Merge pull request #315363 from r-ryantm/auto-update/bee 2024-06-08 17:34:26 +02:00
bi Merge pull request #316018 from khaneliman/mainprogram 2024-05-31 22:50:10 +02:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo bonsai: make use of hareHook 2024-06-04 20:33:03 -03:00
bp
bq/bqn
br brickstore: 0-unstable-2024-05-02 -> 2024.5.2 2024-06-08 16:33:26 +02:00
bs
bt btanks: adopt (by AndersonTorres) and fixup 2024-06-04 08:19:10 -03:00
bu buffer: init at 0.9.2 2024-06-06 20:07:44 +02:00
by
c2 c2patool: 0.9.2 -> 0.9.3 2024-06-05 07:23:21 +00:00
c-
ca Merge pull request #316268 from isabelroses/catwalk 2024-06-05 03:06:42 +02:00
cb
cc ccache: make src reproducible 2024-06-02 08:13:54 -07:00
cd cdecl: 16.3 -> 16.4.1 2024-06-05 08:56:34 +02:00
ce Merge pull request #316778 from r-ryantm/auto-update/centerpiece 2024-06-06 08:29:22 -04:00
cg
ch Merge pull request #312528 from wegank/challenger-init 2024-06-07 11:55:45 +02:00
ci
cl Merge pull request #304749 from hatch01/clang-uml 2024-06-05 10:39:06 +02:00
cm
cn/cntb
co Merge pull request #315958 from r-ryantm/auto-update/cockpit 2024-06-08 16:06:33 +02:00
cp
cr crossplane: fix passthru.tests.version 2024-06-01 22:24:53 +02:00
cs
ct/ctx
cu
cv/cvemap
cy cyanrip: 0.9.2 -> 0.9.3.1 2024-06-05 15:49:52 +02:00
cz/czkawka
da
db Merge pull request #311405 from luftmensch-luftmensch/dbgate_5.2.7 2024-06-02 19:28:52 +02:00
dc/dc3dd
dd
de Merge pull request #252951 from TomaSajt/desktop-postflop 2024-06-06 01:17:05 +02:00
dg/dgoss
dh/dhcpig
di dillo: 3.1.0 -> 3.1.1 2024-06-08 12:49:08 +00:00
dj/djent
dm
dn
do Merge pull request #313393 from r-ryantm/auto-update/dorion 2024-06-02 18:21:33 +02:00
dp
dr
ds
dt
du dumbpipe: 0.9.0 -> 0.10.0 2024-06-08 00:39:11 +00:00
dv/dvb-apps
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ei eigenlayer: 0.8.0 -> 0.8.1 2024-06-01 03:38:29 +00:00
ek/eksctl eksctl: 0.179.0 -> 0.181.0 2024-06-05 11:50:35 +00:00
el
em
en
ep/epub-thumbnailer
er
es
et eta: init at 1.0.1 2024-06-02 15:33:18 +03:00
eu
ev Merge pull request #242114 from jn-sena/everforest-gtk-init 2024-06-02 23:39:53 +02:00
ew/eww
ex
ez/eza eza: 0.18.6 -> 0.18.7 2024-06-05 20:57:38 +02:00
fa Merge pull request #318072 from r-ryantm/auto-update/fastfetch 2024-06-08 00:26:42 +00:00
fb/fbset
fc Merge pull request #306787 from Guanran928/fcitx5-themes 2024-06-03 00:02:07 +02:00
fe
ff fflogs: 8.5.9 -> 8.5.10 2024-06-02 18:37:41 +00:00
fg/fgqcanvas
fi files-cli: 2.13.53 -> 2.13.65 2024-06-05 07:38:54 +00:00
fl Merge pull request #316144 from Aleksanaa/flutter-apps 2024-06-05 20:57:06 +02:00
fm fmtoy: 0-unstable-2024-04-18 -> 0-unstable-2024-06-07 2024-06-07 16:04:15 -04:00
fn/fnott
fo Merge pull request #312523 from emilylange/nixos-forgejo-secrets 2024-06-05 10:01:37 -04:00
fr frankenphp: 1.1.5 -> 1.2.0 2024-06-06 12:23:44 +02:00
fs
ft/fte
fu
fv
fw/fwupd
fy/fypp
fz
g3/g3kb-switch
ga Merge pull request #282756 from t4ccer/t4/gambit-project 2024-06-05 04:28:59 +02:00
gb
gc
gd gdtoolkit_3: 3.3.1 -> 3.5.0 2024-06-07 15:40:59 -04:00
ge geesefs: 0.41.0 -> 0.41.1 2024-06-07 14:22:39 +00:00
gf
gg/gg
gh gh-poi: 0.9.10 -> 0.10.1 2024-06-05 14:02:09 +00:00
gi Merge pull request #304857 from TomaSajt/git-toolbelt 2024-06-08 15:59:22 +02:00
gl
gm gmid: 2.0.2 -> 2.0.3 2024-06-04 14:44:19 +00:00
gn
go Merge pull request #316961 from eclairevoyant/electron-wrapper-fix 2024-06-06 16:48:14 +02:00
gp gpsprune: migrate to by-name 2024-06-08 19:08:42 +04:00
gr grafana-alloy: install shell completions 2024-06-06 22:13:32 +03:00
gt
gu guile-sdl: remove vyp 2024-06-04 08:19:10 -03:00
gv/gvisor
gx/gxml
h8/h8mail
ha haredo: make use of hareHook 2024-06-04 20:32:57 -03:00
hb/hb-honeypot
hd
he hermitcli: 0.39.1 -> 0.39.2 2024-05-31 01:32:32 +00:00
hi Merge pull request #312321 from DCsunset/highlight-pointer-init 2024-06-04 17:54:20 +02:00
hj/hjson-go
ho home-manager: 0-unstable-2024-05-30 -> 0-unstable-2024-06-04 2024-06-07 04:03:10 +00:00
ht
hu hugo: 0.126.2 -> 0.126.3 2024-06-03 14:36:42 +02:00
hy Merge pull request #307226 from OmnipotentEntity/hyperspeedcube-init 2024-06-05 04:15:20 +02:00
i2/i2p i2p: 2.5.1 -> 2.5.2 2024-05-30 08:53:23 +00:00
i3
ia
ic icewm: 3.5.0 -> 3.5.1 2024-06-07 01:13:45 +00:00
id
if/ifrextractor-rs
ig Merge pull request #310253 from r-ryantm/auto-update/igir 2024-06-02 16:13:40 +02:00
ii iina: format with nixfmt-rfc-style 2024-06-02 01:37:09 +03:00
ij/ijhttp ijhttp: init at 241.14494.240 2024-06-07 14:03:58 +02:00
im immich-go: 0.15.0 -> 0.16.0 2024-06-03 22:47:07 +02:00
in Merge pull request #316514 from r-ryantm/auto-update/incus 2024-06-01 23:21:51 -04:00
io/ioq3-scion
ip
ir irust: init at 1.71.23 2024-06-02 15:00:22 -03:00
is/iscc
it
iw/iw
iz/izrss izrss: 0.0.6 -> 0.1.0 2024-06-03 15:13:20 +01:00
ja jan: 0.4.14 -> 0.5.0 2024-06-03 17:51:59 +00:00
jd/jdt-language-server jdt-language-server: 1.31.0 -> 1.36.0 2024-06-03 11:55:10 +02:00
je
ji
jj/jj
jn jnv: remove no longer needed dependencies 2024-06-04 19:34:32 +03:00
jo
jq/jq-zsh-plugin
jr/jrl-cmakemodules jrl-cmakemodules: unstable-2024-04-11 -> 0-unstable-2024-05-22 2024-05-31 14:50:23 +02:00
js/jsoncons
jt/jtdx
ju Merge pull request #316156 from vlaci/just-127 2024-06-07 09:36:22 -04:00
ka Merge pull request #289359 from IogaMaster/kalamine 2024-06-08 15:34:30 +02:00
kc
kd
ke keypunch: set meta.platforms to linux only 2024-06-06 18:39:41 +02:00
kg/kgeotag
ki kiwitalk: use pnpm.fetchDeps 2024-06-02 19:56:11 +02:00
kl/klog-time-tracker
km
kn knxd: migrate to by-name 2024-06-04 20:56:20 +04:00
ko kor: 0.4.1 -> 0.4.2 2024-06-07 02:30:50 +00:00
kp/kplex
kr
ks
kt
ku Merge pull request #289357 from IogaMaster/kubefwd 2024-06-08 15:35:45 +02:00
kx
ky
la latexminted: 0.1.0b2 -> 0.1.0b5 2024-06-06 17:20:25 -03:00
lb
lc
ld ldc: 1.36.0 -> 1.38.0 2024-06-07 09:49:27 +12:00
le Merge pull request #287833 from Ligthiago/leetgo 2024-06-08 17:01:20 +02:00
li Merge pull request #316510 from doronbehar/pkg/xfmpc 2024-06-08 20:34:36 +03:00
lk/lk-jwt-service
ll llama-cpp: 3070 -> 3089 2024-06-06 08:18:00 +10:00
lm
ln/lngen
lo treewide: fix all obviously wrong mkEnableOptions 2024-06-03 13:20:32 +02:00
lp LPCNet: init at 0.5 2024-06-06 09:26:06 +03:00
ls
lt/ltris
lu Merge pull request #312928 from eliandoran/dev/lunacy-fix-toast 2024-05-31 22:35:56 +08:00
lw/lwgrp
lx lxgw-neoxihei: 1.123 -> 1.123.2 2024-06-07 01:19:10 +00:00
lz
m2
ma Merge pull request #315933 from zendo/upd/mangareader 2024-06-08 14:00:58 +08:00
mb
mc
md
me meli: add gpgme to runtime lib path 2024-06-04 17:02:18 +02:00
mf
mg
mi mini-calc: 3.1.0 -> 3.2.0 2024-06-06 03:45:04 +00:00
mk
ml/mlx42
mo mods: 1.3.1 -> 1.4.0 2024-06-07 01:41:27 -04:00
mp
mq
ms
mu muffon: init at 2.0.3 2024-06-03 20:21:44 +00:00
my Merge pull request #317979 from r-vdp/mycelium-0-5-3 2024-06-07 19:37:41 +03:00
n2/n2
na Merge pull request #317993 from misuzu/nats-kafka 2024-06-08 16:15:09 +02:00
nb/nbtscan
nc
nd/ndstrim
ne Merge pull request #317561 from matteo-pacini/needle 2024-06-06 15:55:47 +02:00
nf
ng
nh nh: 3.5.15 -> 3.5.16 2024-06-03 04:55:13 +00:00
ni nixos-anywhere: 1.2.0 -> 1.3.0 2024-06-07 16:16:59 +02:00
nl
nm/nmap-parse
nn/nncp
no Merge pull request #315793 from r-ryantm/auto-update/normaliz 2024-06-04 22:01:02 +02:00
np
nr nrr: 0.9.1 -> 0.9.2 2024-05-31 02:03:45 +00:00
ns
nt/ntfs2btrfs
nu nuclei-templates: 9.8.7 -> 9.8.8 2024-06-07 14:54:00 +00:00
nv
nw nwg-hello: 0.1.10 -> 0.2.0 2024-06-01 06:35:29 +00:00
nx/nxengine-evo
oa
ob
oc
oe/oelint-adv
of
oh oh-my-posh: 20.2.0 -> 21.0.1 2024-05-31 11:20:49 +00:00
oi oils-for-unix: reenable binary stripping 2024-06-03 15:57:29 -05:00
ok/okolors
ol ollama: 0.1.41 -> 0.1.42 2024-06-08 04:04:41 -04:00
om omnictl: 0.36.0 -> 0.37.0 2024-06-07 02:51:23 +00:00
on onscripter-en: remove abbradar 2024-06-04 08:19:11 -03:00
oo/oo7 oo7: init at 0.3.2 2024-05-30 10:07:03 +02:00
op Merge pull request #317080 from r-ryantm/auto-update/openpgp-card-tools 2024-06-06 13:51:24 -04:00
or
os
ot
ou
ov
ow owncloud-client: 5.2.1 -> 5.3.0 2024-06-08 12:46:30 +02:00
pa paper-age: 1.3.0 -> 1.3.1 2024-06-07 14:25:40 +00:00
pd
pe
pf/pfft
pg pg-dump-anon: 1.3.1 -> 1.3.2 2024-06-08 15:34:07 +02:00
ph phpunit: 11.1.3 -> 11.2.0 2024-06-08 01:48:08 +00:00
pi pixi: 0.20.0 -> 0.23.0 2024-06-07 09:47:31 +08:00
pk pkcrack: 1.2.2 -> 1.2.3 2024-06-04 03:25:48 +00:00
pl Merge pull request #315960 from JohnRTitor/plymouth-vortex-ubuntu-theme 2024-06-01 19:48:57 +02:00
pm
pn
po pot: use pnpm.fetchDeps 2024-06-02 19:56:11 +02:00
pp/ppsspp
pq
pr proto: 0.35.5 -> 0.36.0 2024-06-07 00:12:16 +00:00
ps/ps_mem
pt
pu puppet-bolt: do not reset default gem config 2024-05-31 16:46:26 +03:00
pv/pvsneslib
pw Merge pull request #315703 from amyipdev/pwalarmd-v2 2024-05-31 22:55:37 +08:00
px/pxder
py pyright: 1.1.365 -> 1.1.366 2024-06-08 03:40:51 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr qrcode: unstable-2023-12-02 -> 0-unstable-2024-06-05 2024-06-05 14:34:21 -03:00
qs
qt/qtractor
qu Merge pull request #273789 from phunehehe/quinze 2024-06-08 16:54:39 +02:00
r0/r0vm
r1/r10k
ra Merge pull request #317641 from dotlambda/radicale 2024-06-06 11:13:11 +02:00
rc
rd/rdwatool
re regal: 0.22.0 -> 0.23.0 2024-06-08 13:14:17 +02:00
rh/rHttp
ri Merge pull request #315199 from uncenter/feat/ringfairy 2024-06-05 03:36:03 +02:00
rk
rl/rl_json
rm
rn/rnd-name
ro rofi-obsidian: 0.1.0 -> 0.1.5 2024-06-02 01:08:15 +09:00
rp/rpcs3
rq
rs rsgain: 3.5 -> 3.5.1 2024-06-08 14:48:43 +00:00
rt rtl_fm_streamer: mark as broken on x86_64-darwin 2024-06-06 15:34:04 +03:00
ru
rw/rwpspread
ry ryujinx: 1.1.1298 -> 1.1.1330 2024-06-04 12:58:37 -07:00
s0/s0ix-selftest-tool
s3 s3proxy: normalize doCheck 2024-06-02 21:35:14 -03:00
sa Merge pull request #315939 from r-ryantm/auto-update/satty 2024-05-31 13:27:18 -04:00
sb/sbom-utility
sc
sd SDL2_gfx: remove cpages 2024-06-04 08:19:10 -03:00
se sendme: 0.8.0 -> 0.9.0 2024-06-08 02:49:27 +00:00
sg/sgfutils
sh shopware-cli: 0.4.44 -> 0.4.47 2024-06-06 18:58:15 +00:00
si simplex-chat-desktop: 5.7.5 -> 5.8.0 2024-06-07 21:32:49 +02:00
sk
sl slimserver: 8.5.1 -> 8.5.2 2024-06-03 23:49:40 -04:00
sm
sn snicat: migrate to buildGoModule 2024-06-07 22:15:40 +02:00
so sonarlint-ls: normalize doCheck 2024-06-02 21:35:13 -03:00
sp
sq
sr Merge pull request #317967 from fabaff/sr2t 2024-06-08 10:46:29 +02:00
ss
st stackql: 0.5.643 -> 0.5.652 2024-06-08 12:53:33 +02:00
su supersonic-wayland: 0.10.1 -> 0.11.0 2024-06-08 13:12:40 +02:00
sv svp: adapt to the new mpv wrapper 2024-06-08 01:24:01 -03:00
sw swaycons: 0.2.0 -> 0.3.1 2024-06-03 21:31:33 +01:00
sx
sy
t-/t-rex
ta
tc/tcsh
td tdl: 0.17.0 -> 0.17.1 2024-06-06 21:42:32 +00:00
te terraform-plugin-docs: 0.19.3 -> 0.19.4 2024-06-08 04:40:05 +00:00
tg/tgpt
th
ti tippecanoe: 2.53.0 -> 2.55.0 2024-06-08 02:51:08 +00:00
tk
tl
tm/tmuxifier
to
tp
tr Merge pull request #295155 from onemoresuza/hare-hook 2024-06-06 23:55:33 +02:00
tt
tu Merge pull request #277968 from EdenEast/update/tuxmux 2024-06-05 14:39:19 +02:00
tw
tx/txr
ty
uc
ud
ue
ug
uh/uhttpmock_1_0
ui uiua: 0.11.0 -> 0.11.1 2024-06-06 22:29:35 +02:00
um/umpire
un undertime: init at 4.0.0 2024-06-07 17:35:03 +00:00
up updatecli: 0.77.0 -> 0.78.0 2024-05-30 17:53:10 +00:00
us usql: 0.19.1 -> 0.19.2 2024-06-07 05:43:06 +00:00
ut
uu/uuu uuu: 1.5.181 -> 1.5.182 2024-06-03 14:05:37 -03:00
uv/uv python311Packages.uv: 0.2.6 -> 0.2.9 2024-06-07 10:43:07 +00:00
uw/uwhoisd
ux uxn: 1.0-unstable-2024-05-30 -> 1.0-unstable-2024-06-05 2024-06-08 03:29:35 +00:00
va
vc
vd/vdhcoapp
ve ventoy: 1.0.98 -> 1.0.99 2024-06-08 15:03:23 +00:00
vg/vgm2x
vi Merge pull request #290715 from Scrumplex/pkgs/build-support/fetchPnpmDeps 2024-06-06 09:41:22 +03:00
vl
vm/vms-empire
vo/voidmap
vp/vp vp: remove vrthra 2024-06-04 08:19:11 -03:00
vu
vv/vvvvvv
wa Merge pull request #316673 from adamcstephens/waylock/pam 2024-06-05 15:19:33 -04:00
wb
we
wh
wi Merge pull request #313145 from DontEatOreo/pkgs-win-disk-writer 2024-06-02 19:57:32 +02:00
wl Merge pull request #314795 from r-ryantm/auto-update/wlr-layout-ui 2024-05-31 23:16:33 +08:00
wo workout-tracker: 0.14.3 -> 0.15.0 2024-06-07 06:22:26 +00:00
wp
ws
wt wttrbar: 0.10.1 -> 0.10.2 2024-06-05 23:27:14 +00:00
wy/wyoming-satellite wyoming-satellite: relax wyoming constriant 2024-06-07 13:35:14 +02:00
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe Merge pull request #260340 from jfvillablanca/xenon 2024-06-06 00:39:49 +02:00
xf/xfs-undelete
xh/xhosts
xi
xl/xlights
xm Merge pull request #305096 from Tochiaha/xmltoman 2024-06-07 06:23:39 +10:00
xn/xnlinkfinder
xo
xp
xr/xr-hardware
xs
xw/xwayland-run
ya yazi: fix plugins and flavors config 2024-06-03 11:26:59 +02:00
yc/ycmd
yd/ydotool
ye
yg/yggdrasil yggdrasil: 0.5.5 -> 0.5.6 2024-05-31 03:11:33 +00:00
yj/yj
yo Merge pull request #312119 from hogcycle/yoink 2024-06-03 00:02:49 +00:00
ys/ysfx
yt ytdownloader: refactor code with copyDesktopItems & nixfmt 2024-06-03 09:20:11 +01:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.137.5 -> 0.137.6 2024-05-31 23:27:28 +02:00
zi
zl/zluda
zm/zmkBATx zmkBATx: init at 1.0.1 2024-05-30 20:13:30 +02:00
zo Merge pull request #313107 from justanotherariel/zotero-beta 2024-06-06 01:45:39 +02:00
zp zpaqfranz: 59.6 -> 59.7 2024-06-07 04:32:49 +00:00
zs
zu/zug
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;
}