nixpkgs/pkgs/by-name
2024-11-17 12:52:11 -05:00
..
_0
_1
_2
_3
_4
_5/_5etools
_6
_7/_7kaa
_9
a2
a4/a4
a5/a52dec
aa
ab
ac
ad ad: 0.1.3 -> 0.2.0 2024-11-16 01:26:19 +00:00
ae
af
ag agorakit: init at 1.9.2 2024-11-17 16:08:58 +01:00
ah
ai
aj/aj-snapshot
ak/akira-unstable
al alt-tab-macos: 7.2.0 -> 7.4.0 (#356012) 2024-11-17 12:50:52 -05:00
am
an
ao/aocl-utils
ap
aq
ar treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
as
at atlauncher: 3.4.37.4 -> 3.4.38.0 2024-11-16 00:07:27 +04:00
au
av
aw
ax
ay
az
b3/b3sum
b4
b6/b612
ba treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
bb
bc
bd
be bencodetools,uade: Fix build, update, modernise (#352867) 2024-11-16 17:33:40 +01:00
bf
bg
bi bisq2: init at 2.1.2 (#356043) 2024-11-17 11:54:38 +00:00
bj/bjumblr
bk
bl
bm
bn/bngblaster
bo
bp
bq
br
bs
bt btrbk: add mainProgram 2024-11-16 05:19:46 +01:00
bu bun: 1.1.31 -> 1.1.34 (#355309) 2024-11-17 12:52:01 -05:00
bv
bw
by
bz/bzrtp
c2
c3
c6/c64-debugger
c-
ca treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
cb
cc
cd
ce
cf
cg
ch treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
ci
cj
ck
cl clevis: 20 -> 21 (#351598) 2024-11-16 00:36:10 +01:00
cm
cn
co treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
cp
cq/cq
cr
cs
ct
cu
cv
cw
cx
cy treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
cz
d2
d-
da
db
dc
dd
de deskflow: init at 1.17.1 2024-11-17 01:18:59 +08:00
df
dg
dh
di
dj
dk
dl
dm
dn dnsrecon: 1.3.0 -> 1.3.1 2024-11-16 10:34:40 +01:00
do
dp
dq
dr druid: 30.0.0 -> 31.0.0 (#351877) 2024-11-16 22:20:41 +01:00
ds
dt
du treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
dv
dw
dx
dy
dz/dzen2
e1 e1s: 1.0.41 -> 1.0.42 2024-11-15 19:49:24 +00:00
e2
ea
eb
ec
ed
ee/eepers
ef
eg
ei
ej
ek
el elasticsearch-curator: 8.0.16 -> 8.0.17 2024-11-15 20:34:30 +00:00
em
en treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
eo
ep
eq
er treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
es
et
eu
ev
ew
ex treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
ey
ez
f1
f2
f3/f3
f5/f5_6
fa fanficfare: 4.39.0 -> 4.40.0 2024-11-16 17:53:05 +00:00
fb
fc fcitx5-pinyin-moegirl: 20241009 -> 20241109 (#354759) 2024-11-17 12:52:11 -05:00
fd
fe
ff
fg
fh
fi files-cli: 2.13.148 -> 2.13.180 (#356572) 2024-11-17 08:43:28 -05:00
fj/fjo
fl
fm
fn
fo forgejo-lts: 7.0.10 -> 7.0.11 2024-11-15 21:30:02 +01:00
fp
fq/fq
fr
fs
ft
fu
fv
fw
fx
fy
fz
g1/g15daemon
g2/g203-led
g3/g3kb-switch
g8/g810-led
g9/g933-utils
g-/g-wrap
ga treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
gb
gc
gd
ge
gf
gg
gh ghc_filesystem: pin apple-sdk to v11; modernize; adopt (#356345) 2024-11-17 17:17:24 +01:00
gi
gj
gk
gl
gm treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
gn
go go-critic: 0.11.4 -> 0.11.5 (#356692) 2024-11-17 08:15:20 -05:00
gp
gq
gr granted: 0.36.1 -> 0.36.3 (#355574) 2024-11-17 12:51:24 -05:00
gs
gt
gu
gv
gw
gx
gy
gz
h2
h5/h5utils
h8/h8mail
ha
hb
hc hclfmt: 2.22.0 -> 2.23.0 (#356381) 2024-11-16 10:38:34 +01:00
hd
he
hf
hh
hi rustPlatform.fetchCargoVendor: init (#349360) 2024-11-16 09:30:53 +05:30
hj/hjson-go
hl/hledger-check-fancyassertions
hm
hn
ho
hp
hq/hqplayerd
hr
hs
ht
hu
hv/hvm
hw
hx/hxtools
hy hyprgui: 0.1.7 -> 0.1.8 (#354878) 2024-11-15 18:25:07 -06:00
i2
i3
i8/i810switch
i-/i-dot-ming
ia
ib
ic
id
if
ig
ih/ihp-new
ii
ij
ik
il
im treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
in invidious: format, clean derivation (#356256) 2024-11-17 12:30:42 +01:00
io
ip ipget: 0.11.0 -> 0.11.1 2024-11-16 14:14:08 +00:00
iq
ir
is
it
iu/iucode-tool
iv
iw
ix/ix
iz/izrss
j/j
j4/j4-dmenu-desktop
ja
jb
jc
jd
je
jf
jg/jgmenu
jh
ji
jj/jj
jm
jn
jo
jp
jq
jr
js
jt
ju jujutsu: skip a flaky test 2024-11-16 17:00:16 -06:00
jw
jx
jy/jython
k0/k0sctl
k2
k3
k4/k40-whisperer
k6/k6
k8
k9/k9s
ka treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
kb
kc
kd kdlfmt: 0.0.3 -> 0.0.6 2024-11-17 02:44:06 +00:00
ke
kf/kfilt
kg/kgeotag
kh
ki
kl
km
kn
ko koboldcpp: 1.77 -> 1.78 (#356508) 2024-11-17 15:53:14 +05:30
kp
kr
ks
kt treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
ku treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
kv
kw
kx
ky
l2/l2md
la treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
lb
lc
ld
le lektor: fix build 2024-11-16 22:50:32 +01:00
lf/lftp
lg
lh
li treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
lk
ll
lm
ln
lo
lp
lr
ls treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
lt
lu luckybackup: support wayland (#356565) 2024-11-17 12:24:34 +01:00
lv
lw
lx
ly
lz
m1
m2
m3/m33-linux
m4
m-/m-cli
ma mmctl: 9.11.3 -> 9.11.5 (#356586) 2024-11-17 17:14:40 +01:00
mb
mc
md
me memtest86plus: 7.00 -> 7.20 (#355331) 2024-11-17 12:51:47 -05:00
mf
mg
mh/mhddfs
mi treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
mj
mk treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
ml
mm
mn
mo modrinth-app: 0.8.2 -> 0.8.9 (#356062) 2024-11-17 17:27:44 +01:00
mp
mq
mr
ms
mt
mu mullvad-browser: 13.5.9 -> 14.0 2024-11-15 21:27:34 +01:00
mv
mw/mw
mx
my
n2
n3/n3
n8/n8n
n9
na
nb
nc treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
nd
ne nerd-font-patcher: 3.1.1 -> 3.2.1 (#353948) 2024-11-16 11:38:58 +01:00
nf
ng
nh nh: 3.5.26 -> 3.6.0 2024-11-16 23:36:58 +00:00
ni nihstro: init at 0-unstable-2024-05-05 (#356377) 2024-11-17 14:30:41 +01:00
nj/njam
nk
nl
nm
nn
no
np
nq
nr
ns
nt
nu numix-icon-theme-circle: 24.10.01 -> 24.10.22 (#356612) 2024-11-17 08:34:36 -05:00
nv
nw
nx
ny
nz
oa
ob
oc
od
oe
of
og
oh
oi
ok
ol
om
on
oo
op treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
oq
or
os osu-lazer-bin: 2024.1115.2 -> 2024.1115.3 2024-11-16 15:03:08 +08:00
ot treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
ou
ov
ow
ox
p0/p0f
p1/p11-kit
p2/p2pool
p3/p3x-onenote
p4/p4d
p9/p910nd
pa treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
pb
pc
pd treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
pe
pf
pg
ph phlare: fix build 2024-11-16 19:41:25 +01:00
pi
pk
pl plantuml: 1.2024.7 -> 1.2024.8 2024-11-16 14:43:41 +01:00
pm
pn
po treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
pp
pq
pr prometheus-nvidia-gpu-exporter: initial version 1.2.1 2024-11-16 11:40:18 +01:00
ps
pt
pu
pv
pw
px
py
pz/pzip
q2/q2pro treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
q-/q-text-as-data
qa
qb
qc
qd
qe
qg
qh/qhull
qm
qn/qnial
qo
qp
qq qq: 3.2.13-2024.10.23 -> 3.2.13-2024.11.12 2024-11-17 03:13:21 +00:00
qr
qs
qt
qu
qw/qwerty-fr
r0/r0vm
r1
r2
r5/r53-ddns
ra treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
rb rbenv: 1.2.0 -> 1.3.0 2024-11-15 21:29:59 +01:00
rc
rd
re remarshal_0_17: remove updateScript, add no auto update comment (#356367) 2024-11-16 06:22:58 +00:00
rf
rg
rh
ri riffdiff: 3.3.6 -> 3.3.7 2024-11-15 19:46:39 -05:00
rk
rl
rm rmapi: 0.25 -> 0.0.27.1 and switching to a maintained fork (#355090) 2024-11-17 09:56:29 +00:00
rn rnote: format with nixfmt-rfc-style 2024-11-16 08:29:59 +01:00
ro
rp
rq treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
rr
rs rsgain: 3.5.2 -> 3.5.3 2024-11-17 04:30:57 +00:00
rt
ru rust-analyzer-unwrapped: 2024-09-02 -> 2024-11-11 (#354304) 2024-11-17 08:49:52 -06:00
rv/rvvm
rw
rx
ry
rz/rzip
s0/s0ix-selftest-tool
s2
s3
s4/s4cmd
s5
s7/s7
s9/s9fes
s-
sa treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
sb
sc treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
sd
se
sf
sg
sh
si treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
sj/sjasmplus
sk
sl
sm
sn snapper: 0.11.2 -> 0.12.0 (#355943) 2024-11-17 18:07:03 +01:00
so
sp spotify-player: clean up old Darwin SDK pattern; fix x86_64-darwin (#355843) 2024-11-17 17:20:35 +01:00
sq treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
sr
ss
st treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
su
sv
sw treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
sx
sy
sz
t1
t4/t4kcommon
t-/t-rex
ta talosctl: 1.8.2 -> 1.8.3 (#355698) 2024-11-16 15:07:44 +02:00
tb
tc
td
te tetrio-plus: split tpsecore into seperate package (#353557) 2024-11-17 16:25:06 +01:00
tf tflint: 0.52.0 -> 0.54.0 2024-11-15 23:02:51 +00:00
tg
th
ti tippecanoe: 2.64.0 -> 2.70.0 2024-11-16 17:42:37 +00:00
tk
tl
tm
tn
to
tp tetrio-plus: split tpsecore into seperate package (#353557) 2024-11-17 16:25:06 +01:00
tq/tqsl
tr
ts
tt
tu
tv
tw
tx
ty
tz
u0/u001-font
u2/u2ps
u3/u3-tool
u9/u9fs
u-
ua bencodetools,uade: Fix build, update, modernise (#352867) 2024-11-16 17:33:40 +01:00
ub
uc
ud
ue
uf
ug
uh
ui
uk/ukmm
ul
um
un unifi: Move package to pkgs/by-name/un/unifi 2024-11-15 20:08:10 -05:00
up
uq
ur
us
ut
uu
uv
uw
ux
v2 v2ray-domain-list-community: 20241013063848 -> 20241112092643 2024-11-17 14:49:31 +00:00
v4/v4l2-relayd
va vapoursynth-bestsource: init at R6 (#331874) 2024-11-17 17:07:22 +01:00
vb
vc
vd
ve treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
vf/vfkit
vg
vh
vi
vk
vl
vm
vn
vo volatility3: 2.7.0 -> 2.8.0 2024-11-16 04:47:27 +00:00
vp
vr
vs
vt
vu
vv
vw
vx/vxl
vy
vz/vzic
w3/w3m
w_
wa
wb
wc
wd
we
wf
wg
wh
wi
wk/wkhtmltopdf
wl
wm
wo
wp
wq
wr treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
ws
wt
wu
wv
ww/wwcd
wx
wy
x1
x2
x3/x3270
x4 treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
x8/x86info
x-/x-create-mouse-void
xa
xb
xc
xd
xe
xf
xg
xh
xi
xj
xk
xl
xm
xn
xo
xp
xq
xr
xs
xt
xu
xv
xw
xx
xy/xylib
xz
ya
yc/ycmd
yd
ye
yg
yj/yj
yl/yle-dl
ym
yo
yp/ypbind-mt
yq/yq-go yq-go: 4.44.3 -> 4.44.5 2024-11-16 07:55:13 +00:00
ys/ysfx
yt
yu
yx/yx
yy/yyjson
z8/z88dk
z-/z-lua
za
zb
zc
zd
ze zed-editor: downgrade nodejs 2024-11-16 14:26:43 +01:00
zf
zg
zi
zk
zl
zm
zn
zo
zp
zr/zrepl
zs
zt
zu
zv/zvbi treewide: stdenv.is -> stdenv.hostPlatform.is (#356363) 2024-11-17 16:11:54 +05:30
zw/zwave-js-server
zx
zy/zydis
zz
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;
}