nixpkgs/pkgs/by-name
2024-10-08 21:52:08 +02:00
..
_0
_1
_2/_2ship2harkinian
_4
_6/_64gram
_9
a4/a4
a5/a52dec
aa
ab
ac
ad
ae
af
ag
ai
al alpaca: 2.0.5 -> 2.0.6 (#346796) 2024-10-06 12:10:43 +02:00
am treewide: move packages maintained by aaronjheng to by-name (#346765) 2024-10-07 07:38:59 +01:00
an
ao/aocl-utils
ap
aq/aquamarine
ar arduino-ide: 2.3.2 -> 2.3.3 (#344426) 2024-10-06 17:31:13 +09:00
as
at atlassian-plugin-sdk: init at 9.1.1 (#345085) 2024-10-05 19:45:05 +02:00
au
av
aw awscli2: 2.17.56 -> 2.17.64 (#346014) 2024-10-05 19:45:03 +00:00
ax
ay
az azure-cli: install completions for all shells 2024-10-05 15:44:36 -07:00
b3/b3sum
ba
bc
bd
be
bi bitrise: 2.21.0 -> 2.22.0 (#347028) 2024-10-07 09:35:59 -04:00
bk/bk
bl
bm
bn/bngblaster
bo bombsquad: update hashes (#346693) 2024-10-05 21:31:05 +02:00
bp
bq/bqn
br bruno: 1.30.1 -> 1.32.1 2024-10-07 22:08:41 +00:00
bs
bt
bu buf: 1.42.0 -> 1.44.0 2024-10-06 11:26:38 +00:00
by
c-
c2
c3/c3-lsp
ca canokey-usbip: init at unstable-2024-03-11 (#341670) 2024-10-05 14:52:45 +02:00
cb
cc
cd
ce treewide: use lowdown-unsandboxed where appropriate 2024-10-07 04:26:56 +01:00
cf
cg
ch
ci cinny-desktop: fix darwin build (#346640) 2024-10-06 12:12:06 +02:00
cj/cjs
cl cloudflare-dynamic-dns: 4.3.3 -> 4.3.5 (#346607) 2024-10-05 09:23:19 -04:00
cm
cn
co codeium: 1.16.18 -> 1.20.4 (#345759) 2024-10-07 10:21:05 -04:00
cp
cq/cq
cr
cs
ct/ctx
cu
cv/cvemap
cw/cwe-client-cli
cy
cz/czkawka
da databricks-cli: 0.228.1 -> 0.229.0 (#346599) 2024-10-07 13:56:35 +02:00
db
dc
dd
de deck: 1.40.2 -> 1.40.3 (#345095) 2024-10-05 11:48:37 +02:00
dg
dh/dhcpig
di direnv: 2.34.0 -> 2.35.0 (#347199) 2024-10-08 07:24:46 +00:00
dj/djent
dm
dn
do doublecmd: 1.1.18 -> 1.1.19 2024-10-07 01:21:41 +00:00
dp
dr
ds treewide: move packages maintained by aaronjheng to by-name (#346765) 2024-10-07 07:38:59 +01:00
dt
du
dv
dw
dx
dy
e1/e1s e1s: fix changelog url 2024-10-06 04:17:38 +02:00
ea
eb
ec ecapture: 0.8.6 -> 0.8.7 2024-10-07 12:40:10 +00:00
ed
ee/eepers
ef
eg/eg25-manager
ei
ej
ek
el
em
en entangle: fix build (#344986) 2024-10-06 02:55:58 +02:00
eo/eog
ep
er
es
et
eu
ev
ew
ex exo: 0-unstable-2024-10-03 -> 0-unstable-2024-10-06 2024-10-06 10:19:18 +02:00
ey/eyewitness
ez/eza
f2/f2fs-tools
fa fabric-ai: 1.4.26 -> 1.4.46 (#346638) 2024-10-06 15:33:10 +00:00
fb/fbset
fc
fd/fdroidserver
fe feishin: 0.9.0 -> 0.10.1 (#344865) 2024-10-06 10:27:49 +02:00
ff
fg/fgqcanvas
fi finamp: 0.9.9-beta -> 0.9.11-beta (#342972) 2024-10-06 15:13:41 +02:00
fj/fjo
fl
fm
fn/fnott
fo forbidden: clean-up inputs 2024-10-08 10:33:56 +02:00
fr
fs
ft
fu
fv
fw/fwupd
fx/fx
fy
fz
g-/g-wrap
g3/g3kb-switch
ga
gb
gc
gd
ge
gf
gg
gh
gi github-runner: 2.319.1 -> 2.320.0 (#346347) 2024-10-06 15:53:17 +02:00
gk/gk-cli
gl
gm
gn gnucash: 5.8 -> 5.9 (#345575) 2024-10-06 18:30:00 +02:00
go go-ethereum: 1.14.9 -> 1.14.11 (#346969) 2024-10-07 18:01:22 +08:00
gp gpu-viewer: 3.04 -> 3.06 2024-10-05 10:43:31 +02:00
gr graphite-cli: 1.4.5 -> 1.4.6 2024-10-06 04:35:55 +00:00
gt
gu
gv/gvisor
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha
hb/hb-honeypot
hc/hclfmt
hd
he heptabase: 1.40.0 -> 1.41.1 2024-10-07 14:08:08 +00:00
hi
hj/hjson-go
hn/hn-text
ho
hp
hr/hred
ht
hu
hv/hvm
hw/hwinfo
hx/hxtools
hy hydra: 0-unstable-2024-09-20 -> 0-unstable-2024-09-24 (#344312) 2024-10-07 11:57:46 +02:00
i2/i2p
i3 i3-back: init at 0.3.2 (#346484) 2024-10-05 18:22:24 +02:00
ia
ic
id
if
ig
ii
ij
im immich: 1.116.2 -> 1.117.0 (#346127) 2024-10-04 23:06:05 -07:00
in intelli-shell: init at 0.2.7 (#289430) 2024-10-06 03:38:12 +02:00
io
ip
ir
is
it
iu/iucode-tool
iv
iw
iz/izrss
j/j
ja
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jp/jp-zip-codes
jq/jq-zsh-plugin
jr
js
jt/jtdx
ju just: 1.35.0 -> 1.36.0 2024-10-07 23:43:30 +00:00
jw/jwasm
k8/k8s-manifest-sigstore
ka katawa-shoujo-re-engineered: 1.4.7 -> 1.4.8 2024-10-07 14:24:45 +03:00
kb/kbld
kc
kd
ke keep-sorted: 0.4.0 -> 0.5.0 (#345426) 2024-10-07 13:14:48 +02:00
kg/kgeotag
ki
kl
km
kn
ko
kp/kplex
kr
ks
kt ktor-cli: init at 0.2.1 2024-10-05 17:17:46 +03:00
ku kubectl-gadget: 0.32.0 -> 0.33.0 2024-10-07 14:22:47 +00:00
kv/kvmarwaita
kw/kwok
kx
ky
la lazyjj: 0.4.0 -> 0.4.2 2024-10-08 07:19:39 +00:00
lb
lc
ld
le
lg/lgogdownloader
li ocamlPackages.nbd: init at 1.20.2 2024-10-08 05:07:21 +02:00
lk/lk-jwt-service
ll llama-cpp: 3829 -> 3887 2024-10-05 23:09:18 +00:00
lm
ln/lngen
lo Drop old Flutter versions (#346732) 2024-10-07 10:40:20 -04:00
lp
lr/lrcget
ls
lt/ltris
lu
lv/lv_font_conv
lw
lx lxgw-neoxihei: 1.206 -> 1.207 2024-10-05 05:00:04 +00:00
lz
m1/m1ddc
m2
ma maa-assistant-arknights: 5.6.2 -> 5.7.0 (#346665) 2024-10-07 08:00:05 +00:00
mb
mc
md mdbook-alerts: 0.6.6 -> 0.6.7 2024-10-06 16:39:34 +00:00
me
mf
mg
mi mission-center: 0.6.0 -> 0.6.1 2024-10-06 18:07:25 +02:00
mk
ml/mlx42
mo mongosh: 2.3.0 -> 2.3.1 2024-10-06 04:32:21 +00:00
mp
mq
mr/mricron
ms
mu
my myks: add zebradil as maintainer 2024-10-06 20:23:43 +02:00
n2/n2
n8/n8n
n9/n98-magerun2
na nak: init at 0.7.6 2024-10-05 18:23:53 +03:00
nb
nc
nd
ne newsraft: 0.25 -> 0.27 2024-10-06 11:31:47 +00:00
nf
ng
nh
ni nixos-anywhere: update owner to nix-community 2024-10-08 12:37:18 +11:00
nl
nm
nn
no
np
nr
ns
nt
nu
nv
nw nwg-hello: 0.2.2 -> 0.2.4 (#344620) 2024-10-07 11:09:52 +09:00
nx/nxengine-evo
nz
oa oath-toolkit: 2.6.11 -> 2.6.12 2024-10-05 07:33:02 +02:00
ob {staruml, figma-linux, infracost, obsidian, scaleway-cli, netbeans}: migrate to by-name (#332171) 2024-10-05 21:36:16 +02:00
oc
od
oe/oelint-adv
of
og/oguri
oh
oi
ok
ol
om
on
oo
op openscad-unstable: 2024-09-22 -> 2024-10-06 (#347129) 2024-10-08 19:21:46 +00:00
oq/oqs-provider
or
os
ot
ou
ov
ow
p3/p3x-onenote p3x-onenote: 2023.4.117 -> 2024.10.110 2024-10-07 15:22:00 -05:00
pa
pb/pb treewide: move packages maintained by aaronjheng to by-name 2024-10-07 01:15:33 +00:00
pc
pd pdns-recursor: 5.1.1 -> 5.1.2 (#347043) 2024-10-07 15:21:53 +02:00
pe
pf
pg
ph
pi picom-pijulius: 8.2-unstable-2024-09-27 -> 8.2-unstable-2024-10-05 2024-10-07 23:42:55 +00:00
pk
pl plasticity: 24.2.3 -> 24.2.4 (#345696) 2024-10-07 10:21:42 -04:00
pm
pn
po powerpipe: 0.4.3 -> 0.4.4 2024-10-06 08:59:28 +00:00
pp/ppsspp
pq
pr treewide: move packages maintained by aaronjheng to by-name (#346765) 2024-10-07 07:38:59 +01:00
ps
pt
pu
pv
pw
px/pxder
py pylyzer: 0.0.64 -> 0.0.65 (#346842) 2024-10-06 12:33:05 +02:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd
qe/qemu_xen qemu_xen: move to by-name 2024-10-06 20:24:29 +00:00
qg
qm
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr qrq: fix sourceRoot 2024-10-06 15:27:18 +01:00
qs
qt
qu quill-log: 7.2.2 -> 7.3.0 2024-10-05 21:29:18 +00:00
qw/qwerty-fr
r0/r0vm
r1/r10k
ra
rc
rd/rdwatool
re regal: 0.27.0 -> 0.28.0 (#347155) 2024-10-08 09:46:28 +00:00
rf/rfdump
rh rhsrvany: init at 1.1 2024-10-08 07:48:38 +02:00
ri ride: refactor and improve electron usage 2024-10-06 12:47:05 +02:00
rk
rl/rl_json
rm
rn
ro rosa: 1.2.45 -> 1.2.46 2024-10-07 06:58:24 +00:00
rp
rq
rr/rrdtool
rs
rt
ru rustic: 0.8.1 -> 0.9.1 (#346508) 2024-10-08 12:07:39 +02:00
rw/rwpspread
rx/rxvt
ry ryujinx: archive.org tarball mirror 2024-10-05 19:08:00 +02:00
s0/s0ix-selftest-tool
s3
sa
sb
sc {staruml, figma-linux, infracost, obsidian, scaleway-cli, netbeans}: migrate to by-name (#332171) 2024-10-05 21:36:16 +02:00
sd
se sesh: 2.4.0 -> 2.5.0 (#347154) 2024-10-08 15:41:53 -04:00
sf
sg/sgfutils
sh shopify-cli: 3.63.2 -> 3.67.1 (#343980) 2024-10-06 18:08:58 +02:00
si sioyek: 2.0.0 -> 2.0.0-unstable-2024-09-29 (#283813) 2024-10-07 02:06:48 +02:00
sk treewide: move packages maintained by aaronjheng to by-name (#346765) 2024-10-07 07:38:59 +01:00
sl slskd: disable flaky test 2024-10-06 21:32:19 -04:00
sm smbclient-ng: 2.1.5 -> 2.1.6 2024-10-05 13:42:42 +00:00
sn snapcraft: disable failing test related to craft-parts 2.1.2 2024-10-07 17:49:43 +01:00
so
sp splitcode: init at 0.30.0 (#345111) 2024-10-05 14:47:35 +02:00
sq
sr
ss
st stalwart-mail,stalwart-mail.webadmin: 2024-10-06 (#346737) 2024-10-07 20:49:19 -04:00
su
sv
sw
sx
sy
t-/t-rex
ta
tb/tbump
tc
td
te textlint: 14.2.0 -> 14.2.1 2024-10-05 14:47:32 +00:00
tg
th
ti tinymist: 0.11.22 -> 0.11.28 (#346629) 2024-10-06 18:28:27 +02:00
tk
tl
tm
to tomlq: init at 0.1.6 (#340634) 2024-10-07 00:10:27 +02:00
tp
tr troubadix: 24.9.4 -> 24.10.0 2024-10-06 15:25:25 +00:00
ts tslib: init at 1.23 (#345302) 2024-10-07 12:56:50 +02:00
tt
tu
tw
tx
ty typos: 1.25.0 -> 1.26.0 (#347171) 2024-10-08 08:55:29 +02:00
u-/u-config
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un nixos/unl0kr: add settings to the unl0kr module (#339787) 2024-10-06 17:44:55 -04:00
up upsun: 5.0.21 -> 5.0.22 (#346825) 2024-10-06 12:09:39 +02:00
ur
us
ut
uu/uuu
uv/uv
uw
ux
va vault: 1.17.5 -> 1.17.6, vault-bin: 1.17.5 -> 1.17.6 (#344555) 2024-10-05 11:51:22 +02:00
vc
vd/vdhcoapp
ve
vf/vfkit
vg
vi
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vu
vv/vvvvvv
vw/vwsfriend
vy/vyxal vyxal: init at 3.4.9 (#257860) 2024-10-06 15:33:57 +02:00
vz/vzic
wa wayprompt: fix the wayprompt-ssh-askpass script (#342767) 2024-10-07 11:48:42 +02:00
wb
wc
we werf: 2.10.7 -> 2.10.9 2024-10-06 09:43:29 +00:00
wf/wf-touch
wg
wh
wi wike: fix cross compilation (#338807) 2024-10-06 17:28:47 +02:00
wl
wo
wp
wr/wrangler
ws
wt
wu/wush
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa
xc
xd
xe treewide: purge remaining calls to xen-slim 2024-10-06 20:24:30 +00:00
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr
xs
xt/xtf
xu/xunit-viewer
xv/xviewer
xw
ya yamlscript: 0.1.76 -> 0.1.79 (#346633) 2024-10-07 07:38:32 +02:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo
yp/ypbind-mt
ys/ysfx
yt yt-dlp: 2024.9.27 -> 2024.10.7 2024-10-08 11:10:09 +03:00
yu
za
zb/zbus-xmlgen
zc
ze
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo zoom-us: 6.2.0.1855 -> 6.2.3.2056 (#345819) 2024-10-05 18:21:22 +02:00
zp
zs
zu
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 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;
}