nixpkgs/pkgs/by-name
Peder Bergebakken Sundt 715b2ae92e
Merge pull request #292608 from onemoresuza/hare-crosscomp
hare: enable cross-compilation
2024-03-06 19:36:45 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa aaaaxy: 1.5.6 -> 1.5.23 2024-02-26 18:45:04 +01:00
ab/aba
ac action-validator: 0.5.4 -> 0.6.0 2024-02-23 07:36:14 +00:00
ad adalanche: init at 2024.1.11 2024-03-03 23:05:24 +01:00
ae
af afterglow-cursors-recolored: init at 0-unstable-2023-10-04 2024-02-10 17:27:18 +01:00
ag/ags ags: init at 1.8.0 2024-03-06 18:16:39 +08:00
ai
al alsa-ucm-conf: drop conflicting upstream patch 2024-02-16 21:43:57 +00:00
am
an ansel: unstable-2024-01-05 -> unstable-2024-02-23 2024-02-25 00:26:30 +00:00
ao/aocl-utils aocl-utils: 4.1 -> 4.2 2024-02-28 10:19:38 +00:00
ap api-linter: 1.63.6 -> 1.64.0 2024-03-05 00:49:25 +00:00
ar arcticons-sans: init at 0.580 2024-02-25 16:24:50 +00:00
as ast-grep: 0.19.2 -> 0.19.3 2024-02-27 10:16:02 +00:00
at atuin: 18.0.1 -> 18.0.2 2024-02-26 10:38:41 -08:00
au audiness: 0.2.1 -> 0.3.0 2024-03-06 00:07:41 +01:00
av/avr-sim
aw
ax/axmldec
ay ayatana-indicator-session: Re-enable test-service test 2024-02-24 11:57:22 +01:00
ba
bc/bc-ur
be bemoji: 0.3.0 -> 0.4.0 2024-02-24 15:02:26 +00:00
bi Merge pull request #288994 from r-ryantm/auto-update/bitmagnet 2024-02-28 12:39:46 +11:00
bk/bk
bl
bm/bmake bmake: 20240212 -> 20240301 2024-03-03 03:15:22 +00:00
bn/bngblaster bngblaster: 0.8.35 -> 0.8.39 (#290294) 2024-03-02 18:46:48 +01:00
bo bonsai: 1.0.2 -> 1.1.0 2024-02-24 21:02:06 +00:00
bp/bpftop bpftop: 0.2.2 -> 0.2.3 2024-03-02 15:15:45 +00:00
br bruteforce-wallet: 1.5.3 -> 1.5.4 2024-03-02 03:53:19 +00:00
bs/bsync
bu butler: migrate to by-name 2024-02-24 22:44:41 +01:00
by byobu: migrate to by-name 2024-02-23 08:47:31 -03:00
c- c-graph: init at 2.0.1 2024-02-17 22:26:40 +04:00
c2
ca cargo-bloat: add meta.mainProgram 2024-03-02 00:38:05 +08:00
cb/cbmbasic
cc/ccache
cd
ce treewide: Prevent nuget deps files from referencing SDK packages 2024-02-26 16:07:02 -04:00
cg/cgl
ch Merge pull request #292133 from Aleksanaa/chromatic 2024-03-02 13:15:11 +01:00
ci
cl cloudrecon: 1.0.3 -> 1.0.4 2024-03-05 13:27:22 +00:00
cm cmake: add meta.mainProgram 2024-02-27 20:28:27 +02:00
cn/cntb cntb: 1.4.6 -> 1.4.8 2024-02-27 13:02:28 +01:00
co Merge pull request #292499 from GaetanLepage/codeium 2024-03-01 15:22:08 -05:00
cp
cr Merge pull request #284038 from TomaSajt/cringify 2024-02-23 06:23:49 +01:00
cs csvlens: 0.6.0 -> 0.7.0 2024-02-24 21:31:18 +00:00
ct/ctx
cu/cursewords cursewords: init at 1.1 2024-02-17 00:59:22 -08:00
cy
cz/czkawka czkawka: 6.1.0 -> 7.0.0 2024-02-19 22:36:46 +00:00
da das: 0.3.8 -> 1.0.3 2024-02-19 22:36:02 +08:00
db/dbus-cpp
dc/dc3dd dc3dd: remove darwin support 2024-02-27 22:37:50 +01:00
dd/ddns-updater ddns-updater: init at 2.6.0 2024-02-22 20:44:17 +00:00
de delfin: 0.3.0 -> 0.4.0 2024-02-21 13:25:13 +00:00
di disko: 1.3.0 -> 1.4.0 2024-03-06 16:57:30 +01:00
dj/djent
dm dmitry: init at 1.3a-unstable-2020-06-22 2024-02-10 18:25:04 +01:00
dn/dns2tcp dns2tcp: init at 0.5.2 2024-02-20 18:44:09 +01:00
do doublecmd: 1.1.9 -> 1.1.10 2024-02-21 19:44:43 +00:00
dp/dpp
dr/drone-scp
ds Merge pull request #281250 from Gliczy/dsda-launcher 2024-02-13 19:28:16 +01:00
dt/dtcmp
du dunst: 1.9.2 -> 1.10.0 2024-02-20 15:45:56 +13:00
dv/dvb-apps
dx
dy Merge pull request #279186 from shyim/upd-dynamodb 2024-03-02 23:43:07 +01:00
ea/easyeasm
eb
ec
ed edbrowse: enable Unix ODBC support 2024-02-25 19:32:14 -03:00
ei eigenlayer: 0.6.1 -> 0.6.2 2024-02-19 01:44:08 +00:00
ek/eksctl eksctl: 0.172.0 -> 0.173.0 2024-03-01 13:52:55 +00:00
el elf-info: init at 0.3.0 2024-02-27 09:40:27 +01:00
em emacspeak: 58.0 -> 59.0 2024-02-28 18:39:28 -03:00
en envio: 0.5.0 -> 0.5.1 2024-02-17 06:26:14 +00:00
er Merge pull request #278951 from sund3RRR/errands-init 2024-02-20 10:46:15 +01:00
es
eu
ex extest: init at 1.0.2 2024-03-04 19:18:20 +11:00
ez/eza eza: 0.18.5 -> 0.18.6 2024-03-06 06:04:27 +01:00
fa fastcdr: 2.1.3 -> 2.2.0 2024-02-23 11:11:09 +01:00
fb/fbset
fc fcitx5-rose-pine: init at 0-unstable-2024-03-01 2024-03-01 18:13:35 +13:00
fe feather: 2.6.2 -> 2.6.3 2024-02-28 22:36:34 +00:00
ff ffsubsync: refactor 2024-02-29 15:00:55 +01:00
fi files-cli: 2.12.39 -> 2.12.40 2024-03-06 07:42:32 +00:00
fl flake-checker: 0.1.16 -> 0.1.17 2024-03-03 09:10:51 +00:00
fm fm-go: init at 0.16.0 2024-02-25 18:17:56 -03:00
fn/fnott
fo
fr freefilesync: 13.3 -> 13.4 2024-02-18 21:34:31 +01:00
fu/fuchsia-cursor
fw/fwupd fwupd: 1.9.13 -> 1.9.14 2024-02-27 10:24:28 +01:00
fy/fypp
ga galaxis: 1.10 -> 1.11 2024-03-04 10:24:10 -03:00
gb/gbar
gc
ge gerbolyze: init at v3.1.7 2024-02-17 01:22:36 -05:00
gh gh-poi: init at 0.9.8 2024-02-25 10:06:21 +09:00
gi gitlab-ci-local: init at 4.46.1 2024-03-06 22:07:43 +09:00
gl Merge pull request #293535 from Aleksanaa/glide-media-player 2024-03-06 12:37:19 +00:00
gm/gmic
gn/gnucap gnucap: move to by-name 2024-02-23 12:01:37 +01:00
go go-critic: 0.11.1 -> 0.11.2 2024-03-05 21:21:39 +00:00
gp gpt4all: 2.7.1 -> 2.7.2 2024-03-06 13:29:28 +01:00
gr graphite-cli: 1.1.5 -> 1.2.3 2024-02-23 19:16:39 +00:00
gt gtt: 8 -> 9 2024-02-11 18:12:18 +01:00
gu
gx/gxml gxml: init at 0.20.3 2024-03-03 18:50:04 +08:00
h8/h8mail
ha haredoc: init at 0.24.0 2024-03-06 11:57:55 -03:00
hd/hdrop
he helix-gpt: 0.27 -> 0.28 2024-02-24 16:26:55 -05:00
hi/hifile
hj/hjson-go
ho home-manager: 0-unstable-2024-02-20 -> 0-unstable-2024-02-24 2024-02-26 15:18:13 -03:00
ht scitoken-cpp -> scitokens-cpp (#288390) 2024-02-13 16:12:20 -05:00
hu/hugo hugo: 0.123.6 -> 0.123.7 2024-03-05 10:46:01 +00:00
hy Merge pull request #292117 from IogaMaster/hypridle 2024-02-28 17:40:41 +00:00
i3
ia
ic
id/idsk
if/ifrextractor-rs
ig
ii
im imhex: unstable-2023-10-01 -> 1.32.2 2024-02-27 12:03:08 +01:00
in Merge pull request #290959 from adamcstephens/incus/0.6 2024-02-28 13:35:03 -05:00
io/ioq3-scion ioq3-scion: init at unstable-2024-03-03 2024-03-04 14:47:46 +00:00
ip/ipam
ir/ironbar ironbar: 0.14.0 -> 0.14.1 2024-02-11 09:48:04 +00:00
it/itch itch: migrate to by-name 2024-02-24 22:44:34 +01:00
ja jasper: cosmetic reword on meta 2024-03-05 07:50:10 -03:00
jd/jdt-language-server
ji
jj/jj
jn/jnr-posix
jo jogl: refactor 2024-02-10 22:18:16 +01:00
js/jsoncons jsoncons: init at 0.173.4 2024-02-14 00:27:58 +04:00
ju/justbuild
ka
kc kchat: init at 2.4.0 2024-02-24 13:46:06 +01:00
kd/kdsingleapplication
ke keep-sorted: add update script 2024-03-05 20:20:15 +01:00
kg/kgeotag
ki Merge pull request #282429 from fabaff/killerbee 2024-02-19 23:55:37 +01:00
kl/klog-time-tracker
km/kmsvnc
kn/knossosnet knossosnet: init at 1.0.0 2024-02-14 21:09:29 -05:00
ko kor: 0.3.5 -> 0.3.6 2024-03-04 01:12:13 +00:00
kp/kplex
kr/krr krr: 1.7.0 -> 1.7.1 2024-03-05 12:22:12 +00:00
ks/kseexpr
kt
ku kubo: 0.26.0 -> 0.27.0 2024-03-04 13:12:17 +00:00
kx/kxstitch
la Merge pull request #292333 from PedroHLC/lan-mouse-init 2024-03-02 08:09:37 -03:00
lc/lcab
le lefthook: 1.6.4 -> 1.6.5 2024-03-04 21:26:51 +00:00
li Merge pull request #286523 from MarcelCoding/listmonk 2024-03-06 18:49:20 +01:00
ll llama-cpp: 2294 -> 2346 2024-03-05 19:34:21 +00:00
ln/lngen
lo Merge pull request #289391 from Erethon/erethon-loramon 2024-02-28 08:50:09 +00:00
ls lsd2dsl: 0.5.4 → 0.6.0 2024-02-23 04:29:47 +04:00
lt/ltris ltris: 1.2.7 -> 1.2.8 2024-02-29 22:11:38 -03:00
lu ludtwig: 0.8.2 -> 0.8.3 2024-03-05 10:09:09 +01:00
lw/lwgrp
lz
m2
ma Merge pull request #292846 from bcdarwin/init-margebot 2024-03-05 05:51:36 -05:00
mc
md mdsh: 0.7.0 -> 0.8.0 2024-02-29 15:37:32 +01:00
me Merge pull request #291967 from r-ryantm/auto-update/mev-boost 2024-03-04 08:37:14 -05:00
mf mfcj880dw: init at 1.0.0-1 2024-02-29 02:15:41 +01:00
mg/mgitstatus
mi miru: init at 4.5.10 2024-02-15 16:58:05 +01:00
mk
ml/mlx42
mo Merge pull request #292261 from Aleksanaa/mousam 2024-03-02 14:02:06 +01:00
mp/mpifileutils
mq mqttui: migrate to by-name 2024-03-05 19:07:08 +04:00
ms msolve: 0.6.4 -> 0.6.5 2024-02-26 21:41:38 +00:00
mu
my mystmd: 1.1.44 -> 1.1.45 2024-03-05 07:46:42 +00:00
n2/n2
na treewide: Prevent nuget deps files from referencing SDK packages 2024-02-26 16:07:02 -04:00
nb/nbtscan nbtscan: init at 1.7.2-unstable-2022-10-29 2024-02-17 16:00:40 +01:00
nc nc4nix: unstable-2023-11-06 -> 0-unstable-2024-03-01 2024-03-04 15:17:52 +01:00
ne netclient: 0.22.0 -> 0.23.0 2024-02-29 03:01:46 +00:00
nf/nfft
nh nh: 3.5.2 -> 3.5.3 2024-03-05 20:02:33 +00:00
ni nixfmt-rfc-style: 2024-01-31 -> 2024-03-01 2024-03-01 18:44:51 +01:00
nl
nm/nmap-parse
nn/nncp
no nowplaying-cli: init at 1.2.1 2024-03-03 16:19:20 +11:00
np
nr nrr: 0.5.2 -> 0.8.0 2024-02-24 10:23:20 +08:00
ns
nu Merge pull request #287511 from Aleksanaa/nulloy 2024-03-01 12:51:37 +01:00
nv nvidia-container-toolkit: move to by-name structure 2024-02-21 22:17:11 +01:00
nw Merge pull request #286424 from r-ryantm/auto-update/nwg-drawer 2024-03-06 13:13:09 +00:00
oa
ob obs-do: 0.1.0 -> 0.1.1 2024-02-11 13:55:17 +01:00
oc
oe/oelint-adv oelint-adv: 4.4.0 -> 4.4.1 2024-02-28 05:47:09 +00:00
of/offpunk offpunk: 2.1 -> 2.2 2024-02-12 22:47:52 +01:00
oh/oh-my-fish
oi
on Merge pull request #291642 from massix/fix/onedriver-systemd 2024-03-04 20:40:54 +01:00
op openscad: add wrapGAppsHook 2024-03-03 14:44:25 +01:00
or ory: 0.3.2 -> 0.3.4 2024-02-11 10:04:21 +00:00
os osm2pgsql: migrate to by-name 2024-02-23 15:12:06 +04:00
ot oterm: fix build 2024-02-11 11:30:10 +08:00
ou Merge pull request #290945 from leahneukirchen/outils-0.13 2024-02-29 18:54:25 +01:00
ov
ow/owncloud-client
pa pan-bindings: init at unstable-2024-03-03 2024-03-04 14:47:46 +00:00
pd Merge pull request #289632 from marsam/add-pdfannots 2024-02-18 17:00:34 -05:00
pe pest: 2.33.4 -> 2.34.1 2024-03-04 23:01:47 +01:00
pf/pfft
pg pgagroal: migrato to by-name 2024-02-23 04:20:00 +00:00
ph phpunit: 11.0.3 -> 11.0.4 2024-03-04 15:35:48 +01:00
pi Merge pull request #288667 from thiagokokada/cleanup-picom 2024-02-15 10:31:16 +00:00
pk/pkcrack
pl plumber: 2.5.3 -> 2.5.4 2024-02-22 02:41:56 +00:00
pm pmtiles: 1.14.1 -> 1.17.0 2024-02-15 21:15:07 +00:00
pn/pnfft
po powerhub: init at 2.0.7 2024-02-20 22:04:32 +01:00
pp/ppsspp
pq/pql pql: init at 0.1.0 2024-02-28 23:06:48 +01:00
pr Merge pull request #285807 from MinerSebas/prometheus-restic-exporter 2024-03-06 14:35:24 +01:00
pt ptcollab: 0.6.4.7 -> 0.6.4.8 2024-02-24 19:28:43 +01:00
pu purescm: init at 1.8.2 2024-02-20 15:58:48 +07:00
pw
px/pxder
py Merge pull request #289865 from dotlambda/spsdk-cryptography 2024-03-05 03:44:00 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qg/qgrep
qr qrtool: 0.10.4 -> 0.10.5 2024-02-19 00:59:41 +00:00
qs
qt/qtractor
qu Merge pull request #251015 from TomaSajt/quark-goldleaf 2024-02-16 23:15:06 +01:00
ra raspberrypi-eeprom: 2024.01.05-2712 -> 2024.02.16-271 2024-02-26 17:10:40 +01:00
rc rclip: 1.7.24 -> 1.7.26 2024-02-19 08:42:07 +08:00
re renode-unstable: 1.14.0+20240226git732d357b4 -> 1.14.0+20240305gitcec51e561 2024-03-05 15:46:53 +00:00
ri
rl/rl_json rl_json: use finalAttrs 2024-03-06 12:39:08 +01:00
rm/rmg
ro Merge pull request #291656 from corngood/dotnet-bin-upgrade 2024-03-03 09:55:55 -04:00
rp/rpcs3 rpcs3: add deps for wayland support 2024-02-21 02:28:23 +02:00
rq/rqbit rqbit: 5.4.2 -> 5.5.0 2024-02-26 04:20:00 +00:00
rs Merge pull request #290233 from D3vil0p3r/patch-3 2024-03-03 13:27:03 -08:00
rt/rtl-sdr-osmocom
ru rustdesk-flutter: unstable-2024-02-03 -> 1.2.3-unstable-2024-02-11 2024-02-12 17:00:40 +01:00
rw/rwpspread rwpspread: 0.1.9 -> 0.2.1 2024-02-19 18:47:37 +00:00
s3 s3proxy: init 2024-02-22 22:03:13 +00:00
sa satellite: init at 0.4.2 2024-02-25 13:52:10 +01:00
sc scion: add matthewcroughan as maintainer 2024-03-04 21:33:08 +00:00
sd sdcc: 4.2.0 -> 4.4.0 2024-02-13 12:47:11 +01:00
se sequoia-sq: fix darwin test failure 2024-03-02 23:25:36 +02:00
sg/sgfutils
sh shopware-cli: 0.4.24 -> 0.4.25 2024-03-03 14:28:51 +00:00
si simplex-chat-desktop: 5.4.4 -> 5.5.5 2024-02-23 15:06:26 +01:00
sl
sm smag: init at 0.7.0 2024-02-17 03:46:10 +01:00
sn sn0int: install shell completions 2024-02-24 23:08:46 +08:00
so sopwith: 2.3.0 -> 2.4.0 2024-03-05 05:44:22 +01:00
sp spicetify-cli: 2.33.0 -> 2.33.1 2024-03-02 17:50:14 +00:00
sq squirreldisk: add missing desktop item 2024-03-06 01:45:51 +01:00
sr srm-cuarzo: 0.5.2-1 -> 0.5.3-1 2024-02-24 17:20:12 +00:00
ss
st steamguard-cli: 0.12.6 -> 0.13.0 2024-03-05 02:42:11 +00:00
su Merge pull request #273272 from kugland/subtitlecomposer 2024-03-05 04:07:01 +00:00
sv svndumpsanitizer: init at 2.0.7 (#282398) 2024-02-24 00:39:45 +01:00
sw Merge pull request #287805 from raboof/sway-update-to-1.9 2024-02-29 12:06:52 +01:00
sx
sy syn2mas: 0.7.0 -> 0.8.0 2024-02-10 10:56:06 +00:00
ta Merge pull request #291744 from ghthor/upstream-tabby 2024-02-29 21:46:32 +00:00
tc/tcsh
td/tdl tdl: 0.16.0 -> 0.16.1 2024-03-04 02:00:09 +04:00
te tenki: init at 1.4.0 2024-03-06 20:20:39 +08:00
th
ti tippecanoe: 2.47.0 -> 2.49.0 2024-03-06 07:02:07 +00:00
tk/tkdiff
tl
tm/tmuxifier
to
tp
tr Merge pull request #283660 from ocfox/transfer 2024-03-01 13:36:03 +01:00
tt/ttop
tu Merge pull request #282960 from LeSuisse/tuleap-cli-1.1.0 2024-02-27 09:03:23 -05:00
tx/txr
ty typos-lsp: 0.1.13 -> 0.1.14 2024-03-03 05:13:40 +00:00
uc
ud
ue ueberzugpp: 2.9.3 -> 2.9.4 2024-02-26 07:25:15 +01:00
ui uiua: add meta.updateScript 2024-02-29 00:40:59 +01:00
um/umpire umpire: 2023.06.0 -> 2024.02.0 2024-02-23 08:45:58 +00:00
un Merge pull request #293182 from KamilaBorowska/universal-android-debloater-1.0.2 2024-03-04 08:41:33 -05:00
up updatecli: 0.70.0 -> 0.72.0 2024-02-11 04:50:35 +00:00
us/usql
ut ut1999: init at 469d 2024-03-04 23:27:59 +02:00
uu/uuu
uv/uv uv: 0.1.13 -> 0.1.14 2024-03-04 04:20:00 +00:00
ux/uxn uxn: fix version string 2024-02-28 12:41:10 -03:00
va vault-unseal: init at 0.5.1 2024-02-27 06:54:44 -07:00
vc vcpkg: 2024.01.12 -> 2024.02.14 2024-02-16 22:48:06 +00:00
ve vesktop: use stdenv instead of gcc13Stdenv 2024-02-13 21:29:43 +00:00
vg/vgm2x
vi VictoriaMetrics: 1.97.1 -> 1.99.0 (#293328) 2024-03-05 10:53:19 +01:00
vl/vlc vlc: migrate to by-name 2024-02-26 17:40:16 -03:00
vu/vulkan-volk
wa Merge pull request #292928 from imadnyc/warp-terminal-initial-linux 2024-03-03 14:06:48 -08:00
wb/wb32-dfu-updater
we weasis: 4.2.1 -> 4.3.0 2024-02-21 09:42:38 +00:00
wh whistle: 2.9.64 -> 2.9.65 2024-02-26 05:59:25 +00:00
wi wit-bindgen: 0.20.0 -> 0.21.0 2024-03-05 10:07:40 +00:00
wl wlogout: 1.2 -> 1.2.1 2024-03-01 10:14:12 -03:00
wo
wp/wp-cli
ws/wslay
wt/wtfis wtfis: 0.7.1 -> 0.8.0 2024-02-20 04:57:55 +00:00
x1/x16
xa/xarcan
xc Merge pull request #269031 from TomaSajt/xclicker 2024-02-28 23:55:42 +01:00
xd xdg-desktop-portal-shana: init at 0.3.9 2024-03-06 15:42:30 +01:00
xf/xfs-undelete
xi xiu: 0.12.0 -> 0.12.4 2024-03-02 07:20:00 +00:00
xm
xo
xp/xplr
xr/xr-hardware xr-hardware: init at unstable-2023-11-08 2024-02-23 14:25:15 +01:00
xs
xw/xwayland-run
ya yamlscript: 0.1.38 -> 0.1.39 2024-03-02 23:02:00 +00:00
ye
yg/yggdrasil
yj/yj
yo youtrack: 2023.3.23390 -> 2023.3.24329 2024-02-11 08:33:46 +00:00
ys/ysfx ysfx: init at 0-unstable-2022-07-31 2024-02-10 22:53:41 +00:00
yt
yu/yunfaavatar
za Merge pull request #278273 from gador/zabbix-agent2-plugin-postgresql 2024-03-05 00:37:42 +01:00
zb/zbus-xmlgen zbus-xmlgen: 3.1.1 -> 4.0.1 2024-02-27 21:15:44 +01:00
zc/zcfan zcfan: 1.2.1 -> 1.3.0 2024-02-29 10:21:20 +00:00
ze/zesarux
zi zigpy-cli: init at 1.0.4 (#289805) 2024-02-20 23:03:01 +01:00
zo/zola
zp zpaqfranz: 59.1 -> 59.2 2024-02-23 22:36:34 +00:00
zs/zs
zu/zug
zw/zwave-js-server
zx zxtune: 5055 -> 5056 2024-02-20 06:31:27 +00:00
README.md pkgs/by-name: recommendations for multi-versioned packages 2024-03-01 02:58:04 +01:00

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

$ ./pkgs/test/nixpkgs-check-by-name/scripts/run-local.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;