nixpkgs/pkgs/by-name
Thiago Kenji Okada 14b0861d39
Merge pull request #324544 from thiagokokada/evil-helix-init
evil-helix: init at 20240618
2024-07-04 15:36:42 +00:00
..
_0/_0xpropo
_2/_2ship2harkinian zenity: Move from gnome scope to top-level 2024-07-01 08:26:47 +02:00
_4 maintainers: remove nayala 2024-07-02 14:07:53 +02:00
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac accerciser: Move from gnome scope to top-level 2024-07-01 08:26:50 +02:00
ad adwaita-icon-theme: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
ae
af affine: 0.14.3 -> 0.14.9 2024-06-26 22:26:20 -03:00
ag
ai
al
am Merge pull request #323088 from r-ryantm/auto-update/amazon-ssm-agent 2024-06-29 11:49:23 -04:00
an ansel: 0-unstable-2024-02-23 -> 0-unstable-2024-06-29 2024-07-02 21:02:39 +00:00
ao/aocl-utils
ap application-title-bar: refactor + package improvement 2024-07-01 17:13:24 +00:00
ar Merge pull request #323669 from wegank/arc-browser-fix 2024-07-01 23:40:32 +02:00
as Merge pull request #324000 from anas-contribs/asak 2024-07-04 11:49:41 +02:00
at atlauncher: use stdenvNoCC 2024-06-30 17:39:35 +04:00
au
av
aw
ax
ay
az/azurite
ba basedpyright: 1.13.1 -> 1.13.2 2024-07-04 09:57:27 +02:00
bc
bd
be treewide: remove bb010g from maintainers 2024-07-04 02:41:05 -07:00
bi bitwarden-cli: 2024.6.0 -> 2024.6.1 2024-07-03 04:50:26 +00:00
bk/bk
bl maintainers: remove ckie 2024-07-02 02:40:02 +02:00
bm/bmake bmake: 20240520 -> 20240625 2024-06-28 20:14:11 +00:00
bn/bngblaster
bo Merge pull request #247991 from foolnotion/boilr 2024-06-28 22:31:26 +08:00
bp
bq/bqn
br bruno: 1.19.0 -> 1.20.0 2024-07-01 14:37:24 -03:00
bs
bt
bu
by
c-
c2 c2fmzq: 0.4.20 -> 0.4.21 2024-07-03 03:55:23 +00:00
ca catppuccin-gtk: fix inconsistent theme name 2024-07-03 09:45:42 +01:00
cb
cc ccache: 4.10 -> 4.10.1 2024-07-01 23:39:17 -04:00
cd Merge pull request #321656 from r-ryantm/auto-update/cdecl 2024-06-28 00:00:32 +02:00
ce Merge pull request #322553 from bbigras/centerpiece 2024-07-02 18:31:52 +05:30
cg
ch gnome: Unmaintain dead packages 2024-07-01 09:35:26 +02:00
ci treewide: remove lilyinstarlight 2024-07-02 03:17:01 +02:00
cl Merge pull request #324240 from florian-sanders-cc/clever-tools-3.8.1 2024-07-03 23:07:31 +02:00
cm
cn/cntb
co codeium: 1.8.69 -> 1.8.80 2024-07-04 10:31:00 +02:00
cp cppcheck: 2.14.1 -> 2.14.2 2024-06-26 22:05:13 +02:00
cq/cq
cr Merge pull request #323883 from Stunkymonkey/crabfit-frontend-fixup-fixup-yarn-lock 2024-07-04 12:36:21 +08:00
cs
ct/ctx
cu cue: 0.9.1 -> 0.9.2 2024-06-26 15:57:48 +00:00
cv/cvemap
cy Merge pull request #323847 from h7x4/pkgs-update-cyme 2024-07-03 00:06:19 +02:00
cz/czkawka czkawka: fix x86 darwin 2024-06-30 20:09:08 -05:00
da
db dbeaver-bin: 24.1.0 -> 24.1.1 2024-06-28 14:48:00 +00:00
dc dconf-editor: Move from gnome scope to top-level 2024-07-01 08:26:48 +02:00
dd
de devhelp: Move from gnome scope to top-level 2024-07-01 08:26:48 +02:00
dg/dgoss
dh/dhcpig
di Merge pull request #321732 from r-ryantm/auto-update/discordchatexporter-cli 2024-07-02 01:11:54 +02:00
dj/djent
dm
dn
do Merge pull request #322417 from r-ryantm/auto-update/dorion 2024-06-30 17:30:34 +02:00
dp
dr
ds
dt dtools: 2.109.0 -> 2.109.1 2024-07-02 13:15:59 +00:00
du Merge pull request #323055 from r-ryantm/auto-update/dumbpipe 2024-06-30 17:16:00 +02:00
dv/dvb-apps
dx
dy
e1/e1s
ea add maintainer 2024-06-29 12:10:40 +02:00
eb
ec
ed
ee/eepers
ef/efibootmgr
ei
ej/ejsonkms
ek/eksctl eksctl: 0.183.0 -> 0.184.0 2024-07-04 04:18:57 +00:00
el
em Merge pull request #260990 from jfvillablanca/ember-cli 2024-07-03 14:57:49 +02:00
en
eo/eog eog: Move from gnome scope to top-level 2024-07-01 08:26:45 +02:00
ep epiphany: Move from gnome scope to top-level 2024-07-01 08:26:47 +02:00
er
es
et
eu
ev evil-helix: init at 20240618 2024-07-04 13:22:25 +01:00
ew/eww
ex
ey/eyewitness
ez/eza eza: 0.18.20 -> 0.18.21 2024-07-01 07:00:40 +02:00
fa fastapi-cli: init at 0.0.4 2024-07-03 13:11:59 +02:00
fb/fbset
fc Merge pull request #321149 from Guanran928/fcitx5-pinyin-dictionary 2024-07-01 01:30:23 +08:00
fe fennel-ls: 0.1.2 -> 0.1.3 2024-06-27 10:58:34 +02:00
ff fflogs: 8.5.16 -> 8.5.25 2024-06-30 07:32:44 +00:00
fg/fgqcanvas maintainers: remove nayala 2024-07-02 14:07:53 +02:00
fi Merge pull request #315139 from DSeeLP/finamp 2024-07-03 14:11:12 +08:00
fj/fjo
fl flarectl: 0.98.0 -> 0.99.0 2024-07-04 04:27:24 +00:00
fm
fn/fnott
fo forgejo: 7.0.4 -> 7.0.5 2024-07-04 12:11:11 +02:00
fr freecell-solver: 6.10.0 -> 6.12.0 2024-06-30 12:25:27 +00:00
fs
ft/fte
fu
fv
fw/fwupd
fx/fx fx: migrate to by-name 2024-06-27 23:00:51 +04:00
fy/fypp
fz
g3/g3kb-switch
ga
gb
gc
gd
ge geary: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
gf
gg/gg
gh ghex: Move from gnome scope to top-level 2024-07-01 08:26:44 +02:00
gi treewide: remove bb010g from maintainers 2024-07-04 02:41:05 -07:00
gl glrnvim: fix build on darwin 2024-07-02 19:20:46 +08:00
gm treewide: remove lilyinstarlight 2024-07-02 03:17:01 +02:00
gn gnome: Unmaintain dead packages 2024-07-01 09:35:26 +02:00
go go-camo: 2.5.0 -> 2.5.1 2024-07-03 15:24:14 +02:00
gp Merge pull request #323056 from SomeoneSerge/fix/cudaPackages/outputSpecified 2024-07-03 19:19:51 +00:00
gr grype: 0.79.1 -> 0.79.2 2024-07-03 05:29:39 +00:00
gt
gu gucharmap: Move from gnome scope to top-level 2024-07-01 08:26:48 +02:00
gv/gvisor
gx/gxml
h8/h8mail
ha halo: 2.16.3 -> 2.17.0 2024-07-02 13:16:08 +00:00
hb/hb-honeypot
hd
he Merge pull request #320266 from doronbehar/pkg/versionInstallHook 2024-07-03 01:37:49 +03:00
hi Merge pull request #323922 from r-ryantm/auto-update/highs 2024-07-02 16:32:12 -04:00
hj/hjson-go
hn/hn-text
ho home-manager: 0-unstable-2024-06-22 -> 0-unstable-2024-06-26 2024-06-28 05:10:54 +00:00
hp/hpp2plantuml
ht gnome-keyring: Move from gnome scope to top-level 2024-07-01 09:35:26 +02:00
hu hugo: 0.128.0 -> 0.128.1 2024-07-02 15:04:03 +00:00
hv/hvm
hy Merge pull request #319339 from OmnipotentEntity/hyperspeedcube-1.0.7 2024-07-02 23:06:59 +02:00
i2/i2p
i3
ia
ic
id
if/ifrextractor-rs
ig igir: 2.7.0 -> 2.8.2 2024-06-27 11:20:38 +00:00
ii
ij/ijhttp
im Merge pull request #323060 from r-ryantm/auto-update/impala 2024-06-30 10:42:42 +02:00
in Merge pull request #323536 from r-ryantm/auto-update/incus-lts 2024-07-02 09:24:37 -04:00
io/ioq3-scion
ip maintainers: drop janik 2024-07-02 02:36:42 +02:00
ir adwaita-icon-theme: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
is/iscc
it Merge pull request #320861 from SuperSamus/itch-update 2024-07-02 17:30:45 +02:00
iw/iw
iz/izrss
ja
jd/jdt-language-server
je jellyfin-web: 10.9.6 -> 10.9.7 2024-06-27 10:02:33 +02:00
ji
jj/jj
jn
jo job-security: unstable-0-2024-03-24 -> 0-unstable-2024-04-07 2024-06-27 17:13:03 +02:00
jq/jq-zsh-plugin
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju
jw/jwasm
ka
kc Merge pull request #317827 from selfuryon/chore/kcl-refactor 2024-06-26 22:07:06 +02:00
kd
ke Merge pull request #320606 from Shawn8901/upgrade_keymapp 2024-07-03 02:41:32 +08:00
kg/kgeotag
ki
kl/klog-time-tracker
km
kn
ko Merge pull request #322594 from hakan-demirli/kooha 2024-07-01 23:40:55 +02:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita kvmarwaita: init at 0-unstable-2024-06-27 2024-06-29 23:22:22 -03:00
kx
ky Merge pull request #324317 from wegank/kyua-update-script 2024-07-04 13:01:19 +08:00
la lanraragi: 0.9.0 -> 0.9.10 2024-06-28 13:54:18 +02:00
lb
lc
ld
le Merge pull request #318408 from r-ryantm/auto-update/leetgo 2024-06-28 01:38:01 +02:00
lg/lgogdownloader lgogdownloader: move to pkgs/by-name 2024-06-27 03:01:31 +09:00
li Merge pull request #323952 from r-ryantm/auto-update/limine 2024-07-02 16:13:28 -04:00
lk/lk-jwt-service
ll Merge pull request #323056 from SomeoneSerge/fix/cudaPackages/outputSpecified 2024-07-03 19:19:51 +00:00
lm lmstudio: 0.2.25 -> 0.2.27 2024-07-03 01:12:37 -05:00
ln/lngen
lo local-ai: fix libcuda.so stub 2024-07-03 20:14:35 +02:00
lp lpairs2: 2.3 -> 2.3.1 2024-06-28 17:52:41 +00:00
ls
lt/ltris
lu lunar-client: remove zyansheep from maintainers list 2024-07-02 11:30:23 -04:00
lv/lv_font_conv lv_font_conv: Remove from nodePackages 2024-06-28 18:29:51 -04:00
lw/lwgrp lwgrp: 1.0.5 -> 1.0.6 2024-06-28 18:59:29 +00:00
lx Merge pull request #324015 from adamcstephens/lxd/5.21.1 2024-07-03 07:35:47 -04:00
lz
m1/m1ddc
m2
ma maven: remove cko from maintainers 2024-07-04 01:01:15 +02:00
mb
mc Merge pull request #306216 from Tommimon/master 2024-06-26 21:38:03 +02:00
md
me Merge pull request #323726 from Guanran928/metacubexd 2024-07-02 18:46:28 +02:00
mf
mg
mi Merge pull request #323914 from r-ryantm/auto-update/mihomo 2024-07-02 16:25:04 -04:00
mk
ml/mlx42
mo Merge pull request #318203 from Scrumplex/pkgs/monado/unstable-update-1 2024-07-03 14:20:54 +02:00
mp
mq
ms msolve: 0.6.5 -> 0.6.6 2024-06-27 11:01:14 +02:00
mu
my
n2/n2
n8/n8n n8n: add maintainer gepbird 2024-06-26 19:49:06 +02:00
na namespace-cli: 0.0.380 -> 0.0.381 2024-07-03 12:39:05 +00:00
nb
nc
nd/ndstrim
ne netscanner: 0.5.1 -> 0.5.2 2024-07-04 02:36:31 +00:00
nf
ng
nh
ni nixfmt: unstable-2024-05-28 -> unstable-2024-07-03 2024-07-03 04:47:49 +02:00
nl
nm/nmap-parse
nn/nncp
no nodemon: remove from nodePackages 2024-06-28 18:29:23 -04:00
np
nr
ns
nt/ntfs2btrfs
nu
nv
nw Merge pull request #318283 from r-ryantm/auto-update/nwg-hello 2024-07-03 00:17:52 +02:00
nx/nxengine-evo
oa
ob
oc
od
oe/oelint-adv oelint-adv: 5.6.0 -> 5.7.0 2024-06-27 06:54:57 +00:00
of offpunk: 2.2 -> 2.3 2024-06-29 13:07:59 +02:00
oh oh-my-posh: 21.9.1 -> 21.17.2 2024-06-30 21:10:16 +02:00
oi
ok/okolors okolors: 0.7.0 -> 0.8.0 2024-07-04 04:01:25 +00:00
ol Merge pull request #323056 from SomeoneSerge/fix/cudaPackages/outputSpecified 2024-07-03 19:19:51 +00:00
om omnictl: 0.38.1 -> 0.38.2 2024-06-28 04:50:30 +00:00
on onlyoffice-bin_latest: 8.0.0 -> 8.1.0 2024-06-27 11:12:16 +02:00
oo/oo7
op Merge pull request #323837 from mguentner/mguentner/openapi_changes_0_0_65 2024-07-04 08:35:55 -04:00
or orchard: 0.20.0 -> 0.21.0 2024-07-02 18:18:22 +00:00
os
ot
ou outguess: init at 0.4 2024-07-03 15:03:57 +00:00
ov ovn: fix ovn trying to create socket in nix store 2024-07-02 11:53:34 +02:00
ow
pa Merge pull request #323925 from r-ryantm/auto-update/paper-age 2024-07-02 16:31:35 -04:00
pc/pcsx2 pcsx2: darwin support, add maintainer 2024-07-01 22:36:03 +01:00
pd
pe maintainers: remove vigress8 2024-07-02 11:39:58 +04:00
pf/pfft
pg Merge pull request #317779 from r-ryantm/auto-update/pgmoneta 2024-07-03 00:26:36 +02:00
ph Merge pull request #324532 from r-ryantm/auto-update/phpactor 2024-07-04 13:56:16 +02:00
pi Merge pull request #322846 from ryand56/picocrypt 2024-07-04 11:50:12 +02:00
pk
pl plasmusic-toolbar: 1.2.1 -> 1.2.2 2024-07-03 15:49:00 +00:00
pm
pn
po polarity: init at 0-unstable-2024-06-28 2024-07-04 09:05:52 +00:00
pp/ppsspp
pq
pr proton-pass: 1.18.0 -> 1.19.2 2024-07-04 04:33:18 +00:00
ps/ps_mem
pt ptyxis: 46.3 -> 46.4 2024-06-29 14:42:06 +00:00
pu
pv/pvsneslib
pw
px/pxder
py Merge pull request #319049 from azuwis/ibus-pinyin 2024-07-03 11:03:35 +02:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd
qg/qgrep
qp/qpoases
qr qrtool: 0.10.10 -> 0.10.13 2024-06-29 02:37:41 +00:00
qs
qt/qtractor
qu quickemu: fix Samba shares 2024-07-03 08:58:10 +02:00
r0/r0vm
r1/r10k
ra Merge pull request #288895 from Tochiaha/origin/rainbowcrak 2024-07-03 11:52:33 +08:00
rc Merge pull request #324118 from r-ryantm/auto-update/rcp 2024-07-03 16:56:58 -04:00
rd/rdwatool
re Merge pull request #320832 from Jamalam360/master 2024-07-04 19:53:26 +05:30
rh/rHttp
ri Merge pull request #323637 from r-ryantm/auto-update/ricochet-refresh 2024-07-02 22:01:06 +02:00
rk
rl/rl_json
rm
rn/rnd-name
ro Merge pull request #283308 from 0x4A6F/master-rotonda 2024-07-04 00:38:33 +05:30
rp/rpcs3 rpcs3: 0.0.32-16614-5b973448b -> 0.0.32-16648-71524271e 2024-06-29 07:29:31 +00:00
rq
rs
rt rtorrent: use multiple outputs, update documentation 2024-06-26 11:06:04 -03:00
ru Merge pull request #322474 from anas-contribs/rustmission 2024-06-26 12:02:31 +00:00
rw/rwpspread
ry rygel: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
s0/s0ix-selftest-tool
s3
sa sarasa-gothic: 1.0.14 -> 1.0.15 2024-06-30 16:19:46 +00:00
sb/sbom-utility
sc scion: use mattn/go-sqlite3 instead of modernc.org/sqlite 2024-07-03 09:08:58 +02:00
sd
se Merge pull request #319342 from h7x4/pkgs-segger-jlink-misc-fixups 2024-07-04 12:00:35 +02:00
sf/sfwbar
sg/sgfutils
sh shopware-cli: 0.4.47 -> 0.4.48 2024-06-29 10:46:36 +00:00
si Merge pull request #319659 from jtojnar/gnome-extract 2024-07-02 08:03:53 +02:00
sk
sl maintainers: remove buffet 2024-07-04 13:17:34 +02:00
sm adwaita-icon-theme: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
sn snipe-it: 7.0.4 -> 7.0.6 2024-06-29 22:36:37 +02:00
so Merge pull request #291640 from tie/sonarr-v4 2024-07-04 12:08:02 -03:00
sp spades: unbreak on darwin 2024-07-04 00:36:01 +02:00
sq
sr srm-cuarzo: 0.5.7-1 -> 0.6.0-1 2024-06-30 05:45:44 +00:00
ss sshesame: fix build on darwin 2024-07-02 15:46:53 +02:00
st Merge pull request #314116 from MatthewCroughan/mc/steam-play-none 2024-07-02 17:50:33 +02:00
su superfile: 1.1.2 -> 1.1.3 (#323021) 2024-07-03 12:29:19 +02:00
sv Merge pull request #322830 from r-ryantm/auto-update/svelte-language-server 2024-07-02 23:09:49 +02:00
sw treewide: remove bb010g from maintainers 2024-07-04 02:41:05 -07:00
sx
sy Merge pull request #323870 from r-ryantm/auto-update/syshud 2024-07-02 16:01:33 +00:00
t-/t-rex
ta tailwindcss-language-server: 0.0.16 -> 0.0.18 2024-06-30 06:47:19 +00:00
tb/tbump
tc/tcsh
td
te terraform-local: init at 0.18.2 2024-07-04 17:14:53 +05:30
tg
th zenity: Move from gnome scope to top-level 2024-07-01 08:26:47 +02:00
ti Merge pull request #324242 from r-ryantm/auto-update/tile38 2024-07-04 12:57:36 +00:00
tk
tl
tm
to totem: Move from gnome scope to top-level 2024-07-01 08:26:49 +02:00
tp Merge pull request #321647 from Frontear/update-tpnote 2024-06-27 15:57:48 -04:00
tr treefmt2: 2.0.1 -> 2.0.2 (#323995) 2024-07-03 13:24:03 +02:00
tt
tu gnome-themes-extra: Move from gnome scope to top-level 2024-07-01 08:26:49 +02:00
tw
tx/txr txr: 294 -> 295 2024-06-30 12:21:40 +00:00
ty
uc
ud
ue
ug nodePackages.uglify-js: repackage using buildNpmPackage 2024-07-01 01:38:09 -03:00
uh/uhttpmock_1_0
ui
um/umpire
un Merge pull request #318312 from r-ryantm/auto-update/unciv 2024-06-28 01:06:19 +02:00
up
us
ut
uu/uuu
uv/uv
uw/uwhoisd
ux
va
vc vcpkg: 2024.05.24 -> 2024.06.15 2024-06-26 21:27:36 +00:00
vd/vdhcoapp
ve Merge pull request #320266 from doronbehar/pkg/versionInstallHook 2024-07-03 01:37:49 +03:00
vg/vgm2x
vi
vk/vkd3d
vl
vm
vn/vndr
vo/voidmap
vp vpl-gpu-rt: 24.2.3 -> 24.2.5 2024-06-29 14:13:48 +00:00
vs/vscode-js-debug vscode-js-debug: darwin support 2024-06-28 00:08:53 +02:00
vu vue-language-server: 2.0.21 -> 2.0.24 2024-07-01 18:42:45 +00:00
vv/vvvvvv maintainers: remove martfont 2024-07-02 19:12:00 +02:00
vz/vzic
wa Merge pull request #323545 from Guanran928/wastebin 2024-07-01 23:42:08 +02:00
wb maintainers: remove liketechnik 2024-07-02 18:42:56 +02:00
we Merge pull request #323098 from Aleksanaa/web-archives 2024-07-02 00:15:30 +02:00
wg/wg-access-server
wh Merge pull request #321933 from r-ryantm/auto-update/whistle 2024-06-29 08:30:26 +02:00
wi Merge pull request #319659 from jtojnar/gnome-extract 2024-07-02 08:03:53 +02:00
wl Merge pull request #317029 from 0x5a4/maintain-wlinhibit 2024-06-29 00:31:58 +08:00
wo maintainers: drop janik 2024-07-02 02:36:42 +02:00
wp
ws wstunnel: 9.7.1 -> 9.7.2 2024-06-26 17:03:34 +02:00
wt
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe
xf/xfs-undelete
xh/xhosts
xi xivlauncher: 1.0.9 -> 1.1.0 2024-06-29 01:24:16 +01:00
xl xlights: 2024.11 -> 2024.12 2024-06-29 02:53:42 +00:00
xm
xn/xnlinkfinder
xo
xp
xr/xr-hardware
xs xsct: 2.2 -> 2.3 2024-06-30 01:24:49 +02:00
xu/xunit-viewer
xw xwayland-satellite: init at 0.4 2024-06-30 15:17:26 +02:00
ya yazi-unwrapped: format with nixfmt 2024-07-03 09:27:18 +01:00
yc/ycmd
yd/ydotool
ye yelp-xsl: Move from gnome scope to top-level 2024-07-01 08:26:49 +02:00
yg/yggdrasil
yj/yj
yo youtrack: 2024.2.34646 -> 2024.2.35942 2024-06-28 02:59:44 +00:00
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: make $out/bin/zed the CLI, not the main binary 2024-07-04 15:13:43 +10:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp zpaqfranz: 59.9 -> 60.1 2024-07-02 04:29:55 +00:00
zs
zu/zug
zw/zwave-js-server zwave-js-server: 1.35.0 -> 1.36.0 2024-06-29 10:51:57 +00:00
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;
}