2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-16 17:14:00 +00:00
nixpkgs/pkgs/by-name
2024-10-04 07:54:49 +08:00
..
_0
_1
_2/_2ship2harkinian
_4
_6/_64gram
_9
a4/a4
a5/a52dec
aa
ab
ac actionlint: 1.7.2 -> 1.7.3 2024-10-02 22:07:48 +00:00
ad
ae
af
ag
ai
al albert: 0.26.3 -> 0.26.4 2024-09-29 23:47:34 +00:00
am
an
ao/aocl-utils
ap application-title-bar: 0.7.2 -> 0.7.3 2024-09-29 06:03:59 +00:00
aq/aquamarine
ar
as asm-lsp: add support for darwin () 2024-10-01 20:16:36 +02:00
at athens: 0.15.1 -> 0.15.2 2024-10-01 12:57:38 +02:00
au
av
aw
ax
ay
az azure-cli: only alias removed extensions if allowed 2024-10-01 14:11:53 +02:00
b3/b3sum
ba basedpyright: 1.18.0 -> 1.18.2 2024-10-01 03:24:28 +00:00
bc
bd
be
bi bicep: 0.30.3 -> 0.30.23 () 2024-09-30 00:02:46 +00:00
bk/bk
bl bluemap: 3.21 -> 5.4 () 2024-09-29 14:05:29 +02:00
bm
bn/bngblaster
bo bower2nix: init at 3.2.0-unstable-2024-06-25 2024-10-01 16:23:59 -07:00
bp
bq/bqn
br bruno: 1.29.1 -> 1.30.1 2024-09-29 23:48:11 +00:00
bs
bt
bu buildkite-agent: 3.77.0 -> 3.82.1 () 2024-10-02 16:54:43 +02:00
by
c2
c3/c3-lsp
c-
ca cairosvg: add cli () 2024-10-03 05:08:06 +02:00
cb
cc
cd
ce
cf/cf-tool
cg
ch chirp: 0.4.0-unstable-2024-09-19 -> 0.4.0-unstable-2024-09-28 2024-09-30 01:38:02 +00:00
ci cinny-desktop: use cargo-tauri.hook 2024-09-30 20:13:14 -04:00
cj/cjs
cl cljfmt: 0.12.0 -> 0.13.0 2024-10-01 15:31:42 +00:00
cm
cn
co code-cursor: 0.41.1 -> 0.41.3 2024-09-30 17:36:10 -07:00
cp
cq/cq
cr cryptpad: 2024.6.1 -> 2024.9.0 2024-10-03 05:56:53 +00:00
cs
ct/ctx
cu
cv/cvemap
cw/cwe-client-cli
cy
cz/czkawka
da
db
dc
dd
de devenv: 1.2 -> 1.3 2024-10-02 16:18:57 +01:00
dg
dh/dhcpig
di diffedit3: 0.4.0 -> 0.5.0 2024-10-02 02:39:44 +00:00
dj/djent
dm
dn
do dooit: Fix textual version () 2024-10-01 09:41:56 +10:00
dp
dr
ds
dt
du dumbpipe: 0.17.0 -> 0.18.0 2024-10-01 23:57:39 -04:00
dv
dw
dx
dy
e1/e1s
ea easytier: 1.2.3 -> 2.0.0 2024-10-01 21:33:21 +00:00
eb
ec
ed
ee/eepers
ef
eg/eg25-manager
ei eigenlayer: 0.10.4 -> 0.10.6 2024-10-02 09:46:34 +00:00
ej
ek
el
em
en envision-unwrapped: 0-unstable-2024-09-21 -> 0-unstable-2024-09-28 2024-10-02 05:38:55 +00:00
eo/eog
ep
er
es
et
eu
ev
ew
ex
ey/eyewitness
ez/eza eza: 0.20.0 -> 0.20.1 2024-10-03 08:31:11 +02:00
f2/f2fs-tools
fa fastfetch: 2.26.0 -> 2.26.1 2024-09-29 09:50:36 -05:00
fb/fbset
fc maintainers: rename oo-infty to oosquare 2024-09-30 15:35:17 +08:00
fd/fdroidserver
fe
ff fflogs: 8.13.5 -> 8.14.0 () 2024-10-01 17:15:20 +00:00
fg/fgqcanvas
fi firefoxpwa: 2.12.4 -> 2.12.5 () 2024-09-29 07:41:50 -04:00
fj/fjo
fl flarectl: 0.104.0 -> 0.105.0 () 2024-10-01 20:53:18 +00:00
fm
fn/fnott
fo 0.7.0 -> 0.7.2 2024-10-02 09:53:48 +02:00
fr fragment-mono: init at 1.21 () 2024-10-01 01:33:38 +02:00
fs
ft {ftjam,jam}: migrate to by-name () 2024-10-01 12:51:25 +01:00
fu
fv
fw/fwupd
fx/fx
fy
fz
g3/g3kb-switch
ga nixos/gatus: init module () 2024-10-02 11:08:14 +02:00
gb
gc
gd
ge
gf
gg gg-jj: init at 0.20.0 2024-10-02 20:36:17 +08:00
gh
gi gimoji: 1.1.0 -> 1.1.1 () 2024-10-01 23:19:13 +02:00
gk/gk-cli
gl glfw3: don't depend on extra-cmake-modules 2024-10-02 01:29:30 +03:00
gm
gn gnome-pomodoro 0.24.1 -> 0.26.0 () 2024-10-01 01:23:46 +02:00
go goda: move to pkgs/by-name, format 2024-10-02 07:56:58 +02:00
gp
gr graphite-cli: 1.4.4 -> 1.4.5 () 2024-10-01 01:12:13 +02:00
gt
gu
gv/gvisor
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha harlequin: remove unecessary tests.version 2024-10-01 10:49:36 +02:00
hb/hb-honeypot
hc/hclfmt
hd
he heptabase: 1.39.0 -> 1.40.0 2024-09-29 20:41:16 +00:00
hi
hj/hjson-go
hn/hn-text
ho home-manager: 0-unstable-2024-09-21 -> 0-unstable-2024-09-26 2024-09-30 20:54:17 +00:00
hp
hr/hred
ht
hu
hv/hvm
hw/hwinfo
hx/hxtools
hy hyprnotify: 0.7.0 -> 0.8.0 2024-09-30 10:45:05 +00:00
i2/i2p
i3
ia
ic
id
if
ig
ii
ij
im imsprog: 1.4.3 -> 1.4.4 () 2024-09-30 21:59:00 +09:00
in
io
ip
ir
is isponsorblocktv: init at 2.2.1 () 2024-09-29 17:18:16 +01:00
it
iu/iucode-tool
iv
iw
iz/izrss
j/j
ja {ftjam,jam}: migrate to by-name () 2024-10-01 12:51:25 +01:00
jc/jcli
jd/jdt-language-server
je
ji jira-cli-go: 1.5.1 -> 1.5.2 2024-10-01 10:56:14 +00:00
jj/jj
jn
jo
jp/jp-zip-codes jp-zip-codes: 0-unstable-2024-09-01 -> 0-unstable-2024-10-01 2024-10-01 02:07:27 +00:00
jq/jq-zsh-plugin
jr
js
jt/jtdx
ju jujutsu: 0.21.0 → 0.22.0 2024-10-02 19:45:19 +02:00
jw/jwasm
k8/k8s-manifest-sigstore
ka
kb/kbld
kc
kd
ke
kg/kgeotag
ki kiwitalk: use cargo-tauri.hook 2024-09-30 20:13:15 -04:00
kl
km
kn knossosnet: 1.2.0 -> 1.2.3 () 2024-10-01 01:20:30 +02:00
ko
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kw/kwok
kx
ky
la lammps: 29Aug2024 -> 29Aug2024_update1 2024-10-02 10:18:45 +03:00
lb
lc
ld
le lefthook: 1.7.16 -> 1.7.17 2024-10-01 18:21:33 +00:00
lg/lgogdownloader
li rtorrent: 0.9.8-unstable -> 0.10.0 () 2024-10-03 07:18:01 +01:00
lk/lk-jwt-service
ll
lm lmstudio: 0.3.2 -> 0.3.3 2024-10-01 22:21:35 +02:00
ln/lngen
lo local-ai: 2.19.4 -> 2.20.1 () 2024-10-03 07:47:27 +02:00
lp
lr/lrcget
ls lsp-ai: init at 0.7.1 () 2024-10-01 18:57:13 +10:00
lt/ltris
lu luaformatter: move to by-name 2024-10-01 23:26:56 -05:00
lv/lv_font_conv
lw
lx maintainers: rename oo-infty to oosquare 2024-09-30 15:35:17 +08:00
lz
m1/m1ddc
m2
ma matrix-hebbot: 2.1 -> 2.1-unstable-2024-09-20 2024-09-30 12:02:37 +08:00
mb mbtileserver: migrate to by-name 2024-10-03 10:59:35 +04:00
mc
md
me melonDS: 0.9.5-unstable-2024-09-18 -> 0.9.5-unstable-2024-09-29 2024-09-30 14:37:18 +00:00
mf
mg
mi mir: 2.17.2 -> 2.18.2 () 2024-10-02 13:16:18 +02:00
mk
ml/mlx42
mo mongodb-compass: 1.44.3 -> 1.44.4 () 2024-10-02 21:06:29 +02:00
mp
mq
mr/mricron
ms
mu
my mycelium: 0.5.4 -> 0.5.5 2024-09-30 10:33:11 +00:00
n2/n2
n8/n8n n8n: 1.60.1 -> 1.61.0 2024-09-30 20:44:37 +00:00
n9/n98-magerun2
na narsil: 1.3.0-187-g96d6b3bbd -> 1.3.0-234-g228c4f0cb 2024-09-30 19:04:54 +00:00
nb
nc
nd ndn-tools: move to by-name 2024-10-01 18:00:05 +02:00
ne newsboat: 2.36 -> 2.37 2024-09-30 05:16:28 +02:00
nf nf-test: ensure makeWrapper is restricted to nativeBuildInputs 2024-10-02 11:22:41 +02:00
ng
nh
ni nixos-facter: 0.1.0 -> 0.1.1 2024-10-01 10:09:48 +01:00
nl
nm
nn
no nomnatong: 5.11 -> 5.12 2024-09-30 17:58:59 +00:00
np
nr
ns
nt
nu nuclei-templates: 10.0.0 -> 10.0.1 2024-10-01 22:25:37 +02:00
nv
nw nwg-panel: 0.9.39 -> 0.9.40 2024-10-02 03:08:38 +00:00
nx/nxengine-evo
nz
oa
ob oboete: 0.1.5 -> 0.1.6 2024-10-02 16:39:42 +02:00
oc
od
oe/oelint-adv oelint-adv: 6.0.0 -> 6.1.0, fetch source from github, enable tests 2024-09-30 09:32:00 -04:00
of treewide: replace passthru.optional-dependencies with optional-dependencies 2024-09-29 20:37:23 -07:00
og/oguri
oh oh-my-posh: 23.14.1 -> 23.15.0 2024-10-01 12:26:28 +00:00
oi
ok
ol ollama: only set updateScript for ollama, not ollama-{rocm,cuda} () 2024-10-02 19:39:18 -04:00
om
on
oo
op openjph: 0.15.0 -> 0.17.0 () 2024-09-30 22:01:12 +09:00
oq/oqs-provider
or
os OSCAR: rename to oscar 2024-10-02 01:40:55 +02:00
ot
ou
ov
ow
pa paru: 2.0.3 -> 2.0.4 2024-09-29 23:34:12 +02:00
pc
pd pdi: init at 1.7.1 2024-09-30 13:29:54 +02:00
pe
pf
pg pgmoneta: 0.14.0 -> 0.14.1 2024-10-01 18:06:17 +00:00
ph
pi picocom: fix cross compilation () 2024-10-02 05:34:09 +03:00
pk
pl plasticity: 24.2.0 -> 24.2.3 () 2024-09-30 22:07:49 +09:00
pm
pn
po powermode-indicator: init at unstable-2024-07-13 () 2024-10-02 17:59:08 +02:00
pp/ppsspp
pq
pr project-lemonlime: init at 0.3.5 2024-10-04 07:54:49 +08:00
ps
pt
pu
pv
pw
px/pxder
py pyright: 1.1.381 -> 1.1.382 2024-10-01 20:55:21 +00:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd
qg
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs
qt
qu quarkus: 3.14.4 -> 3.15.1 () 2024-10-02 22:14:50 +02:00
qw/qwerty-fr
r0/r0vm
r1/r10k
ra railway: 3.14.1 -> 3.15.1 2024-10-01 19:04:05 +00:00
rc
rd/rdwatool
re realvnc-vnc-viewer: 7.12.0 -> 7.12.1 () 2024-10-02 21:22:29 +01:00
rf/rfdump
rh/rHttp
ri
rk
rl/rl_json
rm
rn
ro roddhjav-apparmor-rules: 0-unstable-2024-09-19 -> 0-unstable-2024-09-27 2024-09-30 01:39:58 +00:00
rp
rq
rr/rrdtool
rs
rt rtorrent,libtorrent: replace unstableGitUpdater with gitUpdater 2024-10-02 21:10:17 +02:00
ru
rw/rwpspread
rx/rxvt
ry ryujinx: Include more necessary libraries 2024-09-30 15:12:53 +00:00
s0/s0ix-selftest-tool
s3
sa satellite: 0.4.3 -> 0.5.0 () 2024-09-30 20:16:35 +02:00
sb
sc scopehal-apps: init at 0-unstable-2024-08-22 () 2024-09-30 12:34:22 -07:00
sd
se seafile: 10.0.1 -> 11.0.12 () 2024-09-30 23:53:02 +02:00
sf
sg/sgfutils
sh
si siyuan: 3.1.6 -> 3.1.8 2024-09-30 14:37:45 +00:00
sk
sl
sm smtp4dev: 3.3.4 -> 3.6.1 () 2024-10-02 09:51:48 +05:30
sn
so
sp spotube: 3.8.1 -> 3.8.2 () 2024-10-01 00:21:59 -04:00
sq
sr srgn: 0.13.1 -> 0.13.2 2024-09-29 03:13:23 -04:00
ss
st stevenblack-blocklist: 3.14.112 -> 3.14.115 2024-10-02 17:34:39 +00:00
su surrealist: use cargo-tauri.hook 2024-09-30 20:13:15 -04:00
sv
sw switch-to-configuration-ng: update rust-ini to support multi-line INI… () 2024-10-02 16:04:20 +01:00
sx
sy syshud: 0-unstable-2024-08-27 -> 0-unstable-2024-09-26 2024-09-29 15:04:09 +00:00
t-/t-rex
ta
tb/tbump
tc
td
te tetrio-plus: split into seperate derivation () 2024-10-01 22:30:06 +02:00
tg
th
ti tigerbeetle: add update script to update all hashes at the same time () 2024-10-01 07:26:07 -07:00
tk
tl
tm
to
tp
tr trealla: 2.56.15 -> 2.56.19 2024-09-30 01:11:58 +00:00
ts
tt
tu
tw twm: 0.10.2 -> 0.11.0, move to pkgs/by-name () 2024-10-01 01:52:45 +02:00
tx
ty typos: move to by-name and formatting 2024-10-01 15:16:37 +02:00
u-/u-config
ub
uc
ud
ue
ug maintainers: rename oo-infty to oosquare 2024-09-30 15:35:17 +08:00
uh/uhttpmock_1_0
ui
um/umpire
un
up uppaal: init at 5.0.0 () 2024-10-01 20:55:20 +02:00
ur
us
ut
uu/uuu
uv/uv
uw uwsm: 0.19.1 -> 0.20.0 2024-10-01 16:20:59 +00:00
ux
va
vc
vd/vdhcoapp
ve verapdf: init at 1.26.2 () 2024-09-30 19:25:53 +02:00
vf/vfkit
vg
vi viddy: migrate to pkgs/by-name 2024-10-01 23:51:08 +05:30
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa waveterm: 0.8.7 -> 0.8.8 2024-10-03 14:46:05 +08:00
wb
wc/wcurl
we
wf/wf-touch
wg wgpu: init at 22.1.0 2024-10-02 16:41:28 +08:00
wh
wi
wl wlx-overlay-s: 0.5.0 -> 0.6 2024-10-01 19:22:27 +00:00
wo
wp
wr/wrangler
ws
wt
wu/wush
wv
wx/wxc
wy/wyoming-satellite treewide: replace passthru.optional-dependencies with optional-dependencies 2024-09-29 20:37:23 -07:00
x1/x16
x5/x509-limbo
xa
xc
xd
xe
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr
xs
xt/xtf
xu/xunit-viewer
xv/xviewer
xw
ya
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo youki: fix cross compilation 2024-09-29 09:37:27 -04:00
yp/ypbind-mt
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.154.4 -> 0.155.2 2024-10-03 08:12:18 +02:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo zoekt: 3.7.2-2-unstable-2024-09-19 -> 3.7.2-2-unstable-2024-10-01 () 2024-10-02 10:47:06 +00:00
zp python312Packages.zpp, zpp: init at 1.1.0 2024-09-30 13:29:54 +02:00
zs
zu
zw/zwave-js-server
zx
zy/zydis
zz/zziplib
README.md doc/by-name: explain better callPackage and xWithY=x.override transition 2024-09-30 11:56:51 +03: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 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;
}