1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/by-name
2024-11-01 10:57:22 +08:00
..
_0
_1 _1password-cli: rename from _1password 2024-10-27 14:18:57 -05:00
_2/_2ship2harkinian
_4
_6/_64gram _64gram: 1.1.39 -> 1.1.43 2024-10-29 10:59:42 +00:00
_9
a4/a4
a5/a52dec
aa
ab
ac Merge master into staging-next 2024-10-26 12:05:46 +00:00
ad Merge remote-tracking branch 'origin/master' into staging-next 2024-10-26 21:05:47 +03:00
ae aerospace: 0.14.2-Beta -> 0.15.2-Beta (#349798) 2024-10-24 16:14:53 +02:00
af
ag
ai
al alioth: 0.5.0 -> 0.6.0 (#352375) 2024-10-31 22:50:06 +01:00
am amdgpu_top: 0.8.5 -> 0.9.2; add passthru.updateScript (#351840) 2024-10-31 13:23:01 +01:00
an Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 09:10:05 +03:00
ao/aocl-utils
ap apt-mirror: fix cross compilation, set strictDeps (#352376) 2024-10-31 14:47:04 -04:00
aq/aquamarine
ar armitage: patch for Gradle 8 2024-10-30 05:46:00 +00:00
as astro-language-server: 2.15.3 -> 2.15.4 2024-10-27 18:38:23 +09:00
at atproto-goat: 0-unstable-2024-10-08 -> 0-unstable-2024-10-29 (#352383) 2024-10-30 19:43:57 +00:00
au audacity: migrate to apple-sdk_11 2024-10-31 11:03:47 +01:00
av avro-tools: 1.11.3 -> 1.12.0 2024-10-29 13:26:44 +00:00
aw awscli2: 2.17.64 -> 2.18.15 2024-10-30 20:14:51 +01:00
ax axis2: copy lib to $out/lib 2024-10-25 22:09:05 +02:00
ay
az azure-cli: 2.64.0 -> 2.65.0 (#347241) 2024-10-28 11:17:12 +01:00
b3/b3sum
ba Merge master into staging-next 2024-10-29 06:05:06 +00:00
bc
bd
be beekeeper-studio: 4.6.2 -> 4.6.8 (#343622) 2024-10-24 17:14:44 -04:00
bi Revert "bisq2: init @ 2.1.2" 2024-10-31 07:02:17 +00:00
bk/bk
bl blobdrop: init at 2.1 (#346632) 2024-10-28 23:22:45 +08:00
bm
bn/bngblaster
bo boogie: 3.2.4 -> 3.2.5 (#344952) 2024-11-01 03:35:31 +01:00
bp
bq/bqn
br bruno: 1.32.1 -> 1.34.0 2024-10-25 22:09:42 -05:00
bs
bt
bu bunbun: 1.4.0 -> 1.5.0 2024-10-30 09:34:33 +01:00
by
c- c-intro-and-ref: init at 0.0-unstable-2024-08-31 2024-10-30 18:18:02 +08:00
c2
c3/c3-lsp
ca Merge master into staging-next 2024-10-30 12:05:37 +00:00
cb
cc
cd
ce certdump: refactor maintainer 2024-10-31 13:17:12 -07:00
cf
cg
ch chawan: 0-unstable-2024-09-03 -> 0-unstable-2024-10-25 (#343892) 2024-11-01 03:14:09 +01:00
ci cider-2: init at 2.5.0 2024-10-30 21:32:21 +01:00
cj/cjs
cl clash-rs: init at 0.7.0 2024-10-29 21:32:07 +00:00
cm
cn
co codeium: 1.20.4 -> 1.24.2 (#351406) 2024-10-31 14:58:34 -04:00
cp cppcheck: 2.15.0 -> 2.16.0 2024-10-28 17:10:55 +01:00
cq/cq
cr crystal-dock: 2.5 -> 2.7 (#351631) 2024-10-27 14:43:18 +00:00
cs
ct ctune: init at 1.3.2 2024-10-30 20:15:58 +01:00
cu
cv/cvemap
cw/cwe-client-cli
cy
cz/czkawka
da dart-sass: 1.77.6 -> 1.80.5 2024-10-29 23:32:31 +00:00
db dbeaver-bin: 24.2.1 -> 24.2.3 2024-10-25 18:50:57 +00:00
dc
dd
de Merge remote-tracking branch 'origin/master' into staging-next 2024-10-28 21:46:13 +03:00
dg
dh/dhcpig
di disko: 1.8.2 -> 1.9.0 2024-10-29 03:03:43 +00:00
dj/djent
dm dmenu-rs: refactor to add variant with enabled plugins 2024-10-28 23:50:16 -05:00
dn
do dotnet-repl: init at 0.1.216 (#299834) 2024-10-28 23:29:32 +08:00
dp
dr drone-scp: 1.6.14 -> 1.7.0 2024-10-28 18:11:16 +00:00
ds dsda-doom: add nix-update-script 2024-10-25 16:54:10 +02:00
dt
du duckstation-bin: init at 0.1-7294 (#336021) 2024-10-30 17:06:33 +08:00
dv
dw
dx
dy
e1/e1s
ea earthlyls: init at 0.5.3 2024-10-29 20:57:04 +03:00
eb
ec ecapture: 0.8.7 -> 0.8.8 2024-10-25 21:56:45 +08:00
ed
ee/eepers
ef
eg/eg25-manager
ei eigenlayer: 0.10.6 -> 0.10.8 2024-10-28 10:17:46 +00:00
ej ejabberd.src: switch to github 2024-10-25 10:42:34 +08:00
ek
el
em treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
en
eo/eog
ep Merge master into staging-next 2024-10-29 12:06:00 +00:00
eq
er eris-go: 20240920 -> 20241028 2024-10-28 12:54:16 +00:00
es
et
eu
ev
ew
ex exo: 0-unstable-2024-10-21 -> 0-unstable-2024-10-28 2024-10-29 15:43:55 +01:00
ey/eyewitness
ez/eza eza: 0.20.5 -> 0.20.6 2024-10-31 14:51:19 +01:00
f2/f2fs-tools
fa Merge master into staging-next 2024-10-31 00:14:46 +00:00
fb/fbset
fc fcitx5-mcbopomofo: 2.7 -> 2.8 (#351664) 2024-10-28 12:03:21 +08:00
fd/fdroidserver
fe fedimint: 0.4.3 -> 0.4.4 2024-10-28 07:29:34 +00:00
ff fflogs: 8.14.0 -> 8.14.21 2024-10-27 12:47:49 +00:00
fg/fgqcanvas
fi fido2-manage: init at 0-unstable-2024-09-24 (#347516) 2024-10-28 16:00:51 +01:00
fj/fjo
fl flexget: 3.11.48 -> 3.11.49 (#350509) 2024-10-29 18:19:37 +08:00
fm
fn/fnott
fo forgejo-lts: 7.0.9 -> 7.0.10 2024-10-28 18:34:15 +01:00
fr fretboard: v7.1 -> v8.0 (#352678) 2024-10-31 21:17:32 +01:00
fs
ft
fu fulcio: 1.6.4 -> 1.6.5 2024-10-30 13:52:38 +00:00
fv
fw/fwupd
fx/fx
fy
fz fzf-make: 0.36.0 -> 0.37.0 2024-10-29 18:19:42 +00:00
g-/g-wrap
g3/g3kb-switch
ga gale: init at 0.8.11 (#348901) 2024-10-28 23:21:50 +08:00
gb
gc
gd
ge geis: fix build 2024-10-30 06:53:31 +08:00
gf
gg/gg
gh
gi git-chain: init at 0-unstable-2024-08-09 (#342850) 2024-10-28 23:24:54 +05:30
gk/gk-cli
gl
gm gmic: 3.4.2 -> 3.4.3 2024-10-30 21:40:57 +00:00
gn
go gotestdox: init at 0.2.2 (#350973) 2024-10-29 15:46:27 +08:00
gp
gr gruvbox-gtk-theme: 0-unstable-2024-09-12 -> 0-unstable-2024-10-29 2024-10-29 23:04:53 +01:00
gs gsan: init at 5.0.0 2024-10-28 14:24:48 +01:00
gt
gu gui-for-clash: init at 1.8.9 (#351924) 2024-10-30 17:08:41 +08:00
gv/gvisor
gw/gweled
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha
hb/hb-honeypot
hc/hclfmt
hd
he Merge master into staging-next 2024-10-31 00:14:46 +00:00
hi hiddify-app: init at 2.5.7-unstable-2024-10-30 2024-10-30 19:49:35 +08:00
hj/hjson-go
hn/hn-text
ho host-spawn: init at 1.6.0 (#349674) 2024-10-26 15:05:20 +02:00
hp
hr/hred
ht httpdirfs: 1.2.5 -> 1.2.6 (#351506) 2024-10-28 19:50:32 +02:00
hu
hv/hvm
hw/hwinfo hwinfo: patch shebangs for perl 2024-10-25 21:40:07 +02:00
hx/hxtools
hy hydra: 2024-10-08 -> 2024-10-24 (#351970) 2024-10-31 18:29:06 -04:00
i2/i2p
i3
ia
ic icloudpd: use dependencies and build-system 2024-10-26 18:00:35 +01:00
id
if
ig
ii
ij
im immich: 1.119.0 -> 1.119.1 2024-10-29 11:03:00 -07:00
in intiface-central: 2.6.0 -> 2.6.4 (#351191) 2024-10-27 05:59:09 +02:00
io
ip
ir
is
it
iu/iucode-tool
iv ivyterm: fix hash 2024-10-30 11:56:51 +01:00
iw
iz/izrss
j/j
ja jankyborders: switch to apple-sdk_11 2024-10-31 10:08:04 -05:00
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jp/jp-zip-codes
jq
jr
js
jt jtbl: init at 1.6.0 2024-10-26 21:20:40 +01:00
ju
jw/jwasm
k8 k8sgpt: 0.3.30 -> 0.3.41 2024-10-24 17:10:23 -07:00
ka Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 16:10:56 -06:00
kb/kbld
kc
kd kdlfmt: init at 0.0.3 2024-10-27 13:51:30 +09:00
ke keyspersecond: init at 8.9 (#281495) 2024-10-28 23:24:41 +08:00
kg/kgeotag
ki kitsas: add qtwayland build input for linux 2024-10-29 10:39:59 +01:00
kl klog-rs: 0.0.3 -> 0.1.0 2024-10-31 03:54:13 +00:00
km
kn
ko kor: 0.5.5 -> 0.5.6 2024-10-29 03:01:02 +00:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kw/kwok kwok: 0.6.0 -> 0.6.1 2024-10-29 14:17:33 +00:00
kx
ky
la lazysql: 0.2.9 -> 0.3.0 2024-10-28 05:47:35 +00:00
lb
lc
ld
le less: adopt and rewrite (master) (#350981) 2024-10-28 11:24:51 +08:00
lg/lgogdownloader
li libedgetpu: init at 0-unstable-2024-03-14 (#343786) 2024-11-01 10:55:27 +08:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 16:10:56 -06:00
lp
lr/lrcget
ls
lt/ltris
lu luminous-ttv: init at 0.5.7 (#335481) 2024-10-29 16:05:06 +08:00
lv/lv_font_conv
lw
lx lxgw-wenkai: 1.500 -> 1.501 2024-10-28 00:23:53 +08:00
lz
m1/m1ddc
m2
ma matrix-gtk-theme: 0-unstable-2024-07-22 -> 0-unstable-2024-10-29 (#352207) 2024-10-31 15:51:27 +01:00
mb
mc
md
me
mf
mg
mi mieru: init at 3.7.0 (#295634) 2024-11-01 10:56:13 +08:00
mj/mjmap
mk
ml/mlx42
mm mmdbctl: use native way to refer the mmdb path (#352356) 2024-10-31 15:11:23 +08:00
mo nixos/monado: install monado-vulkan-layers (#301044) 2024-10-31 19:21:38 +01:00
mp
mq
mr/mricron
ms
mt
mu Merge master into staging-next 2024-10-31 00:14:46 +00:00
my
n2/n2
n8/n8n
n9/n98-magerun2
na Merge master into staging-next 2024-10-29 12:06:00 +00:00
nb
nc nc4nix: 0-unstable-2024-09-18 -> 0-unstable-2024-09-28 (#345181) 2024-11-01 03:30:43 +01:00
nd
ne Merge master into staging-next 2024-10-29 18:04:32 +00:00
nf
ng ngrok: add version test 2024-10-26 16:50:08 +02:00
nh
ni nicotine-plus: 3.3.4 -> 3.3.5 (#345427) 2024-11-01 03:24:01 +01:00
nl
nm
nn
no nomad-pack: 0.1.2 -> 0.2.0 (#349071) 2024-10-29 18:12:54 +08:00
np
nr
ns
nt
nu nufmt: switch to apple-sdk_11 2024-10-31 10:09:43 -05:00
nv
nw nwjs-ffmpeg-prebuilt: 0.92.0 -> 0.93.0 (#351749) 2024-10-28 05:42:19 +00:00
nx/nxengine-evo
ny/nym nym: 2024.10-caramello -> 2024.12-aero 2024-10-25 22:25:19 +08:00
nz
oa
ob objfw: use clang stdenv 2024-10-29 07:53:09 +00:00
oc octoscan: 0.1.1 -> 0.1.2 2024-10-28 13:45:28 +01:00
od
oe/oelint-adv
of offat: relax tenacity constraint 2024-10-26 04:54:41 +02:00
og/oguri
oh
oi
ok
ol
om omnisharp-roslyn: drop .NET 7 test, refactor (#343690) 2024-10-31 12:07:17 -03:00
on
oo
op opencomposite: 0-unstable-2024-10-02 -> 0-unstable-2024-10-28 2024-10-31 14:09:38 +00:00
oq/oqs-provider
or Merge master into staging-next 2024-10-31 00:14:46 +00:00
os
ot otel-desktop-viewer: fix darwin build 2024-10-27 20:09:11 +01:00
ou
ov overlayed: 0.5.0 -> 0.6.2 2024-10-26 10:44:18 +08:00
ow
p3/p3x-onenote
pa parpd: init 2.3.0 (#346418) 2024-10-29 11:10:26 +08:00
pb/pb
pc pcsx2-bin: 2.1.205 -> 2.1.231 2024-10-30 08:37:34 +00:00
pd Merge master into staging-next 2024-10-31 00:14:46 +00:00
pe
pf
pg
ph
pi pixi: 0.31.0 -> 0.34.0 (#349438) 2024-10-26 00:35:02 +02:00
pk
pl plasmusic-toolbar: 1.6.0 -> 2.0.0; nixfmt; modernize (#349420) 2024-10-29 18:13:49 +08:00
pm pmtiles: 1.22.0 -> 1.22.1 2024-10-25 09:00:26 +00:00
pn
po Merge master into staging-next 2024-10-31 00:14:46 +00:00
pp/ppsspp
pq pqiv: 2.13.1 -> 2.13.2 2024-10-31 16:55:15 +00:00
pr Merge master into staging-next 2024-10-29 18:04:32 +00:00
ps
pt
pu puffin: init at 1.7.1 2024-10-28 00:36:07 +01:00
pv
pw pwncat: modernize 2024-10-24 21:00:19 +02:00
px/pxder
py pyamlboot: init at 1.0.0 (#352028) 2024-11-01 10:56:35 +08:00
pz/pzip
q2/q2pro q2pro: init at r3510 2024-10-28 13:49:23 +01:00
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd
qe/qemu_xen
qg
qm
qn/qnial
qo/qodem
qp/qpoases
qq/qq qq: 3.2.12-2024.9.27 -> 3.2.13-2024.10.23 2024-10-25 21:44:12 +08:00
qr
qs
qt
qu
qw/qwerty-fr
r0/r0vm
r1/r10k
ra rainfrog: 0.2.7 -> 0.2.9 2024-10-27 10:57:03 +01:00
rc
rd/rdwatool
re redmine: Update vulnerable gems where possible (#352106) 2024-10-30 09:26:43 +01:00
rf/rfdump
rh
ri
rk
rl/rl_json
rm
rn
ro rofi-games: init at 1.10.2 (#301397) 2024-10-28 23:23:32 +08:00
rp rpcs3: 0.0.33-16999-938306a7b -> 0.0.33-17070-8b8396b94 2024-10-30 00:22:26 +00:00
rq
rr/rrdtool
rs rsop: init at 0.3.9 (#344650) 2024-10-26 21:06:04 +02:00
rt
ru rustdesk-flutter: 1.3.1 -> 1.3.2 2024-10-29 13:40:17 +01:00
rw/rwpspread
rx/rxvt
ry
s0/s0ix-selftest-tool
s3
sa salt-lint: init at 0.9.2 (#351946) 2024-11-01 10:57:22 +08:00
sb
sc Merge master into staging-next 2024-10-30 00:14:27 +00:00
sd
se Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 16:10:56 -06:00
sf
sg/sgfutils
sh shotcut: 24.09.13 -> 24.10.13 (#345541) 2024-11-01 03:55:40 +01:00
si simple64-netplay-server: 2024.06.1 -> 2024.10.1 2024-10-30 16:24:12 +00:00
sk sketchybar-app-font: 2.0.24 -> 2.0.25 2024-10-30 23:23:21 +00:00
sl chore: updated to 1.8.0 2024-10-26 11:17:01 -05:00
sm
sn snoop: 0.4 -> 0.4.1 2024-10-26 10:48:11 +08:00
so sonar-scanner-cli: 4.7.0.2747 -> 6.2.1.4610 (#329764) 2024-10-29 22:52:21 +01:00
sp sphinxygen: init at 1.0.4 (#351219) 2024-10-28 20:12:37 +08:00
sq sql-studio: init at 0.1.27 (#341807) 2024-10-29 16:03:12 +08:00
sr
ss sshified: init at 1.2.1 (#351532) 2024-10-27 20:53:13 +08:00
st stardust-xr-server: init at 0.44.1 (#324375) 2024-11-01 09:04:55 +08:00
su sudachidict: 20240716 -> 20241021 2024-10-29 20:35:41 +09:00
sv
sw uhd: 4.6.0.0 -> 4.7.0.0 (#349079) 2024-10-31 15:47:18 +01:00
sx
sy syncstorage-rs: 0.17.9 -> 0.17.12 (#350176) 2024-10-31 01:12:05 +01:00
t-/t-rex
ta tailscale: 1.76.1 -> 1.76.3 2024-10-31 03:48:58 +01:00
tb/tbump
tc/tcsh treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
td treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
te telegram-bot-api: 7.3 -> 7.10 (#352099) 2024-10-30 17:30:54 +08:00
tf/tflint
tg
th theattyr: remove leading indefinite article in description 2024-10-29 09:47:59 +01:00
ti
tk tkey-ssh-agent: add updateScript and testVersion (#336939) 2024-10-31 17:28:01 +08:00
tl
tm
to totp-cli: init at 1.8.7 (#348086) 2024-11-01 10:38:21 +08:00
tp tpnote: 1.24.8 -> 1.24.9 2024-10-30 07:07:28 +00:00
tr Merge master into staging-next 2024-10-30 00:14:27 +00:00
ts tsukimi: add nix-update-script to passthru 2024-10-31 12:46:05 +01:00
tt
tu turbocase: init 1.8.0 (#347257) 2024-10-29 14:57:06 +08:00
tw
tx
ty tygo: init at 0.2.17 2024-10-29 08:27:29 -04:00
u-
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 23:56:04 -06:00
up
ur
us
ut
uu/uuu
uv/uv uv: 0.4.28 → 0.4.29 2024-10-31 07:36:30 +01:00
uw uwsm: 0.20.0 -> 0.20.1 2024-10-26 00:20:40 +00:00
ux
va vapoursynth: 69 -> 70 (#342668) 2024-11-01 03:36:35 +01:00
vc
vd/vdhcoapp
ve versatiles: 0.12.10 -> 0.13.0 2024-10-31 05:35:05 +00:00
vf/vfkit
vg
vi viddy: 1.1.5 -> 1.2.0 2024-10-31 08:46:29 +05:30
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vt/vt323
vu
vv/vvvvvv
vw/vwsfriend
vy
vz/vzic
wa wakatime-cli: 1.98.5 -> 1.102.3 (#344517) 2024-11-01 02:49:18 +01:00
wb
wc
we Merge remote-tracking branch 'origin/master' into staging-next 2024-10-28 21:46:13 +03:00
wf/wf-touch
wg
wh whatsie: 4.16.1 -> 4.16.2 2024-10-25 22:37:00 +02:00
wi wiremock: 3.9.1 -> 3.9.2 (#351728) 2024-10-28 06:17:55 +00:00
wl
wo
wp wprs: add sanity test. 2024-10-29 09:01:17 -07:00
wr
ws wstunnel: 10.1.3 -> 10.1.5 2024-10-25 09:37:38 -07:00
wt
wu/wush
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x4/x4 x4: init at 0.1.0 (#346736) 2024-10-29 15:15:15 +08:00
xa
xc
xd
xe
xf/xfs-undelete treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo xortool: modernize 2024-10-24 21:05:42 +02:00
xp
xr xrgears: unstable-2021-06-19 -> 1.0.1-unstable-2024-07-09 (#320650) 2024-10-28 21:22:14 +01:00
xs
xt/xtf
xu/xunit-viewer
xv/xviewer
xw
ya yandex-cloud: 0.133.0 -> 0.136.0 (#351779) 2024-10-31 01:17:44 +00:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo your_spotify: 1.10.1 -> 1.11.0 (#350978) 2024-10-26 17:03:38 +02:00
yp/ypbind-mt
ys/ysfx
yt ytdl-sub: 2024.10.26 -> 2024.10.27.post5 2024-10-28 02:38:43 +00:00
yu
za zabbix-cli: 3.1.2 -> 3.1.3 2024-10-28 19:53:45 +01:00
zb/zbus-xmlgen
zc
ze zed-editor: fix license generation 2024-10-31 17:18:13 +01:00
zf zfp: fix build 2024-10-30 22:35:30 +08:00
zi zip2hashcat: init at 1.0 2024-10-27 01:25:24 -04:00
zl/zluda
zm/zmkBATx
zo zoom-us: 6.2.3.2056 -> 6.2.5.2440 2024-10-27 06:22:14 +00:00
zp
zs
zu
zv/zvbi
zw/zwave-js-server
zx
zy/zydis
zz/zziplib
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 attribute name corresponding to the package, and so is the lowercase 2-letter prefix of the attribute 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. Since it would take a lot of contributor and reviewer time to migrate all packages manually, an automated migration is planned, though it is expected to still take some time to get done. If you're interested in helping out with this effort, please see this ticket.

Since only PRs to packages in pkgs/by-name can be automatically merged, if package maintainers would like to use this feature, they are welcome to migrate their packages to pkgs/by-name. To lessen PR traffic, they're encouraged to also perform some more general maintenance on the package in the same PR, though this is not required and must not be expected.

Note that callPackage definitions in all-packages.nix with custom arguments should not be removed. That is a backwards-incompatible change because it changes the .override interface. Such packages may still be moved to pkgs/by-name however, in order to avoid the slightly superficial choice of directory / category in which the default.nix file was placed, but please keep the definition in all-packages.nix using callPackage. See also changing implicit attribute defaults.

Definitions like the following however, can be transitioned:

# all-packages.nix
fooWithBaz = foo.override {
  bar = baz;
};
# turned into pkgs/by-name/fo/fooWithBaz/package.nix with:
{
  foo,
  baz,
}:

foo.override {
  bar = baz;
}

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-vet tool.

You can locally emulate the CI check using

$ ./ci/nixpkgs-vet.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;
}