nixpkgs/pkgs/by-name
2024-09-22 22:35:12 +08:00
..
_0
_1
_2/_2ship2harkinian
_4
_6/_64gram
_9
a4/a4
a5/a52dec
aa
ab abpoa: 1.5.2 -> 1.5.3 2024-09-19 01:19:01 +00:00
ac
ad
ae
af
ag
ai
al alpaca: 1.1.1 -> 2.0.3 (#343654) 2024-09-22 16:14:08 +08:00
am
an treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
ao/aocl-utils
ap
aq/aquamarine
ar arc-browser: 1.58.1-53264 -> 1.61.0-53949 2024-09-20 19:49:49 +03:00
as ast-grep: 0.27.0 -> 0.27.1 2024-09-19 04:35:15 +00:00
at
au
av
aw
ax
ay
az
b3/b3sum
ba backrest: init at 1.5.0 (#342141) 2024-09-20 22:06:40 +08:00
bc
bd
be
bi bitwarden-cli: 2024.8.2 -> 2024.9.0 2024-09-19 11:20:55 -07:00
bk/bk
bl
bm
bn/bngblaster
bo
bp
bq/bqn
br bruno: 1.28.0 -> 1.29.1 2024-09-20 07:46:58 +00:00
bs
bt
bu
by byedpi: 0.13.1 -> 0.14.1 2024-09-22 00:34:29 +03:00
c-
c2
ca capslock: 0.2.4 -> 0.2.5 2024-09-21 22:49:43 +00:00
cb python312Packages.blessings: drop (#336152) 2024-09-22 15:25:12 +01:00
cc
cd
ce
cf/cf-tool
cg
ch chirp: 0.4.0-unstable-2024-09-05 -> 0.4.0-unstable-2024-09-19 2024-09-20 10:20:09 +00:00
ci cirrus-cli: 0.126.0 -> 0.126.1 2024-09-21 01:20:40 +00:00
cj/cjs
cl clash-verge: remove (#342557) 2024-09-22 01:41:17 +02:00
cm
cn
co code-cursor: 0.40.0 -> 0.41.1 2024-09-20 14:42:28 -07:00
cp
cq/cq
cr aligator: init at 0.8.0 (#342751) 2024-09-19 22:42:41 +02:00
cs
ct/ctx
cu
cv/cvemap
cw/cwe-client-cli
cy
cz/czkawka
da
db
dc
dd
de devcontainer: 0.65.0 -> 0.71.0 (#342341) 2024-09-20 01:58:03 +04:00
dg
dh/dhcpig
di disko: depend on nixos-install directly (#342320) 2024-09-21 14:42:58 +02:00
dj/djent
dm
dn
do dotenvx: 1.14.0 -> 1.14.1 2024-09-22 03:25:28 +00:00
dp
dr
ds
dt
du dumbpipe: 0.16.0 -> 0.17.0 2024-09-21 22:36:48 +00:00
dv
dw
dx
dy dyalog: 19.0.49960 -> 19.0.50027 (#341056) 2024-09-19 20:33:11 +02:00
e1/e1s
ea
eb
ec
ed
ee/eepers
ef/efibootmgr
eg/eg25-manager
ei eiquadprog: build documentation 2024-09-18 23:27:16 +02:00
ej/ejsonkms
ek
el elvis: modernize 2024-09-19 22:00:06 -03:00
em
en envision-unwrapped: 0-unstable-2024-09-09 -> 0-unstable-2024-09-21 2024-09-21 19:59:12 +00:00
eo/eog
ep
er
es
et
eu
ev
ew
ex example-robot-data: build documentation 2024-09-18 23:26:26 +02:00
ey/eyewitness
ez/eza
f2/f2fs-tools
fa
fb/fbset
fc
fd/fdroidserver
fe
ff
fg/fgqcanvas
fi firefoxpwa: 2.12.3 -> 2.12.4 2024-09-19 05:20:16 +00:00
fj/fjo
fl flatpak: use $TZDIR for zoneinfo 2024-09-21 17:45:02 -04:00
fm
fn/fnott
fo
fr
fs
ft
fu
fv
fw/fwupd
fx/fx
fy
fz
g3/g3kb-switch
ga
gb
gc
gd
ge gen-license: 0.1.2 -> 0.1.4 (#321190) 2024-09-22 19:05:42 +08:00
gf
gg/gg
gh
gi githooks: 3.0.2 -> 3.0.3 2024-09-20 17:30:03 +00:00
gk/gk-cli
gl glance: 0.6.0 -> 0.6.1 2024-09-20 08:50:58 +00:00
gm
gn treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
go google-chrome: 128.0.6613.137 -> 129.0.6668.58 2024-09-22 00:36:27 +05:30
gp globalprotect-openconnect: add core logic and packages for 2.x releases 2024-09-21 10:36:31 -07:00
gr granian: init at 1.5.2 (#337746) 2024-09-21 08:44:06 +08:00
gt
gu
gv/gvisor
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha halo: 2.19.2 -> 2.19.3 2024-09-21 23:53:36 +00:00
hb/hb-honeypot
hc/hclfmt
hd
he heptabase: 1.37.0 -> 1.39.0 (#343148) 2024-09-22 19:11:42 +08:00
hi
hj/hjson-go
hn/hn-text
ho home-manager: 0-unstable-2024-09-09 -> 0-unstable-2024-09-21 2024-09-22 00:47:15 +00:00
hp
ht htgettoken: 2.0 -> 2.0-2 2024-09-19 18:34:52 -04:00
hu hugo: 0.134.2 -> 0.134.3 2024-09-20 17:18:57 +08:00
hv/hvm
hw/hwinfo
hx/hxtools
hy hyprwayland-scanner: 0.4.0 -> 0.4.2 2024-09-22 10:23:17 +00:00
i2/i2p
i3
ia
ic
id
if
ig
ii
ij
im
in lxc/incus LTS upgrades: 6.0.1 -> 6.0.2 (#343058) 2024-09-20 12:42:44 -04:00
io
ip
ir
is
it
iu/iucode-tool
iv
iw/iw
iz/izrss
j/j
ja jan: 0.5.3 -> 0.5.4 2024-09-22 09:05:18 +00:00
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jp/jp-zip-codes jp-zip-codes: 0-unstable-2024-08-01 -> 0-unstable-2024-09-01 2024-09-22 08:27:04 +00:00
jq/jq-zsh-plugin
jr
js
jt/jtdx
ju
jw/jwasm
k8/k8s-manifest-sigstore
ka kara: init at 0.7.1 (#340630) 2024-09-19 23:13:45 +02:00
kc
kd
ke
kg/kgeotag
ki
kl klong: init at 20221212 2024-09-20 22:28:43 +00:00
km
kn
ko
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kw/kwok
kx
ky
la labwc-menu-generator: 0.1.0-unstable-2024-07-09 -> 0.1.0-unstable-2024-09-19 2024-09-21 10:42:28 +00:00
lb
lc
ld
le
lg/lgogdownloader
li lianad: init at 6.0 (#323696) 2024-09-21 09:22:45 +08:00
lk/lk-jwt-service
ll
lm treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
ln/lngen
lo
lp
lr/lrcget
ls
lt/ltris
lu
lv/lv_font_conv
lw
lx lxcfs: 6.0.1 -> 6.0.2 2024-09-19 13:59:57 +00:00
lz
m1/m1ddc
m2
ma matrix-authentication-service: 0.10.0 -> 0.12.0 (#342301) 2024-09-20 08:14:23 -04:00
mb
mc
md
me merge-ut-dictionaries: 0-unstable-2024-08-28 -> 0-unstable-2024-09-09 2024-09-22 08:23:29 +00:00
mf
mg
mi
mk
ml/mlx42
mo mozcdic-ut-jawiki: 0-unstable-2024-08-23 -> 0-unstable-2024-09-21 (#343674) 2024-09-22 10:44:07 +00:00
mp mpris-notifier: 0.1.9 -> 0.1.10 2024-09-22 07:43:00 +00:00
mq
mr/mricron
ms msolve: 0.7.1 -> 0.7.2 2024-09-19 02:11:56 +00:00
mu treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
my
n2/n2
n8/n8n n8n: 1.57.0 -> 1.60.1 2024-09-22 00:24:17 +00:00
n9/n98-magerun2
na narsil: 1.3.0-85-g68f1491ca -> 1.3.0-187-g96d6b3bbd 2024-09-21 22:31:35 +00:00
nb
nc
nd/ndstrim
ne treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
nf
ng
nh
ni disko: depend on nixos-install directly (#342320) 2024-09-21 14:42:58 +02:00
nl
nm
nn
no nosql-workbench: 3.11.0 -> 3.13.0 (#341548) 2024-09-19 22:59:51 +02:00
np
nr nrfutil: 7.11.1 -> 7.13.0 2024-09-20 14:27:24 +02:00
ns
nt ntpd-rs: 1.2.3 -> 1.3.0 2024-09-19 16:00:13 -04:00
nu
nv
nw
nx/nxengine-evo
nz
oa
ob
oc
od
oe/oelint-adv
of
og/oguri
oh
oi oidc-agent: reformat code, fix wrong man page location (#339707) 2024-09-20 10:42:34 +02:00
ok
ol ollama: 0.3.10 -> 0.3.11 2024-09-19 09:27:19 -04:00
om
on onlyoffice-bin: 8.1.0 -> 8.1.1; rename to onlyoffice-desktopeditors 2024-09-20 08:50:57 +00:00
oo
op openfga: 1.6.0 -> 1.6.1 (#342758) 2024-09-21 14:43:17 +00:00
oq/oqs-provider
or
os osm2pgsql: 1.11.0 → 2.0.0 2024-09-19 19:44:17 +04:00
ot
ou
ov overskride: 0.5.7 -> 0.6.0 2024-09-21 01:39:58 +00:00
ow
pa parallel-hashmap: 1.3.12 -> 1.4.0 2024-09-21 01:40:09 +00:00
pc
pd
pe pegtl: 3.2.7 -> 3.2.8 (#343048) 2024-09-20 18:13:40 -04:00
pf
pg
ph photini: 2024.5.0 -> 2024.9.1 2024-09-18 20:00:09 +00:00
pi picom-pijulius: 8.2-unstable-2024-09-08 -> 8.2-unstable-2024-09-14 2024-09-20 09:16:53 +00:00
pk
pl
pm
pn
po polenum: init at 1.6.1-unstable-2024-07-30 (#342832) 2024-09-20 17:19:01 +02:00
pp/ppsspp
pq
pr prometheus-elasticsearch-exporter: 1.7.0 -> 1.8.0 2024-09-20 18:23:44 +00:00
ps
pt
pu
pv
pw pwru: 1.0.7 -> 1.0.8 2024-09-18 14:18:39 -04:00
px/pxder
py pylyzer: 0.0.61 -> 0.0.62 2024-09-19 13:11:56 +02:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
qg
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs
qt
qu
qw/qwerty-fr
r0/r0vm
r1/r10k
ra raffi: 0.4.0 -> 0.5.1 (#342392) 2024-09-21 19:46:58 -07:00
rc rcu: 2024.001p -> 2024.001q (#341869) 2024-09-20 13:43:31 +02:00
rd/rdwatool
re renovate: 38.73.5 -> 38.93.1 2024-09-22 12:20:00 +00:00
rf/rfdump
rh/rHttp
ri treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
rk
rl/rl_json
rm
rn
ro rosa: 1.2.43 -> 1.2.45 (#343010) 2024-09-22 19:03:42 +08:00
rp
rq
rr/rrdtool
rs treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
rt
ru ruff-lsp: 0.0.56 -> 0.0.57 (#343248) 2024-09-20 19:16:24 +02:00
rw/rwpspread
rx/rxvt
ry
s0/s0ix-selftest-tool
s3 s3scanner: 3.1.0 -> 3.1.1 2024-09-21 08:05:48 +00:00
sa sarasa-gothic: 1.0.20 -> 1.0.21 2024-09-22 02:39:47 +00:00
sb
sc
sd
se servo: init at 0-unstable-2024-09-09 2024-09-20 09:58:27 +02:00
sf
sg/sgfutils
sh showmethekey: 1.13.1 -> 1.14.0 2024-09-20 20:04:48 +00:00
si siyuan: 3.1.0 -> 3.1.6 (#343124) 2024-09-22 19:01:45 +08:00
sk skia: 124-unstable-2024-05-22 -> 129-unstable-2024-09-18 2024-09-21 18:07:05 +02:00
sl sloth-app: 3.2 -> 3.3 2024-09-21 17:09:28 +03:00
sm
sn sng: 1.1.0 -> 1.1.1 (#342809) 2024-09-22 19:00:45 +08:00
so
sp spl: init at 0.3.2 (#340203) 2024-09-19 17:25:07 +08:00
sq
sr
ss
st stalwart-mail: 0.9.4 -> 0.10.0 2024-09-22 12:17:53 +02:00
su sums: init at 0.11 (#340781) 2024-09-22 16:47:02 +08:00
sv
sw sway-audio-idle-inhibit: unstable-2023-08-09 -> 0.1.2 2024-09-21 16:39:22 +02:00
sx
sy treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
t-/t-rex
ta
tb/tbump
tc
td
te termsonic: 0-unstable-2024-02-02 -> 0-unstable-2024-09-15 (#342096) 2024-09-21 17:41:24 +02:00
tg
th
ti tigerbeetle: 0.15.5 -> 0.16.2 (#342844) 2024-09-21 12:42:51 -07:00
tk
tl tlclient: init at 4.17.0 (#342516) 2024-09-19 00:42:15 +02:00
tm
to
tp
tr trealla: 2.55.41 -> 2.56.15 2024-09-20 09:43:01 +00:00
ts tsukimi: init at 0.12.2 (#343517) 2024-09-22 09:35:26 +08:00
tt
tu turn-rs: init at 3.1.0 (#338928) 2024-09-19 22:53:28 +02:00
tw
tx
ty
u-/u-config
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
up upsun: 5.0.16 -> 5.0.21; add updateScript (#331473) 2024-09-22 17:04:40 +08:00
ur
us
ut
uu/uuu
uv/uv
uw
ux
va
vc
vd/vdhcoapp
ve verible: 0.0.3747 -> 0.0.3791 (#342826) 2024-09-22 17:03:18 +08:00
vf/vfkit
vg
vi vikunja: 0.24.1 -> 0.24.3 2024-09-20 16:34:51 +02:00
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa waybar: include the systemd user unit (#340874) 2024-09-22 00:29:40 +05:30
wb
wc/wcurl
we weaver: 0.9.2 -> 0.10.0 2024-09-21 03:07:22 +00:00
wf/wf-touch
wg/wg-access-server
wh
wi wireguard-ui: init at 0.6.2 (#340662) 2024-09-22 22:15:29 +08:00
wl
wo
wp
wr/wrangler
ws
wt
wu/wush
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa
xc
xd maintainers: rename nyanbinary to nyabinary 2024-09-19 15:04:36 -04:00
xe
xf/xfs-undelete
xh/xhosts
xi
xl xlights: 2024.15 -> 2024.16 2024-09-19 03:37:42 +00:00
xm
xn/xnlinkfinder
xo
xp
xr
xs
xt/xtf
xu/xunit-viewer
xv/xviewer
xw
ya yabai: 7.1.2 -> 7.1.3 2024-09-21 12:05:53 +08:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo
yp/ypbind-mt
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.152.4 -> 0.153.6 2024-09-19 13:00:56 -04:00
zf/zfind
zi treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
zl/zluda
zm/zmkBATx
zo
zp
zs
zu zutty: init at 0.16-unstable-2024-08-18 2024-09-20 19:24:35 +02:00
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 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, 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-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;
}