nixpkgs/pkgs/by-name
2024-11-27 21:23:28 +08:00
..
_0
_1
_2
_3
_4
_5/_5etools
_6
_7/_7kaa
_9
7z/7z2hashcat
a2
a4/a4
a5/a52dec
aa
ab abuild: 3.13.0 -> 3.14.1 (#359271) 2024-11-27 12:11:39 +01:00
ac
ad
ae aerospike: 7.2.0.1 -> 7.2.0.4 2024-11-25 08:13:20 +00:00
af
ag
ah
ai
aj/aj-snapshot
ak/akira-unstable
al aliae: 0.22.2 -> 0.23.0 (#359289) 2024-11-27 09:17:37 +00:00
am
an
ao/aocl-utils
ap
aq
ar
as
at
au audacious: move to pkgs/by-name 2024-11-25 17:29:44 +00:00
av
aw
ax
ay
az
b3/b3sum
b4
b6/b612
ba
bb
bc
bd
be
bf
bg
bi bitwarden-cli: 2024.9.0 -> 2024.11.0 (#350601) 2024-11-26 15:48:41 -08:00
bj/bjumblr
bk
bl
bm
bn/bngblaster
bo bottles: fix fhsenv version 2024-11-26 21:43:06 +01:00
bp
bq
br
bs
bt
bu Burpsuite: 2024.8.5 -> 2024.10.1 (#357898) 2024-11-27 07:56:07 +01:00
bv
bw
by
bz/bzrtp
c2
c3
c6/c64-debugger
c-
ca cargo-run-bin: 1.7.3 -> 1.7.4 (#359166) 2024-11-26 08:21:38 -05:00
cb cbmc: 6.0.1 -> 6.4.0 2024-11-25 16:44:04 +08:00
cc
cd
ce ceph-csi: 3.12.2 -> 3.12.3 2024-11-26 01:50:38 +00:00
cf
cg
ch chirp: 0.4.0-unstable-2024-11-11 -> 0.4.0-unstable-2024-11-22 (#358955) 2024-11-26 07:54:28 -05:00
ci circom: 2.2.0 -> 2.2.1 (#358598) 2024-11-25 09:13:12 -05:00
cj
ck
cl clang-uml: 0.5.5 -> 0.5.6 (#359297) 2024-11-27 03:48:15 +04:00
cm
cn
co cobang: fix build (#358962) 2024-11-27 19:39:55 +08:00
cp
cq/cq
cr
cs
ct
cu cue: 0.10.1 -> 0.11.0 (#357449) 2024-11-25 23:07:58 +01:00
cv
cw
cx
cy
cz
d2
d-
da
db
dc
dd
de devtoolbox: 1.2 -> 1.2.1 (#359079) 2024-11-27 10:12:05 +08:00
df
dg dgraph: 24.0.4 -> 24.0.5 2024-11-25 23:13:29 +00:00
dh
di diesel-cli: 2.2.4 -> 2.2.5 2024-11-25 19:56:09 +00:00
dj
dk
dl
dm
dn
do
dp
dq
dr
ds
dt
du
dv
dw
dx
dy
dz/dzen2
e1
e2
ea
eb
ec
ed
ee/eepers
ef efm-langserver: 0.0.53 -> 0.0.54 2024-11-26 13:42:54 +00:00
eg
ei eigenmath: 3.27-unstable-2024-10-18 -> 3.33-unstable-2024-11-22 2024-11-25 09:44:29 +00:00
ej
ek
el
em em100: init at 0-unstable-2024-11-14 (#355998) 2024-11-26 13:55:50 +01:00
en envision: fix fhsenv version 2024-11-26 21:48:33 +01:00
eo
ep
eq
er
es
et
eu
ev
ew
ex
ey
ez
f1
f2
f3/f3
f5/f5_6
fa factoriolab: init at 3.8.1 (#358014) 2024-11-27 13:11:05 +00:00
fb
fc
fd
fe
ff
fg
fh
fi
fj/fjo
fl flare-signal: 0.15.2 -> 0.15.6 (#359047) 2024-11-25 23:24:22 +01:00
fm
fn
fo
fp
fq/fq
fr
fs
ft
fu
fv
fw Fix cross-compilation for fwupd (#351182) 2024-11-27 04:09:47 +00:00
fx
fy
fz
g1/g15daemon
g2/g203-led
g3/g3kb-switch
g8/g810-led
g9/g933-utils
g-/g-wrap
ga
gb
gc gcfflasher: 4.4.0 -> 4.5.2 2024-11-25 14:03:35 +00:00
gd
ge genzai: init at 1.0 (#359224) 2024-11-27 08:03:23 +01:00
gf
gg
gh gh-f: 1.1.6 -> 1.2.0 2024-11-26 02:04:04 +00:00
gi gitea: 1.22.3 -> 1.22.4 2024-11-25 15:16:18 -05:00
gj
gk
gl glaze: 4.0.0 -> 4.0.1 (#358464) 2024-11-25 09:14:17 -05:00
gm
gn gnome-maps: fix cross compilation (#357238) 2024-11-27 19:43:24 +08:00
go gopass-jsonapi: 1.15.14 -> 1.15.15 (#358760) 2024-11-27 09:20:38 +02:00
gp
gq
gr
gs gcsan2pdf: update and pin tesseract version (#358158) 2024-11-26 22:51:10 -06:00
gt
gu
gv
gw
gx
gy
gz
h2
h5/h5utils
h8/h8mail
ha
hb
hc
hd
he
hf
hh
hi
hj/hjson-go
hl/hledger-check-fancyassertions
hm
hn
ho
hp
hq/hqplayerd
hr
hs
ht
hu
hv/hvm
hw
hx/hxtools
hy
i2
i3 i3bar-river: 1.0.1 -> 1.1.0 2024-11-25 11:03:41 +00:00
i8/i810switch
i-/i-dot-ming
ia
ib
ic
id
if
ig
ih/ihp-new
ii
ij
ik
il
im
in
io
ip
iq
ir
is
it
iu/iucode-tool
iv
iw
ix/ix
iz/izrss
j/j
j4/j4-dmenu-desktop
ja jasmin-compiler: 2024.07.1 → 2024.07.2 2024-11-27 08:36:45 +01:00
jb
jc
jd
je
jf
jg/jgmenu
jh
ji
jj/jj
jm
jn
jo
jp
jq
jr
js
jt
ju
jw
jx
jy/jython
k0/k0sctl
k2
k3
k4/k40-whisperer
k6/k6
k8
k9/k9s
ka kando: 1.4.0 -> 1.5.1 (#357538) 2024-11-27 21:23:28 +08:00
kb
kc
kd
ke
kf/kfilt
kg/kgeotag
kh
ki
kl
km
kn
ko
kp
kr
ks
kt
ku
kv
kw
kx
ky
l2/l2md
la lan-mouse: 0.9.1 → 0.10.0 (#358745) 2024-11-25 08:19:11 +01:00
lb
lc
ld ldeep: 1.0.73 -> 1.0.75 2024-11-25 09:03:31 +01:00
le
lf/lftp
lg
lh
li {libqalculate, qalculate-gtk, qalculate-qt}: 5.3.0 -> 5.4.0 (#359212) 2024-11-27 09:14:57 +02:00
lk
ll llama-cpp: 3887 -> 4154 2024-11-25 22:09:58 -08:00
lm
ln
lo
lp
lr
ls
lt
lu lua-language-server: 3.13.0 -> 3.13.2 (#357849) 2024-11-25 19:23:31 +00:00
lv
lw
lx
ly
lz
m1
m2
m3/m33-linux
m4
m-/m-cli
ma buildMavenPackage: Add overrideMavenAttrs function and buildOffline documentation (#313152) 2024-11-27 01:11:47 -08:00
mb
mc
md
me
mf
mg
mh/mhddfs
mi
mj
mk
ml
mm
mn
mo
mp
mq
mr
ms
mt
mu
mv
mw/mw
mx
my
n2
n3/n3
n8/n8n
n9
na
nb
nc ncmpc: fails on darwin 2024-11-25 10:52:35 +01:00
nd
ne nezha-agent: add updateScript; 0.20.3 -> 0.20.5 (#358660) 2024-11-26 08:44:16 -05:00
nf
ng
nh nhost-cli: 1.27.0 -> 1.27.1 2024-11-26 03:10:55 +00:00
ni nixVersions.{nix_2_20,nix_2_21,nix_2_22,nix_2_23}: drop 2024-11-25 16:12:18 +01:00
nj/njam
nk
nl
nm
nn
no
np
nq
nr
ns
nt
nu
nv
nw
nx
ny
nz
oa
ob
oc
od
oe
of
og
oh
oi
ok
ol ollama: 0.4.4 -> 0.4.5 2024-11-27 09:53:29 +08:00
om
on
oo
op open-webui: 0.4.5 -> 0.4.6 2024-11-27 09:03:40 +01:00
oq
or
os
ot
ou
ov
ow
ox
p0/p0f
p1/p11-kit
p2/p2pool
p3/p3x-onenote
p4/p4d
p9/p910nd
pa patroni: 4.0.3 -> 4.0.4 2024-11-26 18:12:56 +01:00
pb
pc
pd
pe penelope: init at 0.12.4-unstable-2024-10-21 (#358819) 2024-11-26 09:00:09 +01:00
pf
pg
ph
pi python312Packages.pinocchio: Disable test that fails on darwin (#358668) 2024-11-25 20:58:36 +01:00
pk
pl
pm pmbootstrap: 2.3.1 > 3.0.0 (#355579) 2024-11-25 09:28:51 -08:00
pn
po pocketbase: 0.22.22 -> 0.23.1 (#358946) 2024-11-26 23:18:33 +01:00
pp
pq
pr prometheus: 2.55.0 -> 3.0.0 (#358862) 2024-11-26 21:03:29 +01:00
ps
pt
pu pulsar: 1.122.0 -> 1.123.0 (#358575) 2024-11-25 13:13:38 +01:00
pv
pw
px
py
pz/pzip
q2/q2pro
q-/q-text-as-data
qa {libqalculate, qalculate-gtk, qalculate-qt}: 5.3.0 -> 5.4.0 2024-11-26 08:54:07 +01:00
qb
qc
qd
qe
qg
qh/qhull
qi/qidi-slicer-bin
qm
qn/qnial
qo
qp
qq
qr
qs
qt
qu
qw/qwerty-fr
r0/r0vm
r1
r2
r5/r53-ddns
ra rasm: 2.2.8 -> 2.2.11 2024-11-26 11:02:53 +00:00
rb rbw: fix darwin build 2024-11-25 01:21:07 -05:00
rc
rd
re reposilite: 3.5.18 -> 3.5.19 (#358380) 2024-11-26 20:08:31 +01:00
rf
rg
rh
ri rime-ls: init at 0.4.0 (#351508) 2024-11-26 17:57:56 +08:00
rk
rl
rm
rn
ro roddhjav-apparmor-rules: 0-unstable-2024-10-06 -> 0-unstable-2024-11-24 2024-11-25 11:11:19 +00:00
rp
rq
rr
rs
rt
ru
rv/rvvm
rw
rx
ry
rz/rzip
s0/s0ix-selftest-tool
s2
s3
s4/s4cmd
s5
s7/s7
s9/s9fes
s-
sa
sb
sc
sd
se seclists: 2024.3 -> 2024.4 2024-11-25 09:27:21 +01:00
sf
sg
sh shticker-book-unwritten: fix fhsenv version 2024-11-26 21:41:39 +01:00
si singular: 4.3.2p16 -> 4.4.0p6 (#357545) 2024-11-27 13:25:43 +01:00
sj/sjasmplus
sk
sl
sm
sn
so
sp splash: 3.10.3 -> 3.11.0 (#359043) 2024-11-26 14:14:01 +02:00
sq sqlite3-to-mysql: 2.3.1 -> 2.3.2 (#359087) 2024-11-26 17:44:20 +00:00
sr
ss
st stract: init at version 0-unstable-2024-09-14 (#343811) 2024-11-27 10:07:11 +01:00
su sunvox: Add back wayback machine fallback src (#357726) 2024-11-26 19:12:26 +01:00
sv
sw
sx
sy sysdig-cli-scanner: do not use --dbpath arg when --iac is set (#337736) 2024-11-25 15:14:35 +01:00
sz
t1
t4/t4kcommon
t-/t-rex
ta python312Packages.cached-property: 1.5.2 -> 2.0.1 (#357869) 2024-11-27 07:59:24 +01:00
tb
tc
td
te terragrunt: 0.68.7 -> 0.69.1 (#358803) 2024-11-26 12:41:57 +00:00
tf
tg
th
ti timew-sync-client: init at 1.0.1-unstable-2024-08-05 (#326945) 2024-11-27 11:40:27 +08:00
tk
tl
tm
tn
to toot: 0.45.0 -> 0.47.0 (#359210) 2024-11-27 15:51:51 +08:00
tp
tq/tqsl
tr tracexec: 0.5.2 -> 0.8.0 (#358870) 2024-11-26 21:08:41 +01:00
ts
tt
tu
tv
tw
tx
ty typstyle: 0.12.3 -> 0.12.4 2024-11-25 18:07:51 +01:00
tz
u0/u001-font
u2/u2ps
u3/u3-tool
u9/u9fs
u-
ua
ub
uc
ud
ue
uf
ug
uh
ui
uk/ukmm
ul
um
un
up
uq
ur
us
ut
uu
uv
uw
ux
v2
v4/v4l2-relayd
va vault: 1.18.1 -> 1.18.2 (#358001) 2024-11-25 13:41:41 -05:00
vb
vc
vd
ve
vf/vfkit
vg vgmstream: format with nixfmt-rfc-style 2024-11-25 17:16:28 +00:00
vh
vi vieb: 12.0.0 -> 12.1.0 2024-11-25 17:25:16 +00:00
vk
vl
vm
vn
vo
vp
vr
vs
vt
vu
vv
vw
vx/vxl
vy
vz/vzic
w3/w3m
w_
wa
wb
wc
wd
we
wf
wg
wh
wi
wk/wkhtmltopdf
wl
wm
wo
wp
wq
wr
ws
wt
wu
wv
ww/wwcd
wx
wy
x1
x2
x3/x3270
x4
x8/x86info
x-/x-create-mouse-void
xa
xb
xc
xd
xe xenon: 0.9.1 -> 0.9.3 2024-11-25 13:11:11 +00:00
xf
xg
xh
xi
xj
xk
xl
xm
xn
xo
xp
xq
xr
xs
xt
xu
xv
xw
xx
xy/xylib
xz
ya
yc/ycmd
yd
ye
yg
yj/yj
yl/yle-dl
ym
yo
yp/ypbind-mt
yq/yq-go
ys/ysfx
yt
yu
yx/yx
yy/yyjson
z8/z88dk
z-/z-lua
za
zb
zc
zd
ze python312Packages.python-bitcoinlib: rename from bitcoinlib 2024-11-26 17:21:18 +01:00
zf
zg
zi
zk
zl
zm
zn
zo
zp zpaqfranz: 60.7 -> 60.9 2024-11-25 23:25:33 +00:00
zr/zrepl
zs
zt
zu
zv/zvbi
zw/zwave-js-server
zx
zy/zydis
zz
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;
}