nixpkgs/pkgs/by-name
2024-10-29 17:14:02 +08:00
..
_0
_1 _1password-cli: rename from _1password 2024-10-27 14:18:57 -05:00
_2/_2ship2harkinian
_4
_6/_64gram
_9
a4/a4
a5/a52dec
aa
ab
ac act: 0.2.67 -> 0.2.68 2024-10-26 06:07:40 +00:00
ad ad-miner: 1.6.0 -> 1.6.1 2024-10-25 21:47:24 +00:00
ae
af
ag
ai
al
am
an antares: modernize; remove electron override (#350627) 2024-10-27 12:09:15 +08:00
ao/aocl-utils
ap
aq/aquamarine
ar artalk: 2.9.0 -> 2.9.1 (#347926) 2024-10-27 17:39:22 +08:00
as astro-language-server: 2.15.3 -> 2.15.4 2024-10-27 18:38:23 +09:00
at
au audiobookshelf: 2.15.1 -> 2.16.0 (#351934) 2024-10-28 17:39:42 -04:00
av
aw
ax
ay
az
b3/b3sum
ba bark-server: init at 2.1.5 2024-10-28 23:12:27 +08:00
bc
bd
be
bi bitwarden-desktop: add aarch64-linux support (#351355) 2024-10-27 02:51:04 +02:00
bk/bk
bl blobdrop: init at 2.1 (#346632) 2024-10-28 23:22:45 +08:00
bm
bn/bngblaster
bo
bp
bq/bqn
br bruno: 1.32.1 -> 1.34.0 2024-10-25 22:09:42 -05:00
bs
bt
bu
by
c2
c3/c3-lsp
c-
ca candy-icons: unstable-2023-12-31 -> 0-unstable-2024-10-22 (#351624) 2024-10-28 17:00:33 +01:00
cb
cc
cd
ce
cf
cg
ch
ci cirrus-cli: 0.126.1 -> 0.130.2 (#345539) 2024-10-28 21:08:25 +08:00
cj/cjs
cl clouddrive2: init at 0.7.21 (#349204) 2024-10-27 17:45:28 +01:00
cm
cn
co composer-require-checker: 4.8.0 -> 4.13.0 (#351907) 2024-10-28 20:25:03 +01:00
cp cppcheck: 2.15.0 -> 2.16.0 2024-10-28 17:10:55 +01:00
cq/cq
cr crystal-dock: 2.5 -> 2.7 (#351631) 2024-10-27 14:43:18 +00:00
cs
ct/ctx
cu
cv/cvemap
cw/cwe-client-cli
cy
cz/czkawka
da daed: init at 0.8.0 (#322220) 2024-10-27 12:25:08 +08:00
db
dc
dd
de desed: fix hashes 2024-10-28 12:19:22 +01:00
dg
dh/dhcpig
di disko: 1.8.2 -> 1.9.0 2024-10-29 03:03:43 +00:00
dj/djent
dm dmenu-rs: refactor to add variant with enabled plugins 2024-10-28 23:50:16 -05:00
dn
do dotnet-repl: init at 0.1.216 (#299834) 2024-10-28 23:29:32 +08:00
dp
dr dry: init at 0.11.2 2024-10-27 09:36:57 +00:00
ds
dt
du
dv
dw
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ef
eg/eg25-manager
ei eigenlayer: 0.10.6 -> 0.10.8 2024-10-28 10:17:46 +00:00
ej
ek
el
em treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
en
eo/eog
ep
eq
er eris-go: 20240920 -> 20241028 2024-10-28 12:54:16 +00:00
es
et
eu
ev
ew
ex exodus: use requireFile for src 2024-10-28 07:19:04 +00:00
ey/eyewitness
ez/eza
f2/f2fs-tools
fa fatrop: 0.0.1 -> 0.0.4, casadi: 3.6.6 -> 3.6.7 (#339110) 2024-10-27 12:49:02 +01:00
fb/fbset
fc fcitx5-mcbopomofo: 2.7 -> 2.8 (#351664) 2024-10-28 12:03:21 +08:00
fd/fdroidserver
fe fedimint: 0.4.3 -> 0.4.4 2024-10-28 07:29:34 +00:00
ff fflogs: 8.14.0 -> 8.14.21 2024-10-27 12:47:49 +00:00
fg/fgqcanvas
fi fido2-manage: init at 0-unstable-2024-09-24 (#347516) 2024-10-28 16:00:51 +01:00
fj/fjo
fl flawz: fix cross-compilation (#351144) 2024-10-28 21:22:44 +01:00
fm
fn/fnott
fo forgejo-lts: 7.0.9 -> 7.0.10 2024-10-28 18:34:15 +01:00
fr
fs
ft
fu
fv
fw/fwupd
fx/fx
fy
fz fzf: 0.55.0 -> 0.56.0 2024-10-27 22:28:29 +01:00
g3/g3kb-switch
g-/g-wrap
ga gale: init at 0.8.11 (#348901) 2024-10-28 23:21:50 +08:00
gb
gc
gd
ge gersemi: 0.16.2 -> 0.17.0 (#351567) 2024-10-28 21:12:43 +08:00
gf
gg/gg
gh
gi git-chain: init at 0-unstable-2024-08-09 (#342850) 2024-10-28 23:24:54 +05:30
gk/gk-cli
gl
gm
gn
go gotestdox: init at 0.2.2 (#350973) 2024-10-29 15:46:27 +08:00
gp
gr grap: fix build 2024-10-28 20:32:11 +08:00
gs/gscan2pdf
gt
gu guix: build user takeover patch 2024-10-27 13:57:29 +01:00
gv/gvisor
gw/gweled
gx
gz/gzdoom
h2/h2
h5/h5utils
h8/h8mail
ha
hb/hb-honeypot
hc/hclfmt
hd
he hello: remove 'with lib' usage 2024-10-27 10:45:30 +01:00
hi
hj/hjson-go
hn/hn-text
ho host-spawn: init at 1.6.0 (#349674) 2024-10-26 15:05:20 +02:00
hp
hr/hred
ht httpdirfs: 1.2.5 -> 1.2.6 (#351506) 2024-10-28 19:50:32 +02:00
hu
hv/hvm
hw/hwinfo
hx/hxtools
hy hyprpolkitagent: init at 0.1.1 (#351462) 2024-10-27 13:17:52 +08:00
i2/i2p
i3
ia
ic icloudpd: use dependencies and build-system 2024-10-26 18:00:35 +01:00
id
if
ig
ii
ij
im immich-machine-learning: inherit license and maintainers from immich 2024-10-28 21:13:08 -07:00
in intiface-central: 2.6.0 -> 2.6.4 (#351191) 2024-10-27 05:59:09 +02:00
io
ip
ir
is
it
iu/iucode-tool
iv ivyterm: init at unstable-2024-10-23 2024-10-29 07:53:36 +03:00
iw
iz/izrss
j/j
ja jazz2: 2.8.0 -> 2.9.0 2024-10-27 13:35:45 +01:00
jc/jcli
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jp/jp-zip-codes
jq/jq-zsh-plugin
jr
js
jt jtbl: init at 1.6.0 2024-10-26 21:20:40 +01:00
ju
jw/jwasm
k8
ka kando: init at 1.4.0 (#337555) 2024-10-27 18:02:30 +01:00
kb/kbld
kc
kd kdlfmt: init at 0.0.3 2024-10-27 13:51:30 +09:00
ke keyspersecond: init at 8.9 (#281495) 2024-10-28 23:24:41 +08:00
kg/kgeotag
ki kin-openapi: init at 0.128.0 2024-10-27 17:58:07 +01:00
kl klog-rs: init at 0.0.3 2024-10-29 07:59:48 +01:00
km
kn
ko kor: 0.5.5 -> 0.5.6 2024-10-29 03:01:02 +00:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kw/kwok
kx
ky
la
lb
lc
ld
le less: adopt and rewrite (master) (#350981) 2024-10-28 11:24:51 +08:00
lg/lgogdownloader
li libpkgconf: Update meta.homepage (#351976) 2024-10-29 16:01:29 +08:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo lora: init at v3.005 (#350536) 2024-10-27 22:07:16 +01:00
lp
lr/lrcget
ls
lt/ltris
lu luminous-ttv: init at 0.5.7 (#335481) 2024-10-29 16:05:06 +08:00
lv/lv_font_conv
lw
lx lxgw-wenkai: 1.500 -> 1.501 2024-10-28 00:23:53 +08:00
lz
m1/m1ddc
m2
ma mattermost: 9.5.11 -> 9.11.3 (#348398) 2024-10-28 12:59:24 +05:30
mb
mc
md
me
mf
mg
mi mise: 2024.9.0 -> 2024.10.8 (#349136) 2024-10-26 14:09:59 +02:00
mj/mjmap
mk
ml/mlx42
mo mozillavpn: Fix segfault on startup with Qt 6.8 (#351033) 2024-10-29 02:33:31 +01:00
mp
mq
mr/mricron
ms
mt
mu
my
n2/n2
n8/n8n
n9/n98-magerun2
na namespace-cli: 0.0.392 -> 0.0.394 2024-10-27 08:52:12 +00:00
nb
nc
nd
ne newlisp: init at 10.7.5 2024-10-29 11:53:06 +08:00
nf
ng ngrok: add version test 2024-10-26 16:50:08 +02:00
nh
ni nimlsp: build with Nim 2.0.x 2024-10-28 10:26:14 +00:00
nl
nm
nn
no
np
nr
ns
nt
nu numbat: 1.13.0 -> 1.14.0 (#351115) 2024-10-28 00:55:34 +01:00
nv
nw nwjs-ffmpeg-prebuilt: 0.92.0 -> 0.93.0 (#351749) 2024-10-28 05:42:19 +00:00
nx/nxengine-evo
ny/nym
nz
oa
ob objfw: init at 1.1.7 (#348756) 2024-10-28 08:03:23 +02:00
oc octoscan: 0.1.1 -> 0.1.2 2024-10-28 13:45:28 +01:00
od
oe/oelint-adv
of offat: relax tenacity constraint 2024-10-26 04:54:41 +02:00
og/oguri
oh
oi
ok
ol
om
on
oo
op opengfw: 0.4.0 -> 0.4.1 (#352001) 2024-10-29 10:15:43 +05:30
oq/oqs-provider
or
os
ot
ou
ov overlayed: 0.5.0 -> 0.6.2 2024-10-26 10:44:18 +08:00
ow
p3/p3x-onenote
pa parpd: init 2.3.0 (#346418) 2024-10-29 11:10:26 +08:00
pb/pb
pc
pd treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
pe
pf
pg
ph
pi pixi: 0.31.0 -> 0.34.0 (#349438) 2024-10-26 00:35:02 +02:00
pk
pl
pm
pn
po podlet: init at 0.3.0 (#347281) 2024-10-29 16:02:17 +08:00
pp/ppsspp
pq
pr pretalx: disable racy test 2024-10-28 17:20:07 +01:00
ps
pt
pu puffin: init at 1.7.1 2024-10-28 00:36:07 +01:00
pv
pw
px/pxder
py pyditz: fix build (#351822) 2024-10-28 20:58:54 +08:00
pz/pzip
q2/q2pro q2pro: init at r3510 2024-10-28 13:49:23 +01:00
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 rainfrog: 0.2.7 -> 0.2.9 2024-10-27 10:57:03 +01:00
rc
rd/rdwatool
re repak: init at 0.2.2 (#338242) 2024-10-29 16:04:33 +08:00
rf/rfdump
rh
ri
rk
rl/rl_json
rm
rn
ro rofi-games: init at 1.10.2 (#301397) 2024-10-28 23:23:32 +08:00
rp
rq
rr/rrdtool
rs rsop: init at 0.3.9 (#344650) 2024-10-26 21:06:04 +02:00
rt
ru ruff-lsp: ruff is now a python package (#350729) 2024-10-26 10:46:14 +02:00
rw/rwpspread
rx/rxvt
ry
s0/s0ix-selftest-tool
s3
sa
sb
sc
sd
se send: init at 3.4.23 2024-10-26 13:37:20 +08:00
sf
sg/sgfutils
sh
si simplex-chat-desktop: 6.0.5 -> 6.1.0 (#350392) 2024-10-28 21:11:29 +08:00
sk skeditor: init at 2.8.1 (#351582) 2024-10-29 11:01:32 +08:00
sl chore: updated to 1.8.0 2024-10-26 11:17:01 -05:00
sm
sn snoop: 0.4 -> 0.4.1 2024-10-26 10:48:11 +08:00
so sonusmix: init at 0.1.1 (#350992) 2024-10-28 11:45:37 +08:00
sp sphinxygen: init at 1.0.4 (#351219) 2024-10-28 20:12:37 +08:00
sq sql-studio: init at 0.1.27 (#341807) 2024-10-29 16:03:12 +08:00
sr
ss sshified: init at 1.2.1 (#351532) 2024-10-27 20:53:13 +08:00
st stats: 2.11.14 -> 2.11.16 (#351643) 2024-10-28 09:15:10 -04:00
su surfer: add darwin support (#348070) 2024-10-27 12:26:01 +08:00
sv
sw
sx
sy symfony-cli: 5.10.2 -> 5.10.4 (#351317) 2024-10-26 05:21:49 +02:00
t-/t-rex
ta tabby-agent: init at 0.18.0 2024-10-27 10:32:16 -05:00
tb/tbump
tc/tcsh treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
td treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
te
tf/tflint
tg
th theattyr: init at 0.1.10 (#349329) 2024-10-29 15:44:38 +08:00
ti
tk
tl
tm
to tomlplusplus: improve derivation (#338825) 2024-10-26 22:10:47 +05:30
tp tpi: init at 1.0.6 2024-10-26 12:05:04 +02:00
tr
ts
tt
tu turbocase: init 1.8.0 (#347257) 2024-10-29 14:57:06 +08:00
tw
tx
ty
u-
ub
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un
up
ur
us
ut
uu/uuu
uv/uv
uw uwsm: 0.20.0 -> 0.20.1 2024-10-26 00:20:40 +00:00
ux
va
vc
vd/vdhcoapp
ve verible: 0.0.3791 -> 0.0.3836 2024-10-27 12:45:59 -07:00
vf/vfkit
vg
vi victoriametrics: 1.102.1 -> 1.105.0 2024-10-27 10:09:32 +00:00
vk
vl
vm
vn
vo
vp
vr/vrcadvert
vs
vt/vt323
vu
vv/vvvvvv
vw/vwsfriend
vy
vz/vzic
wa watchyourlan: init at 2.0.4 (#338842) 2024-10-29 17:11:01 +08:00
wb
wc
we wealthfolio: init at 1.0.18 2024-10-27 21:12:38 +01:00
wf/wf-touch
wg
wh
wi wiremock: 3.9.1 -> 3.9.2 (#351728) 2024-10-28 06:17:55 +00:00
wl
wo
wp wprs: init at 0-unstable-2024-10-22 2024-10-27 17:22:04 +03:30
wr
ws
wt
wu/wush
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x4/x4 x4: init at 0.1.0 (#346736) 2024-10-29 15:15:15 +08:00
xa
xc
xd
xe
xf/xfs-undelete treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr xrgears: unstable-2021-06-19 -> 1.0.1-unstable-2024-07-09 (#320650) 2024-10-28 21:22:14 +01:00
xs
xt/xtf
xu/xunit-viewer
xv/xviewer
xw
ya yabai: 7.1.3 -> 7.1.4 (#350496) 2024-10-27 19:32:54 +01:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo your_spotify: 1.10.1 -> 1.11.0 (#350978) 2024-10-26 17:03:38 +02:00
yp/ypbind-mt
ys/ysfx
yt ytdl-sub: 2024.10.26 -> 2024.10.27.post5 2024-10-28 02:38:43 +00:00
yu
za zabbix-cli: 3.1.2 -> 3.1.3 2024-10-28 19:53:45 +01:00
zb/zbus-xmlgen
zc
ze zenity: 4.0.2 -> 4.0.3 (#350854) 2024-10-27 17:29:50 +08:00
zf/zfind
zi zip2hashcat: init at 1.0 2024-10-27 01:25:24 -04: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 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;
}