nixpkgs/pkgs/by-name
2024-10-19 15:39:59 +08:00
..
_0
_1
_2/_2ship2harkinian
_4
_6/_64gram
_9
a4/a4
a5/a52dec
aa aaphoto: fix src 2024-10-17 19:50:21 +02:00
ab abcmidi: 2024.08.13 -> 2024.10.10 2024-10-16 21:08:32 +00:00
ac
ad
ae
af
ag
ai
al
am amdvlk: workaround glslang 14 issue 2024-10-17 11:52:26 +02:00
an
ao/aocl-utils
ap apt: 2.9.7 -> 2.9.8 2024-10-17 13:04:40 +00:00
aq/aquamarine
ar archivemount: 0.9.1 -> 1 (#344990) 2024-10-19 05:21:52 +02:00
as
at
au auto-cpufreq: copy icon to correct location 2024-10-18 14:49:02 +02:00
av
aw
ax
ay ayatana-ido: 0.10.3 -> 0.10.4 (#349133) 2024-10-16 22:55:05 +01:00
az
b3/b3sum
ba bash-language-server: only deploy prod dependencies (#349662) 2024-10-19 08:44:01 +02:00
bc
bd
be
bi binsider: 0.1.0 -> 0.2.0 (#348196) 2024-10-19 05:49:03 +03:00
bk/bk
bl bluetui: init at 0.5.1 2024-10-16 22:34:37 +02:00
bm
bn/bngblaster
bo
bp
bq/bqn
br
bs
bt
bu
by
c-
c2
c3/c3-lsp
ca catppuccin-cursors: 0.3.1 -> 0.4.0 (#348675) 2024-10-19 04:01:31 +02:00
cb
cc ccid: 1.5.5 -> 1.6.1 2024-10-16 20:40:36 +02:00
cd
ce
cf
cg
ch
ci cimg: 3.4.2 -> 3.4.3 (#348693) 2024-10-17 00:43:08 +00:00
cj/cjs
cl
cm
cn
co cosmic-wallpapers: Adjust license documentation 2024-10-18 15:47:50 -07:00
cp
cq/cq
cr
cs csvlens: 0.10.0 -> 0.10.1 2024-10-18 00:35:02 +08:00
ct/ctx
cu
cv/cvemap
cw/cwe-client-cli
cy
cz/czkawka
da
db
dc
dd
de dependency-track: 4.11.7 -> 4.12.0 (#349255) 2024-10-19 01:54:15 +02:00
dg
dh/dhcpig
di
dj/djent
dm
dn dnslookup: init at 1.11.1 2024-10-18 14:15:22 -07:00
do
dp
dr
ds
dt
du
dv
dw
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ef
eg/eg25-manager
ei
ej
ek
el
em
en
eo/eog
ep
er
es espflash: 3.1.1 -> 3.2.0 2024-10-18 12:04:56 +02:00
et
eu
ev
ew
ex
ey/eyewitness
ez/eza eza: 0.20.2 -> 0.20.4 2024-10-18 16:08:09 +02:00
f2/f2fs-tools
fa
fb/fbset
fc
fd/fdroidserver
fe
ff
fg/fgqcanvas
fi
fj/fjo
fl flexget: 3.11.46 -> 3.11.48 2024-10-17 16:18:07 +02:00
fm
fn/fnott
fo forgejo: 8.0.3 -> 9.0.0 2024-10-17 13:31:38 +02:00
fr frog-protocols: init at 0.01-unstable-2024-09-25 (#344515) 2024-10-18 21:21:25 +00:00
fs
ft
fu
fv
fw/fwupd
fx/fx
fy
fz
g-/g-wrap
g3/g3kb-switch
ga
gb
gc
gd
ge
gf
gg/gg
gh
gi git-spice: 0.6.0 -> 0.7.0 (#347635) 2024-10-19 01:00:47 +02:00
gk/gk-cli
gl
gm
gn
go u-root{,-cmds}: init; gobusybox: init; mkuimage: init (#344853) 2024-10-18 11:15:43 +02:00
gp gpclient: add gio-networking for embedded browser (#347675) 2024-10-19 05:58:06 +03:00
gr granted: fix wrapping of assume script (#347816) 2024-10-19 05:55:28 +03:00
gs/gscan2pdf
gt
gu
gv/gvisor
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha halloy: 2024.11 -> 2024.12 (#348090) 2024-10-19 05:04:48 +02:00
hb/hb-honeypot
hc/hclfmt
hd
he
hi
hj/hjson-go
hn/hn-text
ho
hp
hr/hred
ht htcondor: 23.9.6 -> 23.10.1 (#346305) 2024-10-17 17:36:59 +08:00
hu
hv/hvm
hw/hwinfo
hx/hxtools
hy
i2/i2p
i3
ia
ic
id ida-free: fix hash mismatchin of icon 2024-10-18 02:34:38 +00:00
if
ig
ii
ij
im Imhex darwin (#330303) 2024-10-18 16:45:36 +02:00
in libcpr: 1.10.5 -> 1.11.0 2024-10-18 08:41:56 +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 Fixing JOE, the fully functional text editor, on macOS (#346118) 2024-10-19 06:17:12 +03:00
jp/jp-zip-codes
jq/jq-zsh-plugin
jr
js
jt/jtdx
ju junest: 7.4.9 -> 7.4.10 2024-10-17 21:30:08 +00:00
jw/jwasm
k8/k8s-manifest-sigstore
ka
kb/kbld
kc
kd
ke keymapp: 1.3.2 -> 1.3.3 2024-10-16 22:00:26 +02:00
kg/kgeotag treewide: remove qt5.mkDerivation usage (trivial cases) (#348577) 2024-10-18 11:40:19 +02:00
ki
kl
km
kn
ko
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kw/kwok
kx
ky
la
lb
lc
ld
le
lg/lgogdownloader
li live555: 2024.08.01 -> 2024.09.20 (#345574) 2024-10-19 07:43:16 +02:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo LogSeq: Pin electron 27 until upstream is updated (#347293) 2024-10-19 06:00:02 +03:00
lp
lr/lrcget
ls
lt/ltris
lu
lv/lv_font_conv
lw
lx
lz
m1/m1ddc
m2
ma mapserver: modernize 2024-10-18 20:19:04 +04:00
mb
mc
md md-tui: 0.8.6 -> 0.8.7 2024-10-18 17:23:00 +02:00
me megatools: 1.11.0 -> 1.11.1 2024-10-17 08:10:32 +00:00
mf
mg
mi mimir: add adamcstephens to maintainers 2024-10-18 10:11:30 -04:00
mj/mjmap
mk mkuimage: init at 0-unstable-2024-02-28 2024-10-18 09:07:02 +02:00
ml/mlx42
mo moonlight-qt: 6.0.1 -> 6.1.0 2024-10-17 20:11:50 +08:00
mp
mq
mr/mricron
ms
mt
mu mujoco: 3.2.3 -> 3.2.4 2024-10-17 08:51:02 +02:00
my
n2/n2
n8/n8n
n9/n98-magerun2
na nanopb: 0.4.8 -> 0.4.9 (#348727) 2024-10-16 13:34:17 -07:00
nb
nc ncspot: add getchoo as maintainer 2024-10-16 20:00:58 -04:00
nd
ne netbeans: 22 -> 23 (#347614) 2024-10-19 05:58:38 +03:00
nf
ng
nh
ni nixos-firewall-tool: add nftables support 2024-10-18 20:16:27 +02:00
nl
nm
nn
no
np
nr
ns
nt ntpstat: init at 0.6 2024-10-16 21:32:45 -07:00
nu
nv
nw
nx/nxengine-evo
ny/nym
nz
oa
ob obsidian: 1.6.7 -> 1.7.4 2024-10-16 21:58:05 +02:00
oc
od odin: 0-unstable-2024-08-05 -> 0-unstable-2024-10-12 (#348138) 2024-10-19 06:05:10 +02:00
oe/oelint-adv
of
og/oguri
oh
oi
ok
ol odin: 0-unstable-2024-08-05 -> 0-unstable-2024-10-12 (#348138) 2024-10-19 06:05:10 +02:00
om
on
oo
op open-webui: import missing googleapis-common-protos dep (#342865) 2024-10-17 09:23:22 +02:00
oq/oqs-provider
or
os treewide: remove qt5.mkDerivation usage (trivial cases) (#348577) 2024-10-18 11:40:19 +02:00
ot
ou
ov
ow
p3/p3x-onenote
pa
pb/pb
pc
pd pdpmake: 1.4.3 -> 2.0.1 (#349176) 2024-10-17 13:57:47 +00:00
pe
pf
pg pgroll: 0.6.0 -> 0.7.0 2024-10-17 04:20:23 +00:00
ph
pi
pk pkarr: init at v2.0.0 2024-10-17 11:18:25 -07:00
pl
pm
pn
po
pp/ppsspp
pq
pr prisma: 5.21.0 -> 5.21.1 2024-10-18 11:54:06 +02:00
ps
pt
pu
pv pv: 1.8.12 -> 1.8.14 2024-10-16 22:37:17 +02:00
pw
px/pxder
py pyfa: init at 2.60.1 (#314934) 2024-10-19 03:09:17 +02:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm
qd
qe/qemu_xen
qg
qm
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs
qt
qu
qw/qwerty-fr
r0/r0vm
r1/r10k
ra raspberrypi-eeprom: Add flashrom to path (#343718) 2024-10-19 06:06:18 +03:00
rc
rd/rdwatool
re release-plz: 0.3.79 -> 0.3.98 (#349062) 2024-10-19 00:32:25 +03:00
rf/rfdump
rh
ri
rk
rl/rl_json
rm
rn
ro rospo: 0.12.1 -> 0.13.0 2024-10-18 05:19:56 +00:00
rp
rq
rr/rrdtool
rs
rt
ru russ: 0.4.0 -> 0.5.0, move to by-name 2024-10-18 17:02:06 +05:30
rw/rwpspread
rx/rxvt
ry
s0/s0ix-selftest-tool
s3
sa
sb
sc screego: 1.11.0 -> 1.11.1 2024-10-16 23:17:28 +02:00
sd
se
sf
sg/sgfutils
sh
si simpleini: init at 4.22 (#346958) 2024-10-19 15:39:59 +08:00
sk
sl
sm
sn snakemake: 8.20.1 -> 8.23.0 (#348616) 2024-10-17 01:18:36 +02:00
so solo5: 0.8.1 -> 0.9.0 2024-10-18 11:15:10 +00:00
sp
sq Use recommended version check 2024-10-17 23:02:52 +08:00
sr
ss
st stern: 1.30.0 -> 1.31.0 (#348546) 2024-10-19 05:44:03 +03:00
su
sv svdtools: 0.3.18 -> 0.3.19 (#349619) 2024-10-19 05:39:02 +03:00
sw swayimg: 3.2 -> 3.4 (#348242) 2024-10-19 05:00:58 +02:00
sx
sy syncstorage-rs: 0.17.0 -> 0.17.9 (#349507) 2024-10-18 16:05:49 -04:00
t-/t-rex
ta taskflow: 3.7.0 -> 3.8.0 (#348681) 2024-10-17 20:50:02 -07:00
tb/tbump
tc
td tdom: 0.9.4 -> 0.9.5 2024-10-18 06:14:11 +00:00
te technitium-dns-server: 13.0.1 --> 13.0.2 (#347793) 2024-10-19 04:50:03 +02:00
tg
th thrift-ls: 0.2.1 -> 0.2.2 2024-10-18 19:02:36 +00:00
ti
tk
tl
tm
to
tp
tr python3Packages.triton*: 2.1.0 -> 3.0.0 (#328247) 2024-10-16 22:43:07 +00:00
ts
tt
tu
tw
tx
ty typst: 0.11.1 -> 0.12.0 2024-10-19 00:48:51 +02:00
u- u-root: add minimal kernel in passthru for local testing 2024-10-18 09:07:02 +02:00
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un
up
ur
us
ut
uu/uuu
uv/uv
uw
ux
va
vc
vd/vdhcoapp
ve
vf/vfkit
vg
vi
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vt/vt323
vu
vv/vvvvvv
vw/vwsfriend
vy/vyxal
vz/vzic
wa warp-terminal: 0.2024.10.08.08.02.stable_02 -> 0.2024.10.15.08.02.stable_02 2024-10-17 22:58:06 +00:00
wb
wc
we
wf/wf-touch
wg
wh
wi
wl
wo
wp
wr writefreely: 0.15.0 -> 0.15.1 (#347269) 2024-10-19 04:52:37 +02:00
ws
wt
wu/wush
wv
wx/wxc
wy/wyoming-satellite
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 xwayland-satellite: use binary wrapper 2024-10-16 20:08:39 -04:00
ya
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo
yp/ypbind-mt
ys/ysfx
yt
yu yutto: 2.0.0-beta.43 -> 2.0.0-rc.4 2024-10-17 14:40:33 +08:00
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.156.2 -> 0.157.5 2024-10-16 16:30:58 -04:00
zf/zfind
zi
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 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;
}