nixpkgs/pkgs/by-name
2024-05-29 13:27:09 -04:00
..
_0/_0xpropo
_4
_6/_64gram _64gram: 1.1.22 -> 1.1.23 2024-05-26 21:38:11 +00:00
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac
ad
ae
af
ag
ai
al
am
an anytype: 0.40.8 -> 0.40.9 2024-05-25 04:51:30 +00:00
ao/aocl-utils
ap api-linter: 1.66.0 -> 1.66.1 2024-05-27 09:20:13 +00:00
ar arc-browser: 1.43.1-50198 -> 1.44.2-50412 2024-05-25 20:20:29 +03:00
as ast-grep: 0.22.3 -> 0.22.4 2024-05-27 13:20:07 +00:00
at
au audiobookshelf: 2.9.0 -> 2.10.1 2024-05-29 12:54:48 +02:00
av
aw
ax
ay ayatana-indicator-sound: 24.4.0 -> 24.5.0 2024-05-29 09:46:06 +00:00
ba Merge pull request #308503 from kiike/pkgs/basedpyright 2024-05-25 07:49:34 +09:00
bc bcachefs-tools: replace -> replace-fail 2024-05-26 10:43:01 +02:00
bd/bdf2ttf
be bend: 0.2.9 -> 0.2.22 2024-05-26 16:10:13 -07:00
bi Merge pull request #311784 from dotlambda/bitwarden-cli 2024-05-27 02:03:13 +00:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo Merge pull request #313805 from Mrmaxmeier/bombsquad-fix-update-script 2024-05-28 18:29:21 +02:00
bp
bq/bqn bqn: migrate to by-name 2024-05-26 10:56:52 -03:00
br
bs
bt
bu
by
c-
c2 c2patool: 0.9.1 -> 0.9.2 2024-05-29 03:12:17 +00:00
ca cargo-shear: 0.0.25 -> 0.0.26 2024-05-29 12:27:58 +00:00
cb
cc
cd
ce
cg
ch ch341eeprom: 0-unstable-2021-01-05 -> 0-unstable-2024-05-06 2024-05-25 17:32:47 +03:00
ci
cl clash-verge-rev: 1.6.3 -> 1.6.4 2024-05-28 01:27:59 +08:00
cm
cn/cntb
co cosmic-icons: 0-unstable-2024-05-02 -> 0-unstable-2024-05-21 2024-05-27 11:06:47 +00:00
cp cppitertools: init at 2.1 2024-05-24 22:14:14 -06:00
cr crunchy-cli: 3.6.4 -> 3.6.6 2024-05-28 18:44:51 +00:00
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db dbqn: migrate to by-name (#314612) 2024-05-29 06:55:01 +00:00
dc/dc3dd
dd
de
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn/dns2tcp
do
dp
dr
ds
dt
du duckstation: 0.1-6292 -> 0.1-6658 2024-05-28 10:40:27 -03:00
dv/dvb-apps
dx
dy dynamodb-local: 2.4.0 -> 2.5.0 2024-05-29 12:58:39 +00:00
e1/e1s
ea
eb
ec
ed
ee/eepers
ei
ek/eksctl eksctl: 0.178.0 -> 0.179.0 2024-05-29 09:51:22 +00:00
el Merge pull request #300966 from kilimnik/element-call 2024-05-26 21:37:25 +02:00
em
en
ep/epub-thumbnailer
er errands: 46.2 -> 46.2.2 2024-05-26 12:01:46 +02:00
es espflash: 3.0.0 -> 3.1.0 2024-05-27 12:07:23 +02:00
et
eu
ew/eww
ex
ez/eza
fa
fb/fbset
fc
fe felix-fm: 2.12.1 -> 2.13.0 2024-05-25 16:09:04 +02:00
ff fflogs: 8.5.6 -> 8.5.9 2024-05-28 01:39:38 +00:00
fg/fgqcanvas
fi files-cli: 2.13.50 -> 2.13.53 2024-05-29 03:29:08 +00:00
fl flarectl: 0.95.0 -> 0.96.0 2024-05-28 19:36:46 +00:00
fm
fn/fnott
fo Merge pull request #314605 from Scrumplex/pkgs/font-manager/0.8.9 2024-05-29 08:38:50 +02:00
fr francis: 1.1.0 -> 24.05.0 2024-05-25 03:50:50 +00:00
fs
ft/fte
fu
fv
fw/fwupd
fy/fypp
fz
g3/g3kb-switch g3kb-switch: 1.4 -> 1.5 2024-05-27 09:10:34 +08:00
ga gamescope: 3.14.16 -> 3.14.18 2024-05-28 05:02:28 +00:00
gb
gc
ge
gf
gg/gg
gh Merge pull request #314534 from isabelroses/fix/gh-eco 2024-05-27 21:16:19 +02:00
gi
gl
gm
gn gnome-monitor-config: init at 0-unstable-2023-09-26 2024-05-27 15:09:21 +02:00
go go-judge: 1.8.4 -> 1.8.5 2024-05-29 10:19:00 +00:00
gp gpt4all: 2.7.5 -> 2.8.0 2024-05-25 13:42:30 +02:00
gr Merge pull request #315314 from r-ryantm/auto-update/graphite-cli 2024-05-28 15:28:12 -04:00
gt
gu
gv/gvisor
gx/gxml
h8/h8mail
ha havn: init at 0.1.11 (#314290) 2024-05-28 14:43:11 +00:00
hb/hb-honeypot
hd
he
hi Merge pull request #314960 from YMSTNT/update-hifile 2024-05-27 10:47:16 -04:00
hj/hjson-go
ho home-manager: 0-unstable-2024-05-17 -> 0-unstable-2024-05-23 2024-05-24 19:56:41 +00:00
ht
hu humioctl: 0.32.3 -> 0.34.1 2024-05-28 22:55:52 +00:00
hy Merge pull request #314974 from iynaix/bump-hyprcursor 2024-05-27 10:45:14 -04:00
i2/i2p
i3
ia
ic icloudpd: 1.17.6 -> 1.18.0 2024-05-28 05:30:25 +00:00
id
if/ifrextractor-rs
ig
ii
im Merge pull request #303682 from SomeoneSerge/feat/imgui-cmake 2024-05-29 12:48:33 +00:00
in
io/ioq3-scion
ip
ir
is/iscc
it
iz/izrss
ja Merge pull request #315106 from r-ryantm/auto-update/jan 2024-05-27 20:08:18 +02:00
jd/jdt-language-server
je
ji
jj/jj
jn jnv: 0.2.2 -> 0.2.3 2024-05-26 13:11:47 +00:00
jo
jq/jq-zsh-plugin jq-zsh-plugin: init at 0.6.1 (#314502) 2024-05-28 11:57:03 +00:00
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju Merge pull request #306644 from jdev082/init-junest 2024-05-28 19:58:56 +10:00
ka Merge pull request #315108 from r-ryantm/auto-update/karmor 2024-05-28 02:14:35 +00:00
kc
kd
ke
kg/kgeotag
ki
kl/klog-time-tracker
km
kn/knossosnet
ko Merge #314450: init koboldcpp at 1.66 2024-05-28 12:08:11 +00:00
kp/kplex
kr
ks
kt
ku kube-state-metrics: init at 2.12.0 (#314208) 2024-05-28 14:46:22 +02:00
kx
ky
la Laravel: init at 5.8.1 (#314548) 2024-05-28 11:58:41 +00:00
lb
lc
ld/ldproxy
le Merge pull request #315105 from r-ryantm/auto-update/lefthook 2024-05-29 08:41:11 +02:00
li Merge pull request #314794 from amyipdev/libitl 2024-05-28 19:41:07 +03:00
lk/lk-jwt-service
ll llm-ls: 0.5.2 -> 0.5.3 2024-05-24 14:49:45 +00:00
lm lmstudio: 0.2.22 -> 0.2.24 2024-05-28 15:06:01 -03:00
ln/lngen
lo logiops: 0.3.3 -> 0.3.4 2024-05-28 04:09:23 +00:00
lp
ls
lt/ltris
lu lunar-client: 3.2.7 -> 3.2.9 2024-05-25 21:20:34 +00:00
lw/lwgrp
lx
lz
m2
ma Merge pull request #312829 from r-ryantm/auto-update/mariadb-connector-java 2024-05-29 08:45:54 +00:00
mb
mc
md
me
mf
mg
mi Merge pull request #314931 from r-ryantm/auto-update/misconfig-mapper 2024-05-27 15:41:15 +02:00
mk
ml/mlx42
mo
mp
mq
ms
mu
my
n2/n2
na namespace-cli: 0.0.372 -> 0.0.373 2024-05-29 04:52:16 +00:00
nb/nbtscan
nc
nd/ndstrim
ne
nf
ng
nh
ni nimble: 0.14.2 -> 0-unstable-2024-05-14 2024-05-28 04:18:54 +00:00
nl
nm/nmap-parse
nn/nncp
no node-hp-scan-to: 1.4.2 -> 1.4.3 2024-05-27 04:22:32 +02:00
np
nr
ns
nt/ntfs2btrfs
nu
nv
nw
nx/nxengine-evo
oa
ob
oc
oe/oelint-adv
of
oh oh-my-posh: 19.29.0 -> 20.2.0 2024-05-25 22:38:04 +00:00
oi
ol
om omnictl: 0.35.1 -> 0.36.0 2024-05-24 15:51:28 +00:00
on
op openvas-scanner: 23.3.0 -> 23.3.1 2024-05-25 22:38:11 +00:00
or
os
ot
ou
ov
ow
pa pacu: 1.5.3 -> 1.6.0 2024-05-28 23:00:52 +00:00
pd pdpmake: 1.4.1 -> 1.4.2 2024-05-25 03:57:03 +00:00
pe peergos: 0.17.0 -> 0.18.0 2024-05-27 18:53:26 +00:00
pf/pfft
pg
ph phpdocumentor: 3.4.3 -> 3.5.0 2024-05-24 15:31:09 +00:00
pi pinact: 0.1.3 -> 0.2.0 2024-05-25 13:38:44 +00:00
pk
pl
pm pmtiles: 1.19.1 -> 1.19.2 2024-05-29 04:15:18 +00:00
pn
po Merge pull request #315057 from JohnRTitor/polkit-gnome 2024-05-29 20:07:59 +03:00
pp/ppsspp
pq
pr protonmail-desktop: 1.0.2 -> 1.0.3 2024-05-28 15:11:06 +00:00
ps/ps_mem
pt
pu
pv/pvsneslib
pw
px/pxder
py pyprland: 2.3.2 -> 2.3.4 2024-05-27 06:29:49 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm qcm: 1.0.2 -> 1.0.3 2024-05-29 05:30:12 +00:00
qd/qdirstat
qg/qgrep
qp/qpoases
qr
qs
qt/qtractor
qu
r0/r0vm
r1/r10k
ra
rc
rd/rdwatool
re Merge pull request #314575 from sikmir/reproxy 2024-05-26 13:20:28 -04:00
rh/rHttp
ri
rk
rl/rl_json
rm
rn/rnd-name
ro
rp/rpcs3
rq/rqbit
rs
rt
ru
rw/rwpspread
ry
s0/s0ix-selftest-tool
s3
sa sabnzbd: 4.3.1 -> 4.3.2 2024-05-29 14:53:54 +00:00
sb/sbom-utility
sc
sd
se Merge pull request #313490 from Cryolitia/sequoia-wot 2024-05-26 07:18:56 +03:00
sg/sgfutils sgfutils: fix build on darwin 2024-05-29 07:15:36 +02:00
sh shopware-cli: 0.4.43 -> 0.4.44 2024-05-27 15:50:37 +00:00
si signal-backup-deduplicator: init at 0-unstable-2024-05-24 2024-05-25 10:36:05 +02:00
sk sketchybar-app-font: 2.0.18 -> 2.0.19 2024-05-27 04:23:50 +00:00
sl slumber: 1.3.1 -> 1.3.2 2024-05-27 15:22:22 +02:00
sm smile: 2.9.0 → 2.9.5 (#314521) 2024-05-28 11:43:08 +00:00
sn
so Merge pull request #313158 from tricktron/f-sonarlint-ls 2024-05-25 17:35:15 +02:00
sp Merge pull request #314462 from aaronjheng/spirit 2024-05-25 09:13:36 -04:00
sq squeezelite: format 2024-05-24 15:49:11 -04:00
sr
ss
st Merge pull request #314859 from DontEatOreo/update-stats 2024-05-29 09:35:32 -04:00
su
sv
sw
sx
sy syft: 1.4.1 -> 1.5.0 2024-05-29 05:37:11 +00:00
t-/t-rex
ta
tc/tcsh
td
te Merge pull request #314918 from r-ryantm/auto-update/templ 2024-05-29 08:45:29 +02:00
tg/tgpt
th
ti tinymist: 0.11.9 -> 0.11.10 2024-05-26 09:34:23 +02:00
tk
tl
tm/tmuxifier
to
tp
tr Merge pull request #314331 from r-ryantm/auto-update/tracexec 2024-05-25 08:52:50 -04:00
tt
tu
tw
tx/txr
ty typstyle: 0.11.23 -> 0.11.24 2024-05-27 20:25:45 +02:00
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un unison-fsmonitor: 0.3.3 -> 0.3.4 2024-05-27 11:08:47 +09:00
up
us
ut
uu/uuu
uv/uv uv: 0.2.3 -> 0.2.4 2024-05-27 15:59:43 +00:00
uw/uwhoisd
ux
va
vc
vd/vdhcoapp
ve
vg/vgm2x
vi Merge #314504: init vim-startuptime at 1.3.2 2024-05-28 11:56:12 +00:00
vl
vo/voidmap
vu vunnel: 0.23.0 -> 0.23.2 2024-05-24 23:20:39 +02:00
vv/vvvvvv
wa Merge pull request #314114 from purrpurrn/master 2024-05-28 22:17:50 +02:00
wb
we Merge pull request #313223 from eclairevoyant/webcord-vencord-fix 2024-05-26 15:57:10 +08:00
wh
wi Merge pull request #314831 from r-ryantm/auto-update/wiremock 2024-05-29 07:58:37 +00:00
wl wldash: init at 0.3.0 (#313098) 2024-05-26 13:10:29 +00:00
wo
wp
ws
wt
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe
xf/xfs-undelete
xh/xhosts
xi
xl/xlights
xm
xn/xnlinkfinder
xo
xp
xr/xr-hardware
xs
xw/xwayland-run
ya
yc/ycmd
yd/ydotool
ye
yg/yggdrasil
yj/yj
yo
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.135.2 -> 0.136.2 2024-05-25 15:56:13 +02:00
zi
zl/zluda
zo/zola
zp
zs zsh-wd: init at 0.7.0 2024-05-26 15:59:48 -07:00
zu/zug
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;
}