nixpkgs/pkgs/by-name
2024-04-22 09:08:30 +00:00
..
4d/4d-minesweeper
_0/_0xpropo
_4/_4th
_6/_64gram _64gram: 1.1.18 -> 1.1.19 2024-04-20 23:01:29 +05:30
_9/_9base
a4/a4
a5/a52dec
aa
ab ab-av1: init at 0.7.14 2024-04-19 04:20:00 +00:00
ac
ad adminerevo: init at 4.8.6 2024-04-20 20:01:51 +02:00
ae Merge pull request #289520 from vaci/vaci/aeron-143 2024-04-17 22:24:05 +02:00
af
ag/ags
ai
al
am
an Merge pull request #299465 from hatch01/antares 2024-04-17 21:50:06 +02:00
ao/aocl-utils
ap api-linter: 1.65.0 -> 1.65.1 2024-04-18 18:33:29 +00:00
ar Merge pull request #304337 from DontEatOreo/pkgs-arc-browser 2024-04-18 17:14:56 +02:00
as
at
au
av
aw treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessary 2024-04-17 13:34:05 -04:00
ax/axmldec
ay
ba
bc/bc-ur
be Merge pull request #284785 from GoldsteinE/betula/1.2 2024-04-20 22:31:38 +08:00
bi biglybt: init at 3.5.0.0 2024-04-20 18:54:59 +02:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo
bp/bpftop
br
bs
bt/bt-migrate
bu
by
c-
c2
ca cargo-expand: 1.0.84 -> 1.0.85 2024-04-22 03:30:15 +00:00
cb
cc
cd
ce
cg
ch
ci
cl Merge pull request #305706 from xrelkd/update/clipcat 2024-04-21 20:05:03 -05:00
cm
cn/cntb
co Merge pull request #299049 from nim65s/meshlab 2024-04-20 19:23:46 +02:00
cp
cr crunchy-cli: 3.4.3 -> 3.5.0 2024-04-21 22:51:30 +00:00
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db/dbus-cpp
dc/dc3dd
dd
de treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessary 2024-04-17 13:34:05 -04:00
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn/dns2tcp
do Merge pull request #305540 from r-ryantm/auto-update/doublecmd 2024-04-21 10:22:38 +00:00
dp/dpp
dr/drone-scp
ds
dt
du dublin-traceroute: mark as broken on darwin 2024-04-21 00:18:36 +02:00
dv/dvb-apps
dx
dy
ea earlyoom: 1.7 -> 1.8 2024-04-19 09:58:40 -03:00
eb
ec
ed
ei eigenlayer: 0.7.2 -> 0.7.3 2024-04-19 22:37:04 +00:00
ek/eksctl
el
em emacs-lsp-booster: 0.2.0 -> 0.2.1 2024-04-17 23:53:33 +00:00
en
ep/epub-thumbnailer
er
es
et etlegacy: 2.82.0 -> 2.82.1 2024-04-21 20:12:44 +02:00
eu
ex
ez/eza Merge pull request #305314 from r-ryantm/auto-update/eza 2024-04-20 05:43:46 +00:00
fa
fb/fbset
fc
fe feather: fix trezor support 2024-04-20 15:56:47 +02:00
ff
fi Merge pull request #305792 from pbsds/fix-find-billy-1713718154 2024-04-21 21:49:21 +02:00
fl
fm
fn/fnott
fo Merge pull request #303817 from isabelroses/add-fork-cleaner 2024-04-20 13:14:13 +08:00
fr
fs
fu/fuchsia-cursor
fv
fw/fwupd
fy/fypp
fz/fzf-make fzf-make: 0.27.0 -> 0.28.0 2024-04-17 21:22:08 +02:00
g3/g3kb-switch
ga gamescope: 3.14.3 -> 3.14.4 2024-04-21 09:48:11 +00:00
gb/gbar
gc
ge
gf
gg/gg
gh
gi gitu: 0.16.0 -> 0.17.1 2024-04-19 15:00:00 -04:00
gl Merge pull request #295219 from oluceps/add-glider 2024-04-20 15:17:51 +08:00
gm
gn
go go-camo: 2.4.11 -> 2.4.12 2024-04-21 00:56:58 +00:00
gp
gr
gt gtfocli: init at 0.0.4 2024-04-18 19:30:51 +02:00
gu
gv/gvisor add aarch64-linux (#305521) 2024-04-20 15:01:31 +02:00
gx/gxml
h8/h8mail
ha
hd/hdrop
he
hi himalaya: 1.0.0-beta.3 -> 1.0.0-beta.4 2024-04-18 08:41:06 +02:00
hj/hjson-go
ho
ht
hu
hy Merge pull request #305140 from IogaMaster/hypridle 2024-04-19 19:29:27 +08:00
i2/i2p
i3
ia
ic
id
if/ifrextractor-rs
ig
ii
im
in incus/client: make platform list more permissive 2024-04-21 18:37:13 +02:00
io/ioq3-scion
ip
ir
it
ja Merge #303527: staging-next 2024-04-12 2024-04-19 16:30:52 +02:00
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jr/jrl-cmakemodules
js/jsoncons
ju
ka Merge pull request #297572 from quantenzitrone/katawa-shoujo-re-engineered 2024-04-19 07:04:04 +02:00
kc kcl-cli: 0.8.5 -> 0.8.6 2024-04-20 02:18:42 +00:00
kd/kdsingleapplication
ke
kg/kgeotag
ki
kl/klog-time-tracker
km
kn/knossosnet
ko
kp/kplex
kr
ks
kt ktfmt: make deterministic 2024-04-21 20:56:00 +02:00
ku
kx/kxstitch
ky/kyverno-chainsaw
la
lb Merge pull request #289525 from D3vil0p3r/patch-22 2024-04-21 19:24:52 +02:00
lc/lcab
ld/ldproxy
le
li Merge pull request #305446 from r-ryantm/auto-update/limine 2024-04-21 04:11:26 +02:00
ll
lm/lmstudio
ln/lngen
lo
lp
ls
lt/ltris
lu Merge pull request #301615 from TomaSajt/luneta 2024-04-21 19:45:02 +02:00
lw/lwgrp
lx lxd: drop undefined ui attribute 2024-04-21 19:48:27 +01:00
lz
m2
ma maa-assistant-arknights: 5.2.0 -> 5.2.1 2024-04-20 21:38:54 +00:00
mb
mc mcap-cli: 0.0.42 -> 0.0.43 2024-04-18 08:16:24 +00:00
md
me Merge pull request #304942 from atorres1985-contrib/mednafen 2024-04-21 00:08:52 +02:00
mf
mg/mgitstatus
mi
mk
ml/mlx42
mo Merge pull request #295233 from oluceps/add-moproxy 2024-04-20 00:33:35 +08:00
mp
mq mqttui: format with nixfmt 2024-04-20 12:31:01 +02:00
ms
mu
my mystmd: 1.1.53 -> 1.1.55 2024-04-20 17:54:51 +00:00
n2/n2
na
nb/nbtscan
nc
nd/ndstrim
ne Merge pull request #247118 from Tom-Hubrecht/netbird-server 2024-04-20 11:21:10 +02:00
nf/nfft
ng/ngrid
nh nh: 3.5.10 -> 3.5.13 2024-04-21 11:31:47 +00:00
ni niri: 0.1.4 -> 0.1.5 2024-04-20 19:42:39 +02:00
nl
nm/nmap-parse
nn/nncp
no novops: 0.12.1 -> 0.13.0 2024-04-21 01:22:54 +00:00
np
nr nrr: 0.8.0 -> 0.9.0 2024-04-19 10:52:06 +08:00
ns
nt/ntfs2btrfs
nu
nv
nw nwg-hello: 0.1.9 -> 0.1.10 2024-04-20 03:09:04 +00:00
oa
ob
oc
oe/oelint-adv
of offat: 0.17.0 -> 0.17.2 2024-04-20 02:51:25 +00:00
oh/oh-my-fish
oi
ol/olvid
om
on
op open-scq30: 1.11.0 -> 1.12.0 2024-04-21 13:31:22 +00:00
or orchard: 0.16.1 -> 0.17.0 2024-04-18 02:50:58 +00:00
os
ot oterm: 0.2.5 -> 0.2.6 2024-04-20 08:45:15 +00:00
ou
ov Merge pull request #297475 from astro/ovmf-chv 2024-04-19 13:27:37 -04:00
ow
pa
pd
pe
pf/pfft
pg
ph
pi Merge pull request #295638 from oluceps/add-pingtunnel 2024-04-21 19:51:51 +02:00
pk
pl
pm
pn
po Merge pull request #283228 from GetPsyched/pokemon-cursor 2024-04-22 00:12:41 +02:00
pp/ppsspp
pq
pr Merge pull request #305230 from r-ryantm/auto-update/primecount 2024-04-21 03:25:36 +00:00
pt
pu
pv/pvsneslib
pw
px/pxder treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessary 2024-04-17 13:34:05 -04:00
py pyright: repackage using buildNpmPackage 2024-04-18 23:11:39 +03:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr
qs
qt/qtractor
qu quarkus: 3.9.3 -> 3.9.4 2024-04-18 17:31:07 +00:00
r1/r10k
ra
rc
rd/rdwatool
re renode-unstable: 1.15.0+20240404gitbfa16ba07 -> 1.15.0+20240418git228a25674 2024-04-21 07:20:27 +00:00
ri rippkgs: add cdmistman as maintainer 2024-04-19 10:57:33 -04:00
rk/rkbin
rl/rl_json
rm
rn/rnd-name
ro
rp/rpcs3
rq/rqbit
rs
rt/rtg-tools
ru
rw/rwpspread
ry
s3
sa sandbar: init at 0.1 2024-04-19 12:49:42 +02:00
sb/sbom-utility
sc
sd
se sendme: 0.3.0 -> 0.5.0 2024-04-17 11:17:02 -06:00
sg/sgfutils
sh shopware-cli: 0.4.35 -> 0.4.36 2024-04-21 14:08:18 +00:00
si
sl
sm
sn snapcraft: init at 8.2.0 2024-04-18 19:06:42 +01:00
so Merge pull request #305214 from r-ryantm/auto-update/sopwith 2024-04-20 23:03:45 +02:00
sp
sq
sr
ss ssh-tpm-agent: Fix homepage link 2024-04-19 22:04:13 +02:00
st Merge pull request #303694 from panicgh/storcli 2024-04-18 01:48:26 +08:00
su Merge pull request #303375 from MDM23/update-surrealist 2024-04-18 11:35:53 +02:00
sv
sw swayosd: unstable-2023-09-26 -> 0-unstable-2024-04-15 2024-04-21 03:43:28 -04:00
sx
sy Merge pull request #255361 from RaitoBezarius/syncall 2024-04-21 12:39:11 +02:00
t-/t-rex
ta Merge pull request #303632 from mlaradji/add-taskwarrior-3 2024-04-19 13:24:37 +02:00
tc/tcsh
td/tdl
te Merge pull request #301145 from Anomalocaridid/ternimal 2024-04-21 17:03:19 +02:00
tg/tgpt
th
ti
tk tkey-ssh-agent: init at 1.0.0 2024-04-20 01:37:58 -04:00
tl
tm/tmuxifier
to tootik: 0.10.0 -> 0.10.2 2024-04-20 01:04:12 +00:00
tp
tr troubadix: 24.4.0 -> 24.4.1 2024-04-22 03:28:14 +00:00
tt/ttop
tu tuifimanager: 3.3.5 -> 4.0.0 2024-04-20 21:44:41 +02:00
tw/twitch-dl
tx/txr
ty
uc
ud
ue
ug ugrep-indexer: 0.9.6 -> 1.0.0 2024-04-19 02:53:58 +00:00
ui
um/umpire
un maintainers: remove KamilaBorowska 2024-04-21 22:26:12 +02:00
up
us/usql
ut
uu/uuu
uv/uv uv: 0.1.34 -> 0.1.35 2024-04-20 11:06:16 +02:00
uw/uwhoisd
ux/uxn uxn: unstable-2024-04-05 -> unstable-2024-04-15 2024-04-19 00:12:37 +00:00
va Merge pull request #287260 from benneti/vaults-071 2024-04-20 20:55:12 +02:00
vc
ve Merge pull request #303590 from mmarx/fix-mattermost-desktop-notifications 2024-04-20 19:42:43 +02:00
vg/vgm2x
vi
vl vlc-bittorrent: fix version 2024-04-21 18:56:13 +10:00
vo/voidmap
vu
vv/vvvvvv
wa waycheck: 1.2.0 -> 1.2.1 2024-04-22 02:05:17 -03:00
wb/wb32-dfu-updater
we
wh where-is-my-sddm-theme: 1.9.0 -> 1.9.1 2024-04-18 08:38:10 +00:00
wi wireproxy: 1.0.8 -> 1.0.9 2024-04-19 18:05:12 +03:00
wl
wo workout-tracker: 0.12.0 -> 0.13.4 2024-04-17 22:45:01 +00:00
wp/wp-cli
ws
wt/wtfis wtfis: 0.8.0 -> 0.9.0 2024-04-21 09:56:34 +00:00
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe
xf/xfs-undelete
xi
xm
xo
xp/xplr
xr/xr-hardware
xs
xw/xwayland-run
ya
yc/ycmd
ye
yg/yggdrasil
yj/yj
yo
ys/ysfx
yt ytdownloader: 3.17.3 -> 3.17.4 2024-04-21 11:47:06 +01:00
yu
za zapzap: 5.2.1 -> 5.3 2024-04-18 04:20:27 +00:00
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.130.7 -> 0.131.6 2024-04-17 23:47:18 +02:00
zi
zl/zluda
zo/zola
zp
zs
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;
}