1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/by-name
2024-12-07 16:04:48 +01:00
..
_0
_1
_2
_3
_4
_5/_5etools
_6
_7
_9
a2
a4/a4
a5/a52dec
aa
ab
ac
ad ad-miner: 1.6.1 -> 1.7.0 2024-12-06 22:55:29 +00:00
ae
af
ag
ah
ai
aj/aj-snapshot
ak/akira-unstable
al
am amdvlk: 2024.Q3.3 -> 2024.Q4.1 (#359068) 2024-12-06 23:54:01 +01:00
an
ao/aocl-utils
ap
aq
ar
as
at atlantis: 0.28.5 -> 0.30.0 (#351913) 2024-12-07 13:55:14 +01:00
au
av
aw awsebcli: update override for cement 2024-12-07 09:11:14 +01:00
ax
ay
az
b3/b3sum
b4
b6/b612
ba
bb
bc
bd
be
bf
bg
bi bilibili: 1.14.0-2 -> 1.15.2-2 2024-12-07 17:40:48 +08:00
bj/bjumblr
bk
bl
bm
bn/bngblaster
bo boogie: 3.2.5 -> 3.4.2 (#356053) 2024-12-07 03:26:28 +01:00
bp
bq
br
bs
bt
bu nixos/buffyboard: init (#358941) 2024-12-07 03:36:18 -05:00
bv
bw
by
bz/bzrtp
c-
c2
c3
c6/c64-debugger
ca cargo-show-asm: 0.2.41 -> 0.2.42 (#362670) 2024-12-07 09:49:49 -05:00
cb
cc
cd
ce
cf
cg
ch chsrc: init at 0.1.9 (#362373) 2024-12-07 12:07:42 +02:00
ci
cj
ck
cl
cm
cn
co containerlab: 0.59.0 -> 0.60.0 (#362284) 2024-12-07 00:14:52 +00:00
cp
cq/cq
cr crd2pulumi: 1.5.3 -> 1.5.4 2024-12-07 04:42:48 +00:00
cs
ct
cu cups-filters: 1.28.17 -> 2.0.1 (#358724) 2024-12-07 12:00:35 +01:00
cv
cw
cx
cy
cz
d-
d2
da
db dbeaver-bin: 24.2.3 -> 24.3.0 2024-12-06 20:38:24 +00:00
dc
dd
de decasify: drop obsolete workaround for fetchCargoTarball triggering configure 2024-12-06 23:54:58 +03:00
df
dg
dh
di discordchatexporter-cli: support all unix platforms (#360371) 2024-12-07 19:55:38 +08:00
dj
dk
dl
dm
dn
do dolt: 1.43.1 -> 1.43.15 (#356838) 2024-12-07 15:16:02 +01:00
dp
dq
dr
ds
dt
du
dv
dw
dx
dy
dz/dzen2
e1
e2
ea
eb
ec
ed
ee/eepers
ef
eg
ei
ej
ek
el
em
en
eo
ep
eq
er
es
et
eu
ev
ew
ex extism-cli: 1.6.0 -> 1.6.1 2024-12-07 11:14:03 +00:00
ey
ez
f1
f2
f3/f3
f5/f5_6
fa
fb
fc
fd
fe fedifetcher: 7.1.12 -> 7.1.14 (#361994) 2024-12-07 19:35:06 +08:00
ff
fg
fh
fi filesender: 2.49 -> 2.50 (#353284) 2024-12-07 13:58:01 +01:00
fj/fjo
fl flarectl: 0.108.0 -> 0.111.0 2024-12-07 04:40:33 +00:00
fm
fn
fo
fp
fq/fq
fr
fs
ft
fu
fv
fw
fx
fy
fz
g-/g-wrap
g1/g15daemon
g2/g203-led
g3/g3kb-switch
g8/g810-led
g9/g933-utils
ga gatus: 5.13.0 -> 5.13.1 2024-12-07 05:47:36 +00:00
gb
gc
gd
ge gersemi: 0.17.0 -> 0.17.1 2024-12-07 08:20:24 +00:00
gf
gg
gh
gi git-warp-time: drop obsolete workaround for fetchCargoTarball triggering configure 2024-12-06 23:56:31 +03:00
gj
gk/gk-cli
gl glooctl: 1.17.14 -> 1.17.16 (#356321) 2024-12-07 03:43:01 +01:00
gm
gn gnome-extension-manager: fix black screen via upstream patch (#358236) 2024-12-07 20:39:43 +08:00
go goawk: 1.28.0 -> 1.29.1 2024-12-07 11:22:56 +00:00
gp gpxlab: add symlink to binary on darwin, migrate to by-name (#358684) 2024-12-06 23:55:10 +04:00
gq gqlgenc: 0.25.3 -> 0.27.3 2024-12-07 04:22:16 +00:00
gr
gs
gt
gu gut: 0.3.0 -> 0.3.1 2024-12-07 09:41:28 +00:00
gv
gw
gx
gy
gz
h2
h5/h5utils
h8/h8mail
ha
hb
hc
hd
he healthchecks: 3.6 -> 3.7 (#356362) 2024-12-07 14:53:18 +01:00
hf
hh
hi
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.9 -> 0.2.0 (#362136) 2024-12-07 21:13:48 +08:00
i-/i-dot-ming
i2
i3
i8/i810switch
ia
ib
ic
id
if
ig
ih/ihp-new
ii
ij
ik
il
im
in
io
ip
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 jfrog-cli: 2.71.4 -> 2.72.2 2024-12-06 11:08:32 -06:00
jg/jgmenu
jh
ji
jj/jj
jm
jn
jo
jp
jq
jr
js
jt
ju jujutsu: 0.23.0 -> 0.24.0 2024-12-06 10:34:33 -06:00
jw
jx
jy/jython
k0/k0sctl
k2
k3
k4/k40-whisperer
k6/k6
k8
k9/k9s
ka
kb
kc
kd
ke keymapper: 4.8.2 -> 4.9.0 (#356380) 2024-12-07 15:05:50 +01:00
kf/kfilt
kg/kgeotag
kh
ki
kl
km
kn
ko komikku: 1.64.0 -> 1.65.0 (#362524) 2024-12-06 20:49:54 +02:00
kp
kr
ks
kt
ku
kv
kw
kx
ky
l2/l2md
la lazyjournal: init at 0.4.0 (#362539) 2024-12-07 17:42:16 +08:00
lb
lc
ld
le
lf/lftp
lg
lh
li cups-filters: 1.28.17 -> 2.0.1 (#358724) 2024-12-07 12:00:35 +01:00
lk
ll
lm
ln
lo
lp
lr
ls
lt
lu
lv
lw
lx
ly
lz
m-/m-cli
m1
m2
m3/m33-linux
m4
m8/m8c
ma materialize: 0.84.2 -> 0.87.2 2024-12-07 12:39:24 +01:00
mb
mc
md
me
mf
mg
mh/mhddfs
mi micropython: 1.24.0 -> 1.24.1 (#362701) 2024-12-07 16:04:48 +01:00
mj
mk
ml
mm
mn
mo morewaita-icon-theme: 47.1-> 47.2 (#361807) 2024-12-07 19:41:21 +08:00
mp
mq
mr
ms
mt
mu
mv
mw/mw
mx
my
n2
n3/n3
n8/n8n
n9
na namespace-cli: 0.0.394 -> 0.0.396 2024-12-07 10:37:45 +00:00
nb
nc
nd
ne nerdfetch: 8.3.0 -> 8.3.1 2024-12-07 09:59:41 +00:00
nf
ng
nh
ni
nj/njam
nk
nl
nm
nn
no
np
nq
nr
ns
nt
nu
nv
nw nwg-panel: 0.9.50 -> 0.9.53 2024-12-07 10:14:35 +00:00
nx
ny
nz
oa
ob
oc
od
oe
of
og
oh
oi
ok
ol
om
on onedrive: patch missed paths 2024-12-07 01:47:47 +00:00
oo
op openapi-python-client: 0.21.6 -> 0.21.7 2024-12-07 10:29:07 +00:00
oq
or orbiton: 2.68.2 -> 2.68.4 (#362518) 2024-12-06 23:11:14 +04:00
os
ot
ou
ov
ow
ox
p0/p0f
p1/p11-kit
p2/p2pool
p3/p3x-onenote
p4/p4d
p9/p910nd
pa paperjam: init at 1.2.1 (#302861) 2024-12-07 20:16:33 +08:00
pb
pc
pd
pe
pf
pg
ph phpunit: 11.3.6 -> 11.5.0 2024-12-07 03:46:33 +00:00
pi pilipalax: init at 1.0.22-beta.12+174 (#360265) 2024-12-07 21:27:16 +08:00
pk
pl plasticity: Fix EGL (#362253) 2024-12-07 23:04:06 +08:00
pm pmtiles: 1.22.1 -> 1.22.2 2024-12-06 16:11:07 +00:00
pn
po
pp
pq
pr dotnet: wrapper improvements (#362425) 2024-12-06 15:02:13 -04:00
ps
pt
pu
pv
pw
px
py pylyzer: 0.0.71 -> 0.0.72 2024-12-07 08:45:42 +00:00
pz/pzip
q-/q-text-as-data
q2/q2pro
qa
qb
qc
qd
qe
qg
qh
qi/qidi-slicer-bin
qm
qn/qnial
qo
qp
qq
qr
qs
qt qtscrcpy: 2.2.1 -> 3.0.0 2024-12-07 00:49:17 +00:00
qu
qw/qwerty-fr
r0/r0vm
r1
r2
r5/r53-ddns
ra raycast: 1.87.2 -> 1.87.4 (#362102) 2024-12-06 23:57:23 +04:00
rb
rc
rd
re renode-unstable: 1.15.3+20241004git4b8a8f170 -> 1.15.3+20241112git6e850cb52 (#356066) 2024-12-07 03:32:43 +01:00
rf
rg
rh
ri
rk
rl
rm
rn
ro
rp
rq
rr
rs
rt rtkit: fix reduce logging patch URL (#360182) 2024-12-07 21:04:42 +08:00
ru
rv/rvvm
rw
rx
ry rygel: remove unused gtk3 buildInputs 2024-12-07 00:31:29 +08:00
rz/rzip
s-
s0/s0ix-selftest-tool
s2
s3
s4/s4cmd
s5
s7/s7
s9/s9fes
sa satellite: 0.5.0 -> 0.9.0 2024-12-07 21:50:28 +08:00
sb
sc schemacrawler: 16.22.2 -> 16.22.3 (#354426) 2024-12-07 14:37:57 +01:00
sd
se
sf
sg
sh
si sile: mark broken on darwin 2024-12-07 00:00:13 +03:00
sj/sjasmplus
sk
sl
sm
sn
so sonivox: 3.6.13 -> 3.6.14 2024-12-07 06:18:19 +00:00
sp
sq
sr
ss
st step-ca: 0.28.0 -> 0.28.1 2024-12-07 05:04:55 +00:00
su sudo-font: 2.0.0 -> 2.1 2024-12-07 03:10:31 +00:00
sv
sw
sx
sy
sz
t-/t-rex
t1
t4/t4kcommon
ta
tb
tc
td
te
tf
tg
th
ti tinymist: 0.12.8 -> 0.12.10 2024-12-07 11:25:54 +01:00
tk
tl
tm
tn
to
tp
tq/tqsl
tr trueseeing: 2.2.4 -> 2.2.5 2024-12-07 05:27:16 +00:00
ts
tt ttags: 0.4.1 -> 0.4.2 2024-12-07 03:13:04 +00:00
tu
tv
tw
tx
ty typstyle: 0.12.7 -> 0.12.8 2024-12-07 11:27:26 +01:00
tz
u-
u0/u001-font
u2/u2ps
u3/u3-tool
u9/u9fs
ua
ub
uc
ud
ue
uf
ug
uh
ui
uk/ukmm
ul
um
un
up
uq
ur
us
ut utm: 4.6.2 -> 4.6.3 2024-12-07 03:06:28 +01:00
uu
uv
uw
ux
v2
v4/v4l2-relayd
va vagrant: 2.4.1 -> 2.4.3 2024-12-06 17:53:19 +01:00
vb
vc
vd
ve
vf/vfkit
vg
vh
vi viddy: 1.2.1 -> 1.3.0 2024-12-06 22:56:02 +05:30
vk
vl
vm
vn
vo
vp
vr
vs
vt vtm: 0.9.99.35 -> 0.9.99.55 2024-12-07 04:39:47 +00:00
vu vulkan-hdr-layer-kwin6: init at 0-unstable-2024-10-19 (#345805) 2024-12-06 22:11:11 -05:00
vv
vw
vx/vxl
vy
vz/vzic
w3/w3m
w_
wa waybar: add option for en-/disabling niri support (#361152) 2024-12-06 20:24:04 +02:00
wb
wc
wd
we
wf
wg wget: fix and enable strictDeps (#361823) 2024-12-06 17:58:26 +01:00
wh
wi
wk/wkhtmltopdf
wl
wm
wo
wp
wq
wr
ws
wt
wu
wv
ww/wwcd
wx
wy
x-/x-create-mouse-void
x1
x2
x3/x3270
x4
x8/x86info
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
ys/ysfx
yt yt-dlp: 2024.12.3 -> 2024.12.6 2024-12-06 18:33:16 +02:00
yu
yx/yx
yy/yyjson
z-/z-lua
z8/z88dk
za
zb
zc
zd
ze
zf
zg
zi zizmor: 0.7.0 -> 0.8.0 2024-12-07 11:45:23 +01:00
zk
zl
zm
zn
zo
zp
zr
zs
zt
zu zulip: expand platforms to all Linux (#362474) 2024-12-06 22:01:16 +05:30
zv/zvbi
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;
}