nixpkgs/pkgs/by-name
Adam C. Stephens cbdb6ac0e6
Merge pull request #337008 from adamcstephens/ovn/24.03.3
ovn: 24.03.2 -> 24.03.3, drop lts
2024-08-24 18:26:10 -04:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac
ad Merge pull request #335594 from r-ryantm/auto-update/adif-multitool 2024-08-22 16:52:51 -04:00
ae
af
ag
ai Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
al alephone: 1.8.1 -> 1.10 2024-08-23 09:44:44 +00:00
am
an Merge pull request #335492 from natsukium/andi/init 2024-08-23 09:14:21 +09:00
ao/aocl-utils
ap
aq/aquamarine
ar
as
at Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
au
av
aw aws-sso-cli: skip broken TestServerWithSSL 2024-08-21 20:46:51 -05:00
ax
ay
az Merge pull request #336288 from katexochen/azure-cli/socks 2024-08-21 09:58:51 -03:00
b3/b3sum
ba basedpyright: 1.16.0 -> 1.17.0 2024-08-21 13:30:49 +02:00
bc
bd
be
bi bitwarden-cli: 2024.7.2 -> 2024.8.0 2024-08-22 14:51:29 -07:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br
bs
bt
bu Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
by
c-
c2
ca Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
cb
cc
cd
ce Merge pull request #334221 from superherointj/ceph-csi-refactor 2024-08-23 15:33:29 -03:00
cg
ch
ci Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
cj/cjs
cl clever-tools: 3.8.1 -> 3.8.2 2024-08-23 01:27:55 +00:00
cm
cn
co Merge pull request #336753 from a-kenji/cosmic-randr-remove-env 2024-08-24 13:20:19 +08:00
cp
cq/cq
cr crabfit-api: fix Rust 1.80.0 build regression 2024-08-24 21:58:48 +02:00
cs
ct/ctx
cu Merge pull request #308317 from Pandapip1/init-cups-idprt 2024-08-22 15:00:07 +02:00
cv/cvemap
cy
cz/czkawka
da dapr-cli: 1.14.0 -> 1.14.1 2024-08-21 17:59:31 +00:00
db
dc
dd
de Merge pull request #336711 from onny/densify 2024-08-24 15:57:52 +02:00
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn dnsmap: init at 0.36-unstable-2024-08-20 2024-08-21 09:15:14 -06:00
do Merge pull request #335964 from r-ryantm/auto-update/doublecmd 2024-08-22 02:38:28 +00:00
dp
dr
ds
dt
du dummyhttp: 1.0.3 -> 1.1.0 2024-08-23 12:37:46 +00:00
dv/dvb-apps
dw
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ef/efibootmgr
eg/eg25-manager
ei Merge pull request #336715 from r-ryantm/auto-update/eigenlayer 2024-08-23 15:17:58 -04:00
ej/ejsonkms
ek/eksctl
el
em
en
eo/eog
ep
er
es
et
eu
ev
ew/eww
ex
ey/eyewitness
ez/eza
f2/f2fs-tools
fa
fb/fbset
fc
fe feishin: use electron_31 2024-08-23 00:59:01 +01:00
ff
fg/fgqcanvas
fi Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
fj/fjo
fl flashmq: 1.16.0 -> 1.17.0 2024-08-24 16:32:23 +00:00
fm
fn/fnott
fo Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
fr Merge pull request #333915 from jopejoe1/license 2024-08-24 12:39:30 +02:00
fs
ft/fte
fu
fv
fw/fwupd fwupd: 1.9.23 -> 1.9.24 2024-08-22 13:59:12 +02:00
fx/fx
fy
fz
g3/g3kb-switch
ga
gb
gc
gd gdm-settings: fix eval 2024-08-24 02:17:34 +02:00
ge
gf Merge pull request #331978 from r-ryantm/auto-update/gfal2 2024-08-22 23:20:49 -04:00
gg/gg
gh
gi Merge pull request #310093 from moduon/git-autoshare 2024-08-24 00:35:47 +02:00
gk/gk-cli
gl
gm
gn Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
go Merge pull request #336303 from r-ryantm/auto-update/gotree 2024-08-24 11:06:01 -06:00
gp
gr
gt Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
gu Merge pull request #335856 from museoa/guile-sqlite3 2024-08-23 17:12:41 -03:00
gv/gvisor
gx/gxml
h2/h2
h5/h5utils
h8/h8mail
ha
hb/hb-honeypot
hc/hclfmt
hd
he Merge pull request #336459 from r-ryantm/auto-update/hermitcli 2024-08-22 16:36:18 -04:00
hi Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
hj/hjson-go
hn/hn-text
ho Merge pull request #336313 from r-ryantm/auto-update/home-manager 2024-08-21 14:35:12 +02:00
hp
ht
hu
hv/hvm
hw/hwinfo hwinfo: add updater 2024-08-21 22:38:35 +02:00
hy hyprland: include xcursor regardless of xwayland 2024-08-21 22:51:27 +03:00
i2/i2p
i3
ia
ic
id
if
ig
ii
ij
im
in Merge pull request #336450 from r-ryantm/auto-update/ingress2gateway 2024-08-22 19:35:52 +00:00
io
ip
ir
is isc-cron: adopt and wash 2024-08-23 12:22:22 -03:00
it
iv
iw/iw
iz/izrss
ja
jc/jcli
jd/jdt-language-server
je Merge pull request #328495 from r-ryantm/auto-update/jetbrains-toolbox 2024-08-23 14:33:52 +02:00
ji
jj/jj
jn
jo
jq/jq-zsh-plugin
jr Merge pull request #301914 from I-Al-Istannen/pkg/jreleaser-cli 2024-08-23 16:46:46 +02:00
js
jt/jtdx
ju
jw/jwasm
ka kanidm-provision: 1.1.1 -> 1.1.2 2024-08-23 20:46:03 +02:00
kc
kd
ke
kg/kgeotag
ki Merge pull request #336124 from jfly/kikit-on-python312 2024-08-23 09:40:34 +09:00
kl
km
kn
ko Merge pull request #335784 from DontEatOreo/update-koboldcpp 2024-08-24 18:05:39 +05:30
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kx
ky
la Merge pull request #335960 from museoa/labwc 2024-08-21 22:19:17 -04:00
lb
lc
ld
le ledger-autosync: 1.0.3 -> 1.2.0 2024-08-22 19:16:45 +01:00
lg/lgogdownloader lgogdownloader: 3.14 -> 3.15 2024-08-23 17:14:12 +00:00
li Merge pull request #334233 from superherointj/libs3-fix-cross 2024-08-24 10:41:05 -03:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo Merge pull request #336188 from pbsds/bump-localsend-1724194260 2024-08-21 20:56:04 +02:00
lp
lr/lrcget
ls
lt/ltris
lu Merge pull request #331526 from LovingMelody/lug-helper 2024-08-21 17:27:06 +00:00
lv/lv_font_conv
lw/lwgrp
lx
lz
m1/m1ddc
m2
ma Merge pull request #336333 from teutat3s/mas-0.10.0 2024-08-23 16:30:43 -07:00
mb
mc
md
me Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
mf
mg
mi misconfig-mapper: 1.8.2 -> 1.8.3 2024-08-24 00:52:36 +00:00
mk
ml/mlx42
mo Merge pull request #336805 from r-ryantm/auto-update/mongodb-compass 2024-08-23 23:57:29 +02:00
mp
mq
mr/mricron
ms
mu music-assistant: 2.2.0 -> 2.2.2 2024-08-24 03:02:19 +02:00
my
n2/n2
n8/n8n
n9/n98-magerun2
na
nb
nc
nd/ndstrim
ne
nf
ng
nh
ni nixfmt-rfc-style: unstable-2024-08-08 -> unstable-2024-08-16 2024-08-21 15:00:51 +02:00
nl
nm
nn
no
np
nr
ns nstool: 1.9.0 -> 1.9.1 2024-08-21 20:13:06 +00:00
nt
nu
nv
nw
nx/nxengine-evo
nz Merge pull request #333931 from devusb/nzbget 2024-08-22 13:55:17 +02:00
oa oama: init at 0.14 2024-08-24 11:09:55 +12:00
ob
oc
od
oe/oelint-adv
of
oh
oi
ok
ol
om
on
oo
op Merge pull request #336102 from hzeller/feature-20240820-update-openscad 2024-08-22 11:43:00 +00:00
oq/oqs-provider
or orchard: 0.22.0 -> 0.22.1 2024-08-22 03:21:58 +00:00
os
ot oterm: 0.2.9 -> 0.4.2 2024-08-23 17:19:09 +00:00
ou
ov ovn: 24.03.2 -> 24.03.3 2024-08-24 12:50:52 +00:00
ow
pa Merge pull request #329102 from helsinki-systems/fix/parmetis-archive-org 2024-08-21 21:41:51 +01:00
pc pcsx2: 2.1.17 -> 2.1.102 2024-08-21 20:00:48 -03:00
pd Merge pull request #332074 from fgaz/pdf4tcl/init 2024-08-22 13:39:59 +02:00
pe petsc: moved mpiSupport flag to passthru 2024-08-24 12:10:31 +00:00
pf/pfft
pg
ph
pi
pk
pl
pm pmbootstrap: fix darwin build 2024-08-23 16:51:16 +01:00
pn
po podman-tui: 1.2.0 -> 1.2.1 2024-08-24 01:32:16 +00:00
pp/ppsspp
pq
pr Merge pull request #335761 from luftmensch-luftmensch/proton-pass_1.22.0 2024-08-22 08:33:50 +00:00
ps
pt
pu Merge pull request #335896 from pbsds/bump-pulsar-1724017823 2024-08-21 19:45:37 +02:00
pv
pw
px/pxder
py Merge pull request #336508 from r-ryantm/auto-update/pyright 2024-08-22 11:41:09 +00:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm qcm: switch to finalAttrs 2024-08-22 20:07:31 +08:00
qd
qg/qgrep
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs qsv: init at 0.131.1 2024-08-22 17:40:46 -04:00
qt/qtractor
qu Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
qw/qwerty-fr
r0/r0vm
r1/r10k
ra
rc
rd/rdwatool
re resources: 1.5.1 -> 1.6.0 2024-08-23 20:28:49 +00:00
rf/rfdump
rh/rHttp
ri
rk
rl/rl_json
rm
rn
ro robotframework-tidy: 4.13.0 -> 4.14.0 2024-08-24 09:09:54 +00:00
rp/rpcs3
rq
rr/rrdtool
rs
rt rtorrent: 0.9.8-unstable-2024-08-09 -> 0.9.8-unstable-2024-08-20 2024-08-24 09:50:08 +00:00
ru ruff: format 2024-08-22 18:43:54 +02:00
rw/rwpspread
ry
s0/s0ix-selftest-tool s0ix-selftest-tool: 0-unstable-2024-08-13 -> 0-unstable-2024-08-20 2024-08-23 21:41:33 +00:00
s3
sa
sb sby: Fix description. Remove duplicated inputs. --replace-fail instead of --replace. Be specific about which files patchShebangs is applied to. Run hooks in installPhase. Use btor2tools as input now that is updated 2024-08-24 16:33:28 -05:00
sc scs: 3.2.3 -> 3.2.7 2024-08-24 19:25:17 +02:00
sd Merge pull request #329809 from reckenrode/SDL_image-fixes 2024-08-23 15:38:58 +02:00
se Merge pull request #336251 from r-ryantm/auto-update/sendme 2024-08-21 17:23:54 -04:00
sf/sfwbar
sg/sgfutils
sh
si
sk skypeforlinux: adopt 2024-08-22 09:56:07 +00:00
sl
sm
sn
so
sp
sq
sr
ss
st stackql: 0.5.708 -> 0.5.724 2024-08-22 21:09:42 +00:00
su Merge pull request #336144 from siriobalmelli/sb/fix/surrealdb 2024-08-22 21:44:12 +00:00
sv
sw sway-overfocus: 0.2.3-fix -> 0.2.4 2024-08-24 04:10:44 +00:00
sx
sy systemctl-tui: 0.3.6 -> 0.3.7 2024-08-22 16:37:22 +02:00
t-/t-rex
ta Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
tb/tbump
tc Merge pull request #332069 from fgaz/tcludp/init 2024-08-22 13:38:59 +02:00
td Merge pull request #332077 from fgaz/tdom/init 2024-08-22 13:40:16 +02:00
te
tg
th
ti tippecanoe: 2.58.0 -> 2.60.0 2024-08-22 22:27:35 +00:00
tk
tl
tm
to
tp
tr Merge pull request #335795 from tengkuizdihar/treedome_051 2024-08-21 21:34:47 +02:00
ts/tsm-client
tt
tu
tw
tx
ty typst-lsp: move to pkgs/by-name 2024-08-22 13:24:07 +02:00
ub
uc
ud Merge pull request #335418 from r-ryantm/auto-update/udev-gothic 2024-08-21 20:28:54 +02:00
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un
up
ur/urban-cli
us
ut
uu/uuu
uv/uv uv: 0.3.1 -> 0.3.3 2024-08-24 23:35:10 +12:00
uw
ux
va
vc
vd/vdhcoapp
ve
vg vgmstream: move to by-name 2024-08-21 23:42:03 +09:00
vi Merge pull request #333917 from jtojnar/gnome-top-level 2024-08-24 01:43:31 +02:00
vk
vl
vm
vn
vo
vp
vs
vu
vv/vvvvvv
vw/vwsfriend
vz/vzic
wa Merge pull request #336292 from r-ryantm/auto-update/warp-terminal 2024-08-21 10:10:40 +00:00
wb
wc/wcurl
we webfs: 1.21 -> 1.21-unstable-2021-02-24 (#336497) 2024-08-22 16:42:28 +02:00
wf/wf-touch
wg/wg-access-server
wh
wi
wl
wo wowup-cf: 2.12.0 -> 2.20.0 2024-08-23 02:48:58 +00:00
wp
wr/wrangler
ws
wt
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa
xc
xd
xe Merge pull request #336355 from r-ryantm/auto-update/xemu 2024-08-23 16:10:14 +00:00
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo
xp
xr
xs
xu/xunit-viewer
xv/xviewer
xw
ya yamlscript: 0.1.71 -> 0.1.72 2024-08-24 02:49:40 +00:00
yc/ycmd
yd/ydotool
ye
yg
yj/yj
yo Merge pull request #332583 from r-ryantm/auto-update/youtrack 2024-08-23 15:02:44 +02:00
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.149.3 -> 0.149.5 2024-08-22 23:19:48 +02:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp
zs
zu
zw/zwave-js-server
zx
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 package name and so is the lowercased 2-letter prefix of the package 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. Please hold off migrating your maintained packages to this directory.

  1. An automated migration for the majority of packages is being worked on. In order to save on contributor and reviewer time, packages should only be migrated manually afterwards if they couldn't be migrated automatically.

  2. Manual migrations should only be lightly encouraged if the relevant code is being worked on anyways. For example with a package update or refactoring.

  3. Manual migrations should not remove definitions from all-packages.nix with custom arguments. 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-check-by-name tool.

You can locally emulate the CI check using

$ ./maintainers/scripts/check-by-name.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;
}