nixpkgs/pkgs/by-name
2024-08-30 23:11:47 -04:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa aaaaxy: 1.5.183 -> 1.5.190 2024-08-29 13:56:33 +02:00
ab
ac
ad
ae aegisub: change --replace to --replace-fail 2024-08-27 16:33:29 +02:00
af
ag
ai aider-chat: 0.51.0 -> 0.53.0 2024-08-28 10:26:29 +00:00
al ffmpeg_4: almost drop (#336401) 2024-08-27 22:08:20 +02:00
am driversi686Linux.amdvlk: 2024.Q3.1 -> 2024.Q3.2 2024-08-30 14:09:57 +00:00
an anytype: 0.42.4 -> 0.42.5 2024-08-29 18:53:01 +02:00
ao/aocl-utils
ap
aq/aquamarine
ar
as ast-grep: 0.24.1 -> 0.26.3 2024-08-27 07:36:42 +00:00
at
au treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
av
aw
ax
ay
az
b3/b3sum
ba badger: 4.2.0 -> 4.3.0 2024-08-29 12:22:45 +00:00
bc
bd
be
bi bitwarden-desktop: 2024.8.0 -> 2024.8.1 (#337755) 2024-08-28 19:23:32 -07:00
bk/bk
bl blockbench: use electron.dist 2024-08-27 21:37:14 +02:00
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br bruno: use electron.dist 2024-08-27 21:37:14 +02:00
bs
bt
bu
by
c-
c2
ca caprine: use electron.dist 2024-08-27 21:37:14 +02:00
cb
cc
cd
ce
cg
ch chatzone-desktop: init at 5.2.1 (#311654) 2024-08-27 16:52:39 +02:00
ci
cj/cjs
cl
cm treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
cn
co codeium: 1.10.0 -> 1.14.11 (#330259) 2024-08-30 23:11:47 -04:00
cp
cq/cq
cr
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db
dc
dd
de treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn
do docfd: remove spurrious dependency on domainslib 2024-08-30 13:55:37 +02:00
dp
dr
ds
dt
du
dv/dvb-apps
dw
dx
dy
e1/e1s
ea
eb
ec
ed edk2: 202405 -> 202408 2024-08-27 15:14:52 +00:00
ee/eepers
ef/efibootmgr
eg/eg25-manager eg25-manager: 0.4.6 -> 0.5.0 2024-08-28 16:37:16 +02:00
ei eigenlayer: 0.10.2 -> 0.10.3 2024-08-29 00:07:10 +00:00
ej/ejsonkms
ek/eksctl
el
em
en
eo/eog
ep
er
es
et
eu
ev
ew/eww
ex
ey/eyewitness
ez/eza eza: 0.19.0 -> 0.19.1 2024-08-28 14:19:59 +02:00
f2/f2fs-tools
fa
fb/fbset
fc
fe feishin: use electron.dist 2024-08-27 21:37:15 +02:00
ff ffmpeg-normalize: move to pkgs/by-name 2024-08-28 11:03:35 +02:00
fg/fgqcanvas
fi files-cli: 2.13.122 -> 2.13.128 2024-08-30 13:59:12 +00:00
fj/fjo
fl flarectl: 0.102.0 -> 0.103.0 2024-08-28 13:25:35 +00:00
fm fmtoy: 0-unstable-2024-06-07 -> 0-unstable-2024-06-11 (#325489) 2024-08-28 10:12:53 +02:00
fn/fnott
fo forgejo-lts: 7.0.7 -> 7.0.8 2024-08-29 18:15:17 +02:00
fr frankenphp: 1.2.4 -> 1.2.5 2024-08-28 00:56:55 +00:00
fs
ft/fte
fu
fv
fw/fwupd
fx/fx
fy
fz fzf: 0.54.3 -> 0.55.0 2024-08-30 00:09:24 +10:00
g3/g3kb-switch
ga treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub (#336777) 2024-08-28 22:17:38 -04:00
gb
gc
gd
ge
gf
gg/gg
gh
gi gitlab-timelogs: init at 0.3.0 (#337461) 2024-08-30 16:54:41 +02:00
gk/gk-cli
gl
gm
gn
go goofcord: use electron.dist 2024-08-27 21:37:15 +02:00
gp
gr grafana-alloy: 1.3.0 -> 1.3.1 2024-08-27 21:23:42 +02:00
gt
gu
gv/gvisor
gx/gxml
h2/h2
h5/h5utils
h8/h8mail
ha hatch: skip failing test 2024-08-30 08:05:55 +02:00
hb/hb-honeypot
hc/hclfmt
hd
he
hi
hj/hjson-go
hn/hn-text
ho
hp
ht
hu
hv/hvm
hw/hwinfo
hx/hxtools
hy hydra: move to pkgs/by-name 2024-08-29 15:34:35 +10:00
i2/i2p
i3
ia
ic
id
if
ig
ii
ij ijq: 1.1.1 -> 1.1.2 2024-08-28 10:33:15 -05:00
im imhex: 1.35.3 -> 1.35.4 2024-08-30 12:04:00 +02:00
in
io
ip
ir
is
it
iv
iw/iw
iz/izrss
ja
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jq/jq-zsh-plugin
jr
js
jt/jtdx
ju just: 1.34.0 -> 1.35.0 2024-08-30 13:06:10 +05:30
jw/jwasm
ka kanidm: require big-parallel for building 2024-08-28 17:55:32 -04:00
kc
kd
ke
kg/kgeotag
ki
kl
km
kn
ko komac: 2.2.1 -> 2.5.0 + add HeitorAugustoLN as a maintainer (#329482) 2024-08-29 10:24:46 +02:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kx
ky
la lazysql: 0.2.4 -> 0.2.5 2024-08-30 01:53:54 +00:00
lb
lc
ld
le legba: fix darwin build (#336084) 2024-08-27 09:07:46 -04:00
lg/lgogdownloader
li lime3ds: 2116 -> 2117.1 (#335689) 2024-08-29 23:46:29 -04:00
lk/lk-jwt-service
ll llama-cpp: 3620 -> 3645 2024-08-30 13:52:39 +00:00
lm
ln/lngen
lo loopwm: 1.0.0 -> 1.1.1 2024-08-27 17:31:10 +01:00
lp
lr/lrcget
ls
lt/ltris
lu
lv/lv_font_conv
lw/lwgrp
lx lxc: added option for unprivileged containers (#310088) 2024-08-28 15:16:56 -04:00
lz
m1/m1ddc
m2
ma marwaita: 20.3.1 -> 21 2024-08-29 15:04:31 +00:00
mb
mc
md md-tui: 0.8.5 -> 0.8.6 2024-08-28 09:05:54 +02:00
me meteor-git: 0.22.0 -> 0.23.0 (#337833) 2024-08-28 03:00:28 +00:00
mf
mg
mi micro: add pbsds to maintainers (#338085) 2024-08-29 21:04:21 -04:00
mk
ml/mlx42
mo mongodb-ce: 7.0.12 -> 7.0.14 2024-08-29 11:11:39 +02:00
mp
mq mqtt-explorer: use electron.dist 2024-08-27 21:37:16 +02:00
mr/mricron
ms
mu museum: photos-v0.9.16 -> photos-v0.9.30 2024-08-29 10:48:41 +00:00
my
n2/n2
n8/n8n
n9/n98-magerun2
na naja: 0-unstable-2024-07-21 -> 0-unstable-2024-08-27, fix darwin (#337288) 2024-08-29 13:38:55 +02:00
nb nbqa: 1.8.7 -> 1.9.0 (#337735) 2024-08-27 20:03:19 +02:00
nc
nd/ndstrim
ne netclient: 0.24.3 -> 0.25.0 (#337945) 2024-08-29 14:42:15 +02:00
nf
ng
nh
ni nix-update: remove maintainer 2024-08-30 12:08:06 +10:00
nl
nm
nn
no npmInstallHook: extract nodejsInstall{Manuals,Executables} (#336644) 2024-08-30 06:06:06 +00:00
np
nr
ns
nt
nu
nv
nw nwg-panel: 0.9.37 -> 0.9.38 2024-08-28 12:37:48 +00:00
nx/nxengine-evo
nz
oa
ob
oc
od
oe/oelint-adv
of
oh
oi
ok
ol
om
on onedrive: fixup version test 2024-08-28 12:37:43 -03:00
oo
op open-webui: 0.3.15 -> 0.3.16 2024-08-29 08:07:09 +02:00
oq/oqs-provider
or
os
ot
ou
ov
ow
pa
pc
pd
pe
pf/pfft
pg pgraphs: 0.6.13 -> 0.6.17 (#333191) 2024-08-28 20:29:51 -04:00
ph
pi picocrypt: 1.40 -> 1.41 2024-08-31 01:58:15 +00:00
pk
pl
pm
pn
po pop-launcher: prefer --replace-fail for substituteInPlace (#337457) 2024-08-28 19:33:34 +00:00
pp/ppsspp
pq
pr {prisma,prisma-engines}: 5.16.1 -> 5.18.0 (#337521) 2024-08-31 00:15:53 +00:00
ps
pt
pu pupdate: 3.11.1 -> 3.12.0 2024-08-28 16:47:59 +00:00
pv
pw
px/pxder
py pyright: 1.1.377 -> 1.1.378 2024-08-28 08:03:38 +00:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced qbittorrent-enhanced: 4.6.5.10 -> 4.6.6.10 2024-08-30 08:53:30 +00:00
qc/qcm
qd
qg/qgrep
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs
qt/qtractor
qu glxinfo: replace with mesa-demos 2024-08-28 14:38:12 +02:00
qw/qwerty-fr
r0/r0vm
r1/r10k
ra radicale: 3.2.1 -> 3.2.3 2024-08-30 11:33:10 +02:00
rc rclip: 1.10.2 -> 1.10.3 2024-08-28 16:19:45 +08:00
rd/rdwatool
re renode: 1.15.1 -> 1.15.2 (#338431) 2024-08-30 22:17:41 +04:00
rf/rfdump
rh/rHttp
ri ripunzip: 1.2.2 -> 1.2.3 2024-08-30 14:35:06 +00:00
rk box64: 0.2.8 -> 0.3.0 (#326034) 2024-08-27 16:34:12 +02:00
rl/rl_json
rm
rn
ro
rp/rpcs3 rpcs3: 0.0.32-16857-1c16ada67 -> 0.0.32-16875-3b36df48e 2024-08-29 09:45:44 +00:00
rq
rr/rrdtool
rs
rt
ru rustlings: 6.2.0 -> 6.3.0 2024-08-30 02:46:49 +00:00
rw/rwpspread
ry
s0/s0ix-selftest-tool
s3
sa
sb
sc sc: Init at 2024-08-15 2024-08-28 22:46:48 +02:00
sd
se
sf/sfwbar
sg/sgfutils
sh
si siyuan: use electron.dist 2024-08-27 21:37:17 +02:00
sk skypeforlinux: 8.126.0.208 -> 8.127.0.200 2024-08-29 19:51:25 +00:00
sl
sm
sn treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
so
sp spirit: 0-unstable-2024-05-24 -> 0.5.0 (#332140) 2024-08-30 20:58:03 -04:00
sq sqlite_orm: 1.8.2 -> 1.9 2024-08-30 08:58:55 +00:00
sr
ss
st stalwart-mail: only include foundationdb for linux builds (#337162) 2024-08-30 10:36:05 +00:00
su surrealdb: fix build (#337916) 2024-08-30 10:29:11 +00:00
sv
sw
sx
sy sysdig-cli-scanner: 1.14.0 -> 1.15.0 2024-08-30 07:38:34 +00:00
t-/t-rex
ta taler-wallet-core: init at 0.12.12 2024-08-29 13:41:33 +02:00
tb/tbump
tc
td
te teams-for-linux: 1.4.27 -> 1.9.5 (#337868) 2024-08-28 20:17:47 -07:00
tg
th
ti
tk
tl
tm
to
tp
tr
ts/tsm-client
tt
tu
tw
tx
ty
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui uiua: 0.12.2 -> 0.12.3 2024-08-28 04:02:55 +00:00
um/umpire
un
up
ur/urban-cli
us
ut
uu/uuu
uv/uv uv: 0.3.5 -> 0.4.0 2024-08-30 08:05:55 +02:00
uw
ux uxn: 1.0-unstable-2024-08-12 -> 1.0-unstable-2024-08-25 2024-08-28 07:59:36 +00:00
va valijson: 1.0.2 -> 1.0.3 2024-08-28 16:39:18 +00:00
vc
vd/vdhcoapp
ve vesktop: use electron.dist 2024-08-27 21:37:18 +02:00
vg vgm2x: 0.0.0-unstable-2023-08-27 -> 0-unstable-2024-06-18 (#325500) 2024-08-28 10:13:26 +02:00
vi vimcats: init at 1.0.2 2024-08-28 11:10:07 +02:00
vk
vl
vm
vn
vo
vp
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa warp-terminal: Add Aarch64 support 2024-08-28 02:43:20 +02:00
wb
wc/wcurl
we
wf/wf-touch
wg/wg-access-server
wh
wi
wl
wo
wp
wr/wrangler
ws wstunnel: 10.0.1 -> 10.1.0 2024-08-29 20:24:27 +00:00
wt
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa xarcan: 0-unstable-2024-08-04 -> 0-unstable-2024-08-26 2024-08-28 04:06:33 +00:00
xc
xd
xe
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr
xs
xu/xunit-viewer
xv/xviewer
xw
ya yamlscript: 0.1.72 -> 0.1.73 (#338270) 2024-08-30 07:51:18 +00:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo youtrack: 2024.2.40106 -> 2024.2.41254 2024-08-27 11:35:21 +00:00
ys/ysfx
yt ytdownloader: 3.18.0 -> 3.18.2 2024-08-28 12:08:44 +01:00
yu
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.149.6 -> 0.150.4 2024-08-28 13:02:38 -04:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp
zs
zu
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;
}