nixpkgs/pkgs/by-name
2024-09-19 20:32:40 -03: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 aligator: 0.7.0 -> 0.8.0 2024-09-19 01:15:50 +02:00
am
an treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
ao/aocl-utils
ap
aq/aquamarine
ar treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02: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 basedpyright: 1.17.4 -> 1.17.5 2024-09-18 13:31:38 +00:00
bc
bd
be
bi
bk/bk
bl
bm
bn/bngblaster
bo boxbuddy: 2.2.11 -> 2.2.12 2024-09-18 10:56:56 +00:00
bp
bq/bqn
br treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
bs
bt
bu
by
c-
c2 c2patool: 0.9.8 -> 0.9.9 2024-09-18 01:30:24 +00:00
ca
cb
cc
cd
ce
cf/cf-tool
cg
ch
ci treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
cj/cjs
cl treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
cm
cn
co maintainers: rename nyanbinary to nyabinary (#343091) 2024-09-20 02:26:07 +03:00
cp
cq/cq
cr aligator: init at 0.8.0 (#342751) 2024-09-19 22:42:41 +02:00
cs
ct/ctx
cu cups-brother-dcpt725dw: init at 3.5.0-1 (#330680) 2024-09-18 01:29:29 +02:00
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 dissent: fix /usr/bin path (#342742) 2024-09-18 19:16:05 +08:00
dj/djent
dm
dn
do docfd: 8.0.2 -> 8.0.3 2024-09-19 08:16:31 +00:00
dp
dr
ds
dt
du
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
em
en enter-tex: 3.46.0 → 3.47.0, renamed from gnome-latex 2024-09-19 00:14:59 +08: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 eza: 0.19.3 -> 0.19.4 2024-09-18 16:07:37 +02:00
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
fm
fn/fnott
fo
fr
fs
ft
fu
fv
fw/fwupd
fx/fx
fy
fz
g3/g3kb-switch
ga
gb
gc
gd
ge
gf
gg/gg
gh
gi
gk/gk-cli
gl
gm
gn treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
go maintainers: rename nyanbinary to nyabinary 2024-09-19 15:04:36 -04:00
gp
gr gruvbox-gtk-theme: 0-unstable-2024-07-22 -> 0-unstable-2024-09-12 (#342283) 2024-09-18 18:02:31 +00:00
gt
gu
gv/gvisor
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
hb/hb-honeypot
hc/hclfmt
hd
he maintainers: rename nyanbinary to nyabinary 2024-09-19 15:04:36 -04:00
hi
hj/hjson-go
hn/hn-text
ho hoppscotch: 24.3.3-1 -> 24.8.1-0 (#340777) 2024-09-19 22:39:58 +02:00
hp hpp-fcl: format 2024-09-18 10:20:00 +02:00
ht htgettoken: 2.0 -> 2.0-2 2024-09-19 18:34:52 -04:00
hu
hv/hvm
hw/hwinfo
hx/hxtools
hy
i2/i2p
i3
ia
ic
id
if
ig
ii
ij
im
in inhibridge: init at 0.3.0 (#268276) 2024-09-19 23:09:41 +02:00
io
ip
ir
is
it
iu/iucode-tool
iv
iw/iw
iz/izrss
j/j
ja
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn
jo
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 kitex: 0.11.0 -> 0.11.3 (#341938) 2024-09-18 02:16:46 +02:00
kl
km
kn
ko
kp/kplex
kr treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
ks
kt
ku
kv/kvmarwaita
kw/kwok
kx
ky
la lazygit: 0.44.0 -> 0.44.1 2024-09-18 13:09:24 +00:00
lb
lc
ld
le treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
lg/lgogdownloader
li treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02: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
lz
m1/m1ddc
m2
ma marwaita-orange: 20.3.1 -> 21 (#342974) 2024-09-19 20:32:40 -03:00
mb
mc
md mdbook-alerts: 0.6.4 -> 0.6.5 2024-09-18 13:26:13 +00:00
me metacubexd: 1.147.0 -> 1.149.0 (#342297) 2024-09-19 21:55:22 +02:00
mf
mg
mi
mk
ml/mlx42
mo modelscan: 0.8.0 -> 0.8.1 2024-09-18 00:13:58 +00:00
mp
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
n9/n98-magerun2
na
nb
nc
nd/ndstrim
ne treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
nf
ng
nh
ni nix-ld: fix hash after #342540 2024-09-18 18:26:50 +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
ns
nt
nu
nv
nw
nx/nxengine-evo
nz
oa
ob
oc
od
oe/oelint-adv
of
og/oguri
oh
oi
ok
ol ollama: add cuda libs to wrapper's LD_LIBRARY_PATH 2024-09-18 23:12:04 -04:00
om
on onedrivegui: 1.1.0rc3 -> 1.1.0 (#342544) 2024-09-18 01:33:03 +02:00
oo
op treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
oq/oqs-provider
or
os
ot
ou
ov overlayed: init at 0.5.0 (#340991) 2024-09-19 23:28:19 +02:00
ow
pa
pc
pd
pe treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
pf
pg
ph photini: 2024.5.0 -> 2024.9.1 2024-09-18 20:00:09 +00:00
pi aligator: init at 0.8.0 (#342751) 2024-09-19 22:42:41 +02:00
pk
pl
pm
pn
po pokemmo-installer: init at 1.4.8 (#341389) 2024-09-19 14:21:32 -04:00
pp/ppsspp
pq
pr aligator: init at 0.8.0 (#342751) 2024-09-19 22:42:41 +02:00
ps
pt
pu
pv
pw
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 treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
rc
rd/rdwatool
re remnote: 1.16.111 -> 1.16.116 2024-09-18 20:00:04 +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
rp
rq
rr/rrdtool
rs treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854) 2024-09-19 22:32:31 +02:00
rt
ru
rw/rwpspread
rx/rxvt
ry
s0/s0ix-selftest-tool
s3
sa sanjuuni: add update script 2024-09-17 20:08:59 -07:00
sb treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
sc scalingo: 1.33.0 -> 1.34.0 2024-09-17 22:56:35 +00:00
sd
se serie: 0.3.0 -> 0.4.0 2024-09-18 10:30:41 +00:00
sf
sg/sgfutils
sh
si
sk
sl sleek-grub-theme: unstable-2022-06-04 -> unstable-2024-08-11 (#342932) 2024-09-19 12:54:41 -04:00
sm
sn
so Migrate packages to pkgs/by-name, format with nixfmt-rfc-style (#342625) 2024-09-18 06:32:28 +02:00
sp spl: init at 0.3.2 (#340203) 2024-09-19 17:25:07 +08:00
sq
sr
ss
st stu: 0.5.2 -> 0.6.2 (#342566) 2024-09-18 18:13:20 +00:00
su supermariowar: 2023-unstable-2024-07-16 -> 2023-unstable-2024-09-17 (#342871) 2024-09-19 22:59:23 +00:00
sv
sw switchres: init at 2.2.1 2024-09-19 23:14:14 +08:00
sx
sy treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
t-/t-rex
ta taler-wallet-core: 0.13.1 -> 0.13.3 (#342600) 2024-09-18 15:14:35 +00:00
tb/tbump
tc
td
te treewide: remove unused inputs (#342672) 2024-09-19 20:36:18 +02:00
tg
th
ti tigerbeetle: 0.15.3 -> 0.15.5 (#332867) 2024-09-18 07:37:21 -07:00
tk
tl tlclient: init at 4.17.0 (#342516) 2024-09-19 00:42:15 +02:00
tm
to tor-browser: 13.5.3 -> 13.5.4 2024-09-18 17:53:25 +02:00
tp
tr troubadix: 24.8.2 -> 24.9.2 2024-09-18 11:48:41 +00:00
ts tsid: outputs out first 2024-09-18 23:29:31 +02: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
ur
us
ut
uu/uuu
uv/uv python312Packages.uv: 0.4.10 -> 0.4.11 2024-09-18 10:42:19 +00:00
uw
ux
va
vc
vd/vdhcoapp
ve
vf/vfkit
vg
vi
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa
wb
wc/wcurl
we werf: 2.10.5 -> 2.10.6 2024-09-17 23:35:50 +00:00
wf/wf-touch
wg/wg-access-server
wh
wi
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 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
xs
xt/xtf
xu/xunit-viewer
xv/xviewer
xw treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
ya
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo
yp/ypbind-mt
ys/ysfx
yt treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
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
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;
}