nixpkgs/pkgs/by-name
Atemu 3e4f96c930
Merge pull request #303165 from jopejoe1/ffmpeg/evc
ffmpeg_7: add support for MPEG-5 EVC en/decoding
2024-04-11 19:15:28 +02:00
..
_0/_0xpropo _0xpropo: init at 1.000 2024-04-11 01:08:00 -04:00
_4/_4th
_6/_64gram _64gram: add nix-update-script 2024-04-10 18:55:12 +05:30
_9/_9base
a4/a4
a5/a52dec
aa aaaaxy: 1.5.42 -> 1.5.54 2024-04-09 00:20:53 +00:00
ab/aba
ac
ad
ae
af
ag/ags
ai
al
am
an anchor: init at 0.29.0 2024-04-10 08:31:42 +08:00
ao/aocl-utils
ap
ar ark-pixel-font: 2023.11.26 -> 2024.04.05 2024-04-08 19:17:53 +02:00
as ast-grep: 0.20.2 -> 0.20.3 2024-04-08 06:44:36 +00:00
at
au
av
aw
ax/axmldec
ay
ba bashly: 1.1.1 -> 1.1.10 2024-04-10 15:23:51 +02:00
bc/bc-ur
be
bi
bk/bk
bl
bm/bmake
bn/bngblaster
bo
bp/bpftop bpftop: 0.4.0 -> 0.4.1 2024-04-08 01:03:58 +00:00
br brainstem: init at 2.10.5 2024-04-09 17:01:05 +03:00
bs
bt/bt-migrate
bu
by
c-
c2 Merge pull request #292020 from ok-nick/c2patool 2024-04-09 14:34:47 +02:00
ca Merge pull request #302673 from r-ryantm/auto-update/cargo-expand 2024-04-08 22:40:24 +00:00
cb
cc/ccache
cd
ce Merge pull request #302678 from r-ryantm/auto-update/centrifugo 2024-04-08 21:29:41 -04:00
cg
ch Merge pull request #299048 from ByteSudoer/init-chess-tui 2024-04-11 16:38:18 +08:00
ci
cl
cm
cn/cntb
co Merge pull request #276491 from auroraanna/colstr 2024-04-10 13:58:29 +02:00
cp
cr
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db/dbus-cpp
dc/dc3dd
dd
de dep-scan: format with nixfmt 2024-04-10 12:42:22 +02:00
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn/dns2tcp
do Merge pull request #301200 from r-ryantm/auto-update/dotslash 2024-04-09 15:01:20 +02:00
dp/dpp
dr/drone-scp
ds
dt/dtcmp
du
dv/dvb-apps
dx
dy
ea/easyeasm
eb
ec
ed
ei eigenlayer: 0.6.3 -> 0.7.0 2024-04-08 08:33:11 +00:00
ek/eksctl
el
em
en
ep/epub-thumbnailer
er
es
et etlegacy: fix binaries wrappers 2024-04-09 22:47:07 +02:00
eu
ex
ez/eza
fa
fb/fbset
fc
fe fernglas: init at 0.2.1 2024-04-10 00:55:23 +02:00
ff
fi files-cli: 2.12.54 -> 2.12.56 2024-04-10 13:01:51 -07:00
fl flarectl: 0.92.0 -> 0.93.0 2024-04-10 12:56:36 +00:00
fm
fn/fnott
fo Merge pull request #301383 from emilylange/forgejo-runner 2024-04-10 17:43:41 +02:00
fr Francis: init at 1.1.0 (#298182) 2024-04-09 23:37:20 +08:00
fs
fu/fuchsia-cursor
fv
fw/fwupd
fy/fypp
fz/fzf-make
g3/g3kb-switch
ga Merge pull request #299566 from getchoo/pkgs/garnet/init 2024-04-09 19:24:18 +08:00
gb/gbar
gc
ge
gf
gg/gg
gh
gi gitu: 0.13.1 -> 0.15.0 2024-04-11 04:45:01 +00:00
gl
gm gmid: migrate to by-name 2024-04-10 19:47:15 +04:00
gn
go go-critic: 0.11.2 -> 0.11.3 2024-04-10 00:56:27 +00:00
gp
gr
gt
gu guix: add patch for CVE-2024-27297 2024-04-10 07:30:37 +02:00
gv/gvisor gvisor: 20240311.0-unstable-2024-03-25 -> 20240401.0 2024-04-07 23:14:54 +02:00
gx/gxml
h8/h8mail
ha Merge pull request #283881 from apraga/hap-py-0.3.15 2024-04-08 10:28:01 +02:00
hd/hdrop
he hermitcli: 0.39.0 -> 0.39.1 2024-04-10 13:06:26 +00:00
hi
hj/hjson-go
ho
ht
hu
hy Merge pull request #302708 from donovanglover/hyprdim-update 2024-04-10 20:30:01 -04:00
i2/i2p i2p: move to by-name 2024-04-08 22:32:27 +08:00
i3
ia
ic
id
if/ifrextractor-rs
ig igir: 2.6.1 -> 2.6.2 2024-04-07 13:02:05 +00:00
ii
im
in Merge pull request #301712 from adamcstephens/incus/6 2024-04-08 23:25:58 -04:00
io/ioq3-scion
ip
ir/ironbar
it
ja
jd/jdt-language-server
je
ji
jj/jj
jn
jo
js/jsoncons
ju justbuild: Fix build 2024-04-09 20:05:23 +02:00
ka
kc kcl-cli: init at 0.8.5 2024-04-09 14:54:35 +08:00
kd/kdsingleapplication
ke
kg/kgeotag
ki
kl/klog-time-tracker
km
kn/knossosnet
ko Merge pull request #301090 from ByteSudoer/init-koji 2024-04-09 01:17:43 +08:00
kp/kplex
kr Merge pull request #285177 from lelgenio/krita-plugin-gmic-package 2024-04-07 21:42:25 +02:00
ks
kt
ku
kx/kxstitch
ky/kyverno-chainsaw
la
lb
lc/lcab
ld/ldproxy
le
li Merge pull request #302174 from JohnRTitor/lightningcss 2024-04-10 08:59:22 +02:00
ll llama-cpp: 2589 -> 2636 2024-04-09 21:33:46 +00:00
lm/lmstudio
ln/lngen
lo Merge pull request #302350 from ck3d/localai-config-cuda 2024-04-07 21:12:36 +00:00
lp
ls
lt/ltris
lu lubelogger: 1.2.9 -> 1.3.0 2024-04-09 03:47:10 +00:00
lw/lwgrp
lx lxd-ui: add nix-update-script and meta.changelog 2024-04-11 08:11:00 +01:00
lz
m2
ma maa-assistant-arknights: correct license metadata 2024-04-08 20:39:37 +02:00
mb
mc mcumgr-client: init at 0.0.4 2024-04-07 16:37:59 -03:00
md
me
mf
mg/mgitstatus
mi Merge pull request #301442 from Sigmanificient/mini-calc 2024-04-10 22:20:34 +08:00
mk
ml/mlx42
mo
mp/mpifileutils
mq
ms
mu
my mystmd: 1.1.50 -> 1.1.52 2024-04-08 23:16:44 +00:00
n2/n2
na namespace-cli: 0.0.354 -> 0.0.355 2024-04-11 01:24:53 +00:00
nb/nbtscan
nc
nd/ndstrim
ne nekoray: init at 3.26 (#300794) 2024-04-10 09:48:55 +08:00
nf/nfft
ng/ngrid
nh nh: 3.5.7 -> 3.5.10 2024-04-09 22:27:51 +00:00
ni
nl
nm/nmap-parse
nn/nncp
no
np
nr
ns
nt/ntfs2btrfs
nu
nv
nw nwg-hello: 0.1.8 -> 0.1.9 2024-04-08 11:54:53 +00:00
oa
ob
oc
oe/oelint-adv
of offat: format with nixfmt 2024-04-09 11:14:45 +02:00
oh/oh-my-fish
oi
ol/olvid
om/omniorbpy
on
op licenses: rename apsl{10,20} -> apple-psl{10,20} 2024-04-08 20:39:37 +02:00
or
os
ot
ou
ov
ow
pa Merge pull request #287984 from Aleksanaa/pablodraw 2024-04-10 16:46:20 +02:00
pd
pe
pf/pfft
pg
ph phpunit: 11.1.0 -> 11.1.1 2024-04-07 19:30:56 +02:00
pi Merge pull request #295147 from mattpolzin/add-pixel-code-font 2024-04-10 22:11:51 +08:00
pk pkcs11-provider: init at 0.3 2024-04-09 23:18:09 -07:00
pl
pm
pn
po
pp/ppsspp
pq
pr Merge pull request #302315 from mweinelt/django-countries-7.6 2024-04-08 21:28:16 +02:00
pt
pu pupdate: 3.9.1 -> 3.10.1 2024-04-08 02:56:22 +02:00
pv/pvsneslib
pw pwndbg: 2022.12.19 -> 2024.02.14 2024-04-08 09:57:49 +02:00
px/pxder
py pyprland: 2.1.4 -> 2.2.3 2024-04-08 17:23:31 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qr qrtool: 0.10.6 -> 0.10.7 2024-04-09 03:27:42 +00:00
qs
qt/qtractor
qu quarkus: 3.9.1 -> 3.9.2 2024-04-07 14:16:23 +00:00
ra rabbit: 1.0.1 -> 1.0.2 2024-04-07 14:03:31 +00:00
rc
rd/rdwatool
re Merge pull request #302083 from anthonyroussel/add-realmd-package 2024-04-10 04:47:52 -05:00
ri
rk/rkbin
rl/rl_json
rm
rn/rnd-name
ro rockcraft: 1.2.2 -> 1.2.3 2024-04-07 13:56:58 +00:00
rp/rpcs3
rq/rqbit
rs
rt
ru rustdesk-flutter: 1.2.3-unstable-2024-02-11 -> 1.2.3-2 2024-04-08 10:34:50 +02:00
rw/rwpspread
ry Merge pull request #271342 from PhDyellow/ryzen_smu 2024-04-12 00:15:45 +08:00
s3
sa
sc scrutiny: 0.8.0 -> 0.8.1 2024-04-11 08:02:56 +01:00
sd
se
sg/sgfutils
sh shanggu-fonts: init at 1.020 2024-04-11 11:03:02 +08:00
si Merge pull request #302512 from r-ryantm/auto-update/simplotask 2024-04-09 09:50:37 +04:00
sl
sm
sn
so solana-cli: install shell completions 2024-04-11 16:18:59 +08:00
sp spicetify-cli: 2.36.2 -> 2.36.4 2024-04-09 19:49:12 +00:00
sq
sr
ss
st Merge pull request #302967 from r-ryantm/auto-update/steampipe 2024-04-10 17:17:24 +00:00
su
sv
sw
sx
sy Merge pull request #301741 from pmiddend/syslogng-build-fix 2024-04-07 19:42:36 +00:00
t-/t-rex
ta
tc/tcsh
td/tdl
te tenv: 1.4.0 -> 1.7.0 2024-04-09 10:02:38 +00:00
tg/tgpt
th thcrap-steam-proton-wrapper: init at 0-unstable-2024-04-03 2024-04-09 12:37:40 +02:00
ti
tk/tkdiff
tl
tm/tmuxifier
to tootik: init at 0.9.6 2024-04-10 22:23:38 +04:00
tp Merge pull request #302604 from r-ryantm/auto-update/tpnote 2024-04-09 08:29:36 +02:00
tr
tt/ttop
tu
tx/txr
ty Merge pull request #302857 from Enter-tainer/mgt/typst-preview-v0.11.4 2024-04-11 10:36:28 +02:00
uc
ud
ue
ug Merge pull request #287467 from oo-infty/init-ugm 2024-04-11 09:45:52 +02:00
ui uiua: 0.10.1 -> 0.10.2 2024-04-09 23:51:35 +02:00
um/umpire
un
up
us/usql
ut
uu/uuu
uv/uv
uw/uwhoisd
ux/uxn
va
vc
ve
vg/vgm2x
vi
vl
vu
vv/vvvvvv
wa walker: init at 0.0.68 (#296165) 2024-04-10 16:57:56 +08:00
wb/wb32-dfu-updater
we
wh where-is-my-sddm-theme: add meta.platforms 2024-04-09 11:09:59 +05:00
wi
wl
wo
wp/wp-cli
ws wslu: 4.1.2 -> 4.1.3 2024-04-11 03:19:22 +00:00
wt/wtfis
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe xeve: init at 0.4.3 2024-04-11 16:50:54 +02:00
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
yu
za
zb/zbus-xmlgen
zc/zcfan
ze
zi
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;
}