nixpkgs/pkgs/by-name
2024-08-31 12:05:08 +00: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
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 Merge master into staging-next 2024-08-30 18:04:02 +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
at
au
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 Merge master into staging-next 2024-08-28 18:04:19 +00:00
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br breakpointHook: move to by-name, mark broken instead of asserting 2024-08-30 15:03:42 -07:00
bs
bt
bu
by
c-
c2
ca Merge master into staging-next 2024-08-28 18:04:19 +00:00
cb
cc
cd
ce cemu: fix build, missing wayland-scanner 2024-08-31 11:14:44 +02:00
cg
ch
ci
cj/cjs
cl
cm Merge master into staging-next 2024-08-29 06:05:05 +00: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
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 eslint: 9.7.0 -> 9.9.1 2024-08-31 10:46:21 +02:00
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 gamescope: 3.14.29 -> 3.15.2, move wayland-scanner to common inputs 2024-08-29 21:39:25 +03: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
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 hypridle: fix build, missing wayland-scanner 2024-08-31 11:23:44 +02: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 installShellFiles: set passthru directly instead of overriding it 2024-08-28 18:52:12 -03:00
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 Merge staging-next into staging 2024-08-31 00:13:46 +00:00
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
lg/lgogdownloader
li staging-next 2024-08-23 (#336718) 2024-08-31 11:49:12 +02:00
lk/lk-jwt-service
ll llama-cpp: 3620 -> 3645 2024-08-30 13:52:39 +00:00
lm
ln/lngen
lo Merge master into staging-next 2024-08-28 06:04:54 +00: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 matrix-commander-rs: 0.3.0 -> 0.4.1 (#338520) 2024-08-31 09:33:40 +02:00
mb
mc
md md-tui: 0.8.5 -> 0.8.6 2024-08-28 09:05:54 +02:00
me Merge master into staging-next 2024-08-28 06:04:54 +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 muffin: fixup build, missing wayland-scanner 2024-08-30 13:43:30 +02:00
my
n2/n2
n8/n8n
n9/n98-magerun2
na Merge staging-next into staging 2024-08-29 12:05:39 +00:00
nb
nc
nd/ndstrim
ne Merge master into staging-next 2024-08-29 18:04:21 +00:00
nf
ng
nh
ni Merge staging-next into staging 2024-08-30 12:05:38 +00:00
nl
nm
nn
no npmInstallHook: extract nodejsInstall{Manuals,Executables} (#336644) 2024-08-30 06:06:06 +00:00
np
nr
ns
nt
nu nuv: remove breakpointHook from nativeBuildInputs 2024-08-30 15:03:42 -07:00
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 Merge staging-next into staging 2024-08-29 12:05:39 +00: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 proto: 0.38.3 -> 0.40.2 (#335537) 2024-08-31 00:11:47 -04: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 remnote: 1.16.101 -> 1.16.107 2024-08-31 10:05:17 +00:00
rf/rfdump
rh/rHttp
ri Merge master into staging-next 2024-08-30 18:04:02 +00:00
rk
rl/rl_json
rm
rn
ro roon-tui: 0.3.0 -> 0.3.2 2024-08-31 11:42:07 +02:00
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 Merge staging-next into staging 2024-08-30 18:04:32 +00:00
sd
se
sf/sfwbar sfwbar: fix build, missing wayland-scanner 2024-08-31 11:35:00 +02:00
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
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 sway-audio-idle-inhibit: fix build, missing wayland-scanner 2024-08-31 11:37:39 +02:00
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 tinyxxd: init at 1.3.5 2024-08-30 08:23:09 -07:00
tk
tl
tm
to
tp
tr troubadix: 24.8.0 -> 24.8.2 2024-08-31 06:36:34 +00:00
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 python312Packages.uv: 0.4.0 -> 0.4.1 2024-08-31 05:45:29 +00: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 Merge master into staging-next 2024-08-28 18:04:19 +00: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 treewide: support structuredAttrs in setup hooks (part 2) (#335666) 2024-08-28 14:07:58 -07:00
wb
wc/wcurl
we werf: 2.10.4 -> 2.10.5 2024-08-30 23:13:50 +00:00
wf/wf-touch
wg/wg-access-server
wh
wi
wl wlvncc: fix build, missing wayland-scanner 2024-08-31 11:47:10 +02:00
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 Merge staging-next into staging 2024-08-29 00:13:35 +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
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;
}