nixpkgs/pkgs/by-name
2024-08-08 08:08:57 +02:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
ac
ad ad-miner: update formatting 2024-08-07 15:05:34 +02:00
ae
af
ag
ai Merge pull request #297914 from t4ccer/t4/aiken/init 2024-08-03 00:31:52 +02:00
al alpaca-proxy: init at 2.0.9 2024-08-04 20:14:04 +02:00
am
an anchor: 0.30.0 -> 0.30.1 2024-08-06 11:35:56 -03:00
ao/aocl-utils
ap Merge pull request #331948 from r-ryantm/auto-update/apx-gui 2024-08-03 10:12:13 -04:00
aq/aquamarine aquamarine: 0.1.1 -> 0.2.0 2024-07-31 22:04:46 +05:30
ar art: 1.22.1 -> 1.23 2024-08-05 00:18:24 +00:00
as Merge pull request #323493 from pyrox0/pnpm-fetchdeps-improve 2024-08-07 12:37:34 +00:00
at Merge pull request #326243 from jcaesar/pr-13 2024-08-06 08:15:56 +02:00
au autotools-language-server: propagate tree-sitter_0_21 instead of tree-sitter 2024-08-07 11:39:13 +03:00
av avml: init at 0.14.0 2024-08-02 12:50:26 +05:30
aw Merge pull request #330602 from r-ryantm/auto-update/awscli2 2024-08-05 01:25:25 +00:00
ax
ay treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck 2024-07-30 18:32:01 +02:00
az azure-cli-extensions.vmware: 6.0.1 -> 7.0.0 2024-08-06 09:17:44 +02:00
b3/b3sum
ba Merge pull request #332984 from GaetanLepage/basedpyright 2024-08-07 22:31:12 +02:00
bc
bd
be bend: 0.2.34 -> 0.2.36 2024-08-02 03:24:46 +05:30
bi bitwarden-cli: 2024.7.1 -> 2024.7.2 2024-08-02 02:49:51 -07:00
bk/bk
bl bluesnarfer: init at 0.1 2024-08-04 19:05:59 +00:00
bm/bmake bmake: 20240711 -> 20240722 2024-08-05 12:51:16 +00:00
bn/bngblaster bngblaster: 0.9.2 -> 0.9.5 (#326540) 2024-08-07 18:24:34 +02:00
bo Merge pull request #331463 from r-ryantm/auto-update/boogie 2024-08-04 09:24:25 -04:00
bp
bq/bqn
br bruno: 1.23.0 -> 1.23.1 2024-08-05 02:26:00 +00:00
bs bsd-finger: adopt and refactor 2024-07-29 23:22:01 -03:00
bt
bu buildkite-agent: 3.76.1 -> 3.76.2 2024-08-06 04:00:27 +00:00
by
c-
c2 c2patool: 0.9.5 -> 0.9.6 2024-08-01 05:34:14 +00:00
ca castero: disable more tests to fix build 2024-08-07 18:55:00 -04:00
cb
cc
cd cddl: move to by-name 2024-08-04 13:37:10 +02:00
ce Merge pull request #328252 from r-ryantm/auto-update/centrifugo 2024-08-04 14:42:28 -04:00
cg
ch chezmoi: 2.51.0 -> 2.52.0 2024-08-08 00:31:02 +00:00
ci Merge pull request #332244 from bobby285271/upd/cinnamon 2024-08-06 20:35:37 +08:00
cj/cjs
cl cloudlens: init at 0.1.4 (#326310) 2024-08-06 10:39:14 +02:00
cm cmd-polkit: fix meta.mainProgram binary 2024-07-30 20:43:00 +02:00
cn/cntb
co cosmic-files: 0-unstable-2024-06-10 -> 1.0.0-alpha.1 2024-08-07 08:20:24 +02:00
cp treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck 2024-07-30 18:32:01 +02:00
cq/cq
cr crawley: 1.7.6 -> 1.7.7 2024-08-06 01:21:27 +00:00
cs csvlens: 0.9.1 -> 0.10.0 2024-08-04 12:55:09 +00:00
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da davis: 4.4.3 -> 4.4.4 2024-08-05 19:20:55 +00:00
db dbeaver-bin: 24.1.3 -> 24.1.4 2024-08-07 08:03:41 +00:00
dc
dd
de deltatouch: 1.4.0 -> 1.5.1 2024-08-05 04:09:59 -07:00
dg/dgoss
dh/dhcpig
di distrobox-tui: init at 0.1.0 2024-08-07 20:33:50 +05:30
dj/djent
dm dmd: mark as broken on x86_64-darwin 2024-07-31 21:27:10 +02:00
dn
do dotenv-cli: remove usage of mkYarnPackage 2024-08-02 23:57:05 -04:00
dp
dr
ds
dt
du
dv/dvb-apps
dw/dwl dwl: 0.5 -> 0.6 2024-07-29 23:33:51 -03:00
dx
dy
e1/e1s
ea
eb
ec
ed eduvpn-client: 4.3.1 -> 4.4.0 2024-07-30 10:56:14 +02:00
ee/eepers
ef/efibootmgr
eg/eg25-manager
ei Merge pull request #330536 from r-ryantm/auto-update/eigenlayer 2024-08-04 14:32:27 -04:00
ej/ejsonkms
ek/eksctl eksctl: 0.187.0 -> 0.188.0 2024-08-05 08:31:01 +00:00
el treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
em
en treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
eo/eog eog: 45.3 → 45.4 2024-08-03 16:22:49 +08:00
ep epiphany: 46.2 → 46.3 2024-08-06 21:22:45 +08:00
er
es
et ethercat: 1.6.0 -> 1.6.1 2024-08-01 12:09:05 +00:00
eu
ev evolution-data-server: 3.52.3 → 3.52.4 2024-08-03 18:12:49 +08:00
ew/eww
ex
ey/eyewitness
ez/eza eza: 0.18.23 -> 0.18.24 2024-08-03 18:10:49 +02:00
f2/f2fs-tools
fa fanbox-dl: 0.22.1 -> 0.23.0 2024-08-07 12:57:35 +00:00
fb/fbset
fc
fe Merge pull request #331864 from emilazy/push-posunwslrptx 2024-08-05 21:38:59 -07:00
ff fflogs: 8.6.0 -> 8.12.0 2024-08-03 22:50:35 +00:00
fg/fgqcanvas
fi fim-rs: 0.4.10 -> 0.5.0 2024-08-07 10:20:43 +02:00
fj/fjo
fl Merge pull request #333064 from r-ryantm/auto-update/flarectl 2024-08-07 20:55:38 +00:00
fm
fn/fnott
fo Merge pull request #331187 from emilylange/forgejo 2024-08-01 15:07:21 +02:00
fr frankenphp: 1.2.2 -> 1.2.3 2024-08-07 03:32:27 +00:00
fs Merge pull request #318358 from shyim/add-fsnotifier-package 2024-08-07 09:32:40 +01:00
ft/fte
fu
fv
fw/fwupd fwupd: 1.9.22 -> 1.9.23 2024-08-05 15:37:30 +02:00
fx/fx
fy fyne: init at 2.5.0 2024-08-03 09:35:57 -05:00
fz fzf-make: 0.35.0 -> 0.36.0 2024-08-03 01:20:45 +02:00
g3/g3kb-switch
ga gamescope: 3.14.24 -> 3.14.26 2024-08-04 17:56:33 -05:00
gb
gc
gd treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
ge get-graphql-schema: Fix meta attributes 2024-08-03 22:25:27 -04:00
gf {gfortran{,48,49},gfortran{6..14}}: move to by-name 2024-08-03 17:18:40 -07:00
gg/gg
gh gh-i: init at 0.0.7 2024-08-07 20:33:49 +05:30
gi Merge pull request #332765 from phanirithvij/initial-contrib 2024-08-08 08:08:57 +02:00
gl Merge pull request #330691 from devusb/glasskube 2024-08-03 18:08:20 +02:00
gm gmid: 2.0.5 -> 2.1 2024-08-04 01:39:07 +00:00
gn
go Merge pull request #332765 from phanirithvij/initial-contrib 2024-08-08 08:08:57 +02:00
gp
gr Merge pull request #332840 from emilylange/grafana-alloy 2024-08-07 09:21:01 +00:00
gt
gu
gv/gvisor
gx/gxml
h2/h2
h5/h5utils
h8/h8mail
ha Merge pull request #332148 from emilazy/in-memoriam-AluisioASG 2024-08-06 14:10:43 +02:00
hb/hb-honeypot
hc/hclfmt hclfmt: move to by-name 2024-07-31 09:10:33 +02:00
hd
he
hi treewide: rewrite some uses of hostPlatform == buildPlatform to canExecute 2024-08-04 10:50:48 +09:00
hj/hjson-go
hn/hn-text
ho home-manager: 0-unstable-2024-07-24 -> 0-unstable-2024-08-02 2024-08-06 03:55:43 +00:00
hp/hpp2plantuml
ht
hu Merge pull request #331808 from mfrw/mfrw/hugo-0.131.0 2024-08-03 19:00:31 +02:00
hv/hvm
hy hyprutils: 0.2.0 -> 0.2.1 2024-07-31 13:47:11 +00:00
i2/i2p
i3
ia
ic
id ida-free: add openssl dependency to libida64 2024-08-03 18:22:58 -07:00
if/ifrextractor-rs
ig ignite-cli: 28.5.0 -> 28.5.1 2024-08-05 13:13:51 +00:00
ii
ij/ijhttp
im immich-go: 0.20.1 -> 0.21.1 2024-08-05 20:57:43 +00:00
in incus.client: fix macOS builds 2024-08-07 22:33:16 +02:00
io
ip
ir treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
is
it
iv/iverilog
iw/iw
iz/izrss
ja
jc/jcli jcli: migrate to by-name 2024-08-02 19:56:42 +04:00
jd/jdt-language-server
je
ji
jj/jj
jn
jo treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
jq/jq-zsh-plugin
jr/jrl-cmakemodules jrl-cmakemodules: 0-unstable-2024-05-22 -> 0-unstable-2024-08-05 2024-08-05 19:33:51 +02:00
js json2tsv: migrate to by-name 2024-08-06 03:57:20 +04:00
jt/jtdx
ju Merge pull request #332212 from 1adept/update-just 2024-08-04 22:47:28 +02:00
jw/jwasm
ka kakoune: add philiptaron as maintainer to most kakoune-related things 2024-08-01 18:06:40 -07:00
kc
kd
ke Merge pull request #331163 from Shawn8901/update_keymapp 2024-08-07 00:50:06 +02:00
kg/kgeotag
ki
kl
km
kn
ko kor: 0.5.3 -> 0.5.4 2024-08-07 10:53:48 +00:00
kp/kplex
kr
ks
kt
ku kulala-fmt: 1.1.0 -> 1.2.0 2024-08-07 00:16:52 +08:00
kv/kvmarwaita
kx
ky kyverno-chainsaw: 0.2.7 -> 0.2.8 2024-08-03 22:41:26 +00:00
la labelle: 1.2.2 -> 1.2.3 2024-08-05 11:14:47 +00:00
lb
lc
ld
le
lg/lgogdownloader
li lightningcss: 1.25.1 -> 1.26.0 (#332913) 2024-08-07 19:54:22 +05:30
lk/lk-jwt-service
ll Merge pull request #314132 from newAM/cleanup-xtask-binaries 2024-08-03 22:26:17 +02:00
lm lmstudio: 0.2.27 -> 0.2.31 2024-08-03 19:59:12 -05:00
ln/lngen
lo
lp
ls
lt/ltris
lu lunar-client: 3.2.11 -> 3.2.12 2024-08-03 14:55:54 +02:00
lv/lv_font_conv
lw/lwgrp
lx
lz
m1/m1ddc
m2
ma python3Packages.setuptools-rust.tests: fix eval 2024-08-07 08:02:23 -07:00
mb
mc mcumgr-client.updateScript: drop 2024-08-07 08:19:15 +02:00
md Merge pull request #331176 from pinage404/mdbook-yml-header 2024-07-31 07:50:10 +02:00
me melonDS: 0.9.5-unstable-2024-07-21 -> 0.9.5-unstable-2024-08-05 2024-08-05 21:32:16 +00:00
mf
mg
mi nixos/misskey: init 2024-08-06 12:24:15 +02:00
mk
ml/mlx42
mo Merge pull request #331185 from aaronjheng/mongosh 2024-08-07 00:51:29 +02:00
mp
mq
mr/mricron
ms msolve: 0.6.7 -> 0.7.1 2024-08-01 06:36:41 +00:00
mu mullvad-browser: 13.5.1 -> 13.5.2 2024-08-06 23:27:28 +02:00
my
n2/n2
n8/n8n
na Merge pull request #330385 from eljamm/naja 2024-08-04 10:34:31 +02:00
nb
nc nc4nix: 0-unstable-2024-03-01 -> 0-unstable-2024-08-01 2024-08-01 04:03:10 -07:00
nd/ndstrim
ne Merge pull request #332244 from bobby285271/upd/cinnamon 2024-08-06 20:35:37 +08:00
nf
ng ngrok: 3.13.0 -> 3.14.0 2024-08-04 12:48:25 +02:00
nh
ni nil: migrate to by-name 2024-08-06 08:57:42 -04:00
nl
nm
nn
no Merge pull request #330940 from dotlambda/node-pre-gyp 2024-08-06 05:24:38 -07:00
np
nr
ns
nt
nu
nv
nw nwjs-ffmpeg-prebuilt: init at 0.89.0 2024-07-31 00:27:01 +05:30
nx/nxengine-evo
oa
ob
oc
od treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
oe/oelint-adv oelint-adv: 5.7.0 -> 5.7.1 2024-08-04 22:27:19 +00:00
of
oh
oi
ok/okolors
ol ollama: update hash for 0.3.1 2024-08-02 09:49:23 -04:00
om
on
oo
op open-webui: 0.3.11 -> 0.3.12 2024-08-07 17:54:31 +02:00
oq/oqs-provider
or
os
ot
ou
ov ovh-ttyrec: move to by-name 2024-07-31 09:10:32 +02:00
ow
pa Merge pull request #331045 from r-ryantm/auto-update/passt 2024-08-07 16:24:08 +02:00
pc
pd pdf-sign: 0-unstable-2023-08-08 -> 0-unstable-2024-07-16 2024-08-03 09:50:17 +02:00
pe
pf/pfft
pg
ph phpunit: 11.2.8 -> 11.3.0 2024-08-07 12:54:06 +00:00
pi Merge pull request #326243 from jcaesar/pr-13 2024-08-06 08:15:56 +02:00
pk
pl plasticity: 24.1.7 -> 24.1.8 2024-08-07 08:04:27 +00:00
pm
pn
po Merge pull request #331115 from linsui/pot 2024-08-07 01:44:31 +02:00
pp/ppsspp
pq
pr prrte: 3.0.5 -> 3.0.6 2024-08-07 13:56:57 +00:00
ps
pt
pu
pv
pw
px/pxder
py pyright: 1.1.373 -> 1.1.375 2024-08-07 17:29:22 +00:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd
qg/qgrep
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qr Merge pull request #326243 from jcaesar/pr-13 2024-08-06 08:15:56 +02:00
qs
qt/qtractor
qu Merge pull request #328987 from r-ryantm/auto-update/quarkus 2024-08-05 19:46:39 -04:00
qw/qwerty-fr
r0/r0vm r0vm: 1.0.3 -> 1.0.5 2024-08-03 22:35:00 +00:00
r1/r10k
ra railway: move to pkgs/by-name 2024-08-03 00:29:12 -04:00
rc
rd/rdwatool
re Merge pull request #332657 from r-ryantm/auto-update/renovate 2024-08-07 17:04:42 +09:00
rf/rfdump rfdump: init at 1.6 2024-07-31 19:34:28 +01:00
rh/rHttp
ri river: 0.3.4 -> 0.3.5 2024-07-30 08:02:48 -04:00
rk
rl/rl_json
rm
rn
ro roddhjav-apparmor-rules: 0-unstable-2024-07-20 -> 0-unstable-2024-08-02 2024-08-05 05:04:03 +00:00
rp/rpcs3
rq
rr/rrdtool rrdtool: move to by-name 2024-08-06 16:08:36 +02:00
rs rsgain: 3.5.1 -> 3.5.2 2024-08-07 02:54:43 +00:00
rt
ru Merge pull request #305391 from LeSuisse/rustls-ffi-0.13.0 2024-08-01 22:08:38 +02:00
rw/rwpspread
ry ryujinx: 1.1.1358 -> 1.1.1364 2024-08-03 13:47:34 +00:00
s0/s0ix-selftest-tool
s3
sa saunafs: 4.3.0 -> 4.4.0 2024-08-07 04:18:18 +00:00
sb
sc Merge pull request #332076 from dit7ya/screen-pipe 2024-08-04 18:23:19 +02:00
sd
se sendme: 0.12.0 -> 0.13.0 2024-08-07 04:58:31 +00:00
sf/sfwbar
sg/sgfutils
sh shopware-cli: 0.4.50 -> 0.4.51 2024-08-07 04:18:33 +00:00
si Merge pull request #332337 from pbsds/fix-silverbullet-passthru-1722801278 2024-08-05 22:35:07 +02:00
sk
sl
sm smartcat: 1.3.0 -> 1.4.1 2024-08-01 06:48:55 +00:00
sn snapcraft: 8.3.1 -> 8.3.2 2024-08-07 17:27:39 +00:00
so treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
sp
sq sqlite-vec: init at v0.1.1 2024-08-05 23:37:04 -07:00
sr srm-cuarzo: 0.6.3-1 -> 0.7.0-1 2024-08-01 09:43:49 +00:00
ss
st Merge pull request #326243 from jcaesar/pr-13 2024-08-06 08:15:56 +02:00
su Merge pull request #328867 from r-ryantm/auto-update/supermariowar 2024-08-04 14:43:26 -04:00
sv svelte-language-server: 0.16.13 -> 0.16.14 2024-08-04 23:25:34 +00:00
sw switcheroo: add missing imagemagick dependency 2024-08-02 09:51:55 +02:00
sx
sy Merge pull request #331931 from r-ryantm/auto-update/syshud 2024-08-04 09:25:55 -04:00
t-/t-rex
ta Merge pull request #331377 from aktaboot/bump-taskwarrior3 2024-08-07 01:49:43 +00:00
tb/tbump
tc tclmagick: init at 1.3.43 2024-08-03 08:10:24 +00:00
td tdl: 0.17.1 -> 0.17.3 (#331930) 2024-08-06 16:52:45 +02:00
te textlint: 14.0.4 -> 14.0.5 2024-08-07 16:52:07 +00:00
tg
th
ti Merge pull request #331689 from GaetanLepage/tinymist 2024-08-04 23:08:23 +02:00
tk
tl
tm tmux-cssh: move to by-name 2024-07-31 09:10:33 +02:00
to tor-browser: 13.5.1 -> 13.5.2 2024-08-06 23:23:42 +02:00
tp Merge pull request #326232 from iynaix/tplay-ffprobe-runtime 2024-08-03 21:01:38 +08:00
tr trickest-cli: 1.8.1 -> 1.8.2 2024-08-07 05:15:51 +00:00
ts/tsm-client
tt
tu
tw
tx txtpbfmt: 0-unstable-2024-04-16 -> 0-unstable-2024-06-11 2024-08-02 02:27:25 +00:00
ty typodermic-free-fonts: 2023a -> 2024-04 2024-08-03 07:51:46 +00:00
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire umpire: fix source hash 2024-08-06 13:36:03 +02:00
un
up updatecli: 0.80.0 -> 0.82.0 2024-08-05 21:12:24 +00:00
ur/urban-cli
us
ut
uu/uuu
uv/uv
uw uwsm: 0.17.2 -> 0.17.4 2024-07-31 23:08:43 +05:30
ux uxn: 1.0-unstable-2024-07-26 -> 1.0-unstable-2024-08-05 2024-08-07 17:25:04 +00:00
va vacuum-go: 0.11.1 -> 0.12.0 2024-08-07 04:35:23 +00:00
vc
vd/vdhcoapp
ve verible: 0.0.3722 -> 0.0.3747 2024-08-06 04:42:02 -07:00
vg/vgm2x
vi Merge pull request #330857 from D3vil0p3r/patch-6 2024-08-06 09:36:02 +02:00
vk/vkd3d
vl
vm
vn
vo volk_2: init at 2.5.0 2024-07-31 13:14:27 +03:00
vp vpsfree-client: move to by-name 2024-07-31 09:10:28 +02:00
vs vscode-runner: init at 1.6.1 (#330659) 2024-08-06 11:21:56 +02:00
vu
vv/vvvvvv
vw/vwsfriend vwsfriend: 0.24.4 -> 0.24.5 2024-08-05 05:36:47 +00:00
vz/vzic
wa walker: add update script 2024-08-06 17:08:10 +02:00
wb
wc/wcurl
we werf: 2.8.0 -> 2.9.3 2024-08-02 10:37:42 +00:00
wf/wf-touch
wg/wg-access-server
wh whistle: 2.9.78 -> 2.9.80 2024-07-30 03:20:48 +00:00
wi wit-bindgen: 0.28.0 -> 0.29.0 2024-08-03 03:10:27 +00:00
wl wlx-overlay-s: 0.4.2 -> 0.4.3 2024-08-04 21:40:22 +02:00
wo workout-tracker: 1.16.1 -> 1.18.1 2024-08-06 05:31:42 +00:00
wp
wr/wrangler wrangler: set SSL_CERT_FILE 2024-08-02 04:16:27 -04:00
ws
wt wtwitch: migrate to by-name 2024-08-06 13:40:06 +00:00
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa xarcan: 0-unstable-2024-05-23 -> 0-unstable-2024-08-04 2024-08-07 06:05:53 +00:00
xc
xd
xe
xf/xfs-undelete
xh/xhosts
xi
xl xlights: 2024.13 -> 2024.14 2024-08-07 04:01:48 +00:00
xm
xn/xnlinkfinder
xo
xp
xr
xs
xu/xunit-viewer
xv/xviewer
xw
ya yamlscript: 0.1.68 -> 0.1.69 2024-08-05 22:31:35 +00:00
yc/ycmd
yd/ydotool
ye
yg yggdrasil: add peigongdsd as maintainer 2024-08-06 02:51:09 +08:00
yj/yj
yo
ys/ysfx
yt yt-dlp: 2024.8.1 -> 2024.8.6 2024-08-06 11:18:34 +02:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.146.4 -> 0.146.5 2024-08-03 11:07:37 +02:00
zf/zfind zfind: 0.4.4 -> 0.4.5 2024-08-04 03:22:33 +00:00
zi
zl/zluda
zm/zmkBATx
zo Merge pull request #326243 from jcaesar/pr-13 2024-08-06 08:15:56 +02:00
zp
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;
}