nixpkgs/pkgs/by-name
éclairevoyant 064fe27cf1
Merge pull request #288687 from nu-nu-ko/nixos-navidrome-cleanup
nixos/navidrome: add user/group options, ensure dirs exist/are valid & format changes
2024-05-10 11:05:12 +00:00
..
_0/_0xpropo _0xpropo: 1.000 -> 1.100 2024-05-07 12:19:47 +00:00
_4
_6/_64gram _64gram: 1.1.19 -> 1.1.22 2024-05-08 11:11:22 +00:00
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac
ad adbtuifm: fix url 2024-05-08 20:00:00 +02:00
ae
af
ag/ags ags: format with nixfmt-rfc-style 2024-05-08 22:45:51 +05:30
ai
al
am
an antares: 0.7.23 -> 0.7.24 2024-05-08 23:59:36 +00:00
ao/aocl-utils
ap apostrophe: add aleksana as maintainers 2024-05-05 22:43:26 +08:00
ar Merge pull request #292150 from jopejoe1/aribb24 2024-05-10 11:03:55 +02:00
as async-profiler: 2.9 -> 3.0, migrate to by-name & modernize 2024-05-09 10:45:47 +02:00
at atac: fix build on darwin 2024-05-07 20:37:40 -04:00
au Merge pull request #307804 from r-ryantm/auto-update/autosuspend 2024-05-09 11:57:50 +08:00
av
aw
ax
ay
ba
bc/bc-ur
be beekeeper-studio: 4.1.13 -> 4.3.1 2024-05-04 15:45:26 +02:00
bi various: remove eclairevoyant from meta.maintainers 2024-05-09 16:51:37 +02:00
bk/bk
bl bluez-tools: unstable-2020-10-25 -> 0-unstable-2020-10-24 2024-05-04 19:44:19 +02:00
bm/bmake
bn/bngblaster
bo
bp/bpftop
br bruno: 1.16.0 -> 1.16.1 2024-05-05 07:17:58 +00:00
bs
bt btrfs-auto-snapshot: init at 2.0.4 2024-05-06 06:41:27 +03:00
bu
by
c-
c2
ca Merge pull request #309531 from uncenter/refactor/cargo-shear-cleanup 2024-05-08 08:19:39 +02:00
cb
cc
cd cdecl: 2.5 -> 2.5-unstable-2024-05-07, add check, refactor 2024-05-09 18:00:44 +02:00
ce centrifugo: 5.3.1 -> 5.3.2 2024-05-09 14:31:11 +00:00
cg
ch
ci
cl clash-verge-rev: 1.6.0 -> 1.6.1 2024-05-05 09:25:24 +08:00
cm
cn/cntb
co Merge pull request #309781 from r-ryantm/auto-update/codeium 2024-05-09 20:37:11 +02:00
cp Merge pull request #307591 from r-ryantm/auto-update/cpu-x 2024-05-04 16:17:52 +02:00
cr
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da Merge pull request #308863 from lucperkins/move-into-by-name 2024-05-06 22:56:00 +08:00
db/dbus-cpp
dc/dc3dd
dd
de
dg/dgoss
dh/dhcpig
di dillo: 3.0.5-unstable-2021-02-09 -> 3.1.0 2024-05-10 07:47:04 +00:00
dj/djent
dm dmarc-report-converter: 0.7.2 -> 0.8.0 2024-05-08 19:53:06 +00:00
dn/dns2tcp
do door-knocker: 0.4.4 -> 0.5.0 2024-05-10 06:20:23 +00:00
dp
dr/drone-scp
ds
dt
du
dv/dvb-apps
dx
dy
ea
eb
ec
ed
ei
ek/eksctl
el
em
en engage: update urls 2024-05-09 20:19:24 -07:00
ep/epub-thumbnailer
er
es
et
eu
ew/eww
ex
ez/eza eza: 0.18.14 -> 0.18.15 2024-05-09 14:53:00 +02:00
fa Merge pull request #309366 from ProggerX/add-fasole 2024-05-07 20:17:59 +08:00
fb/fbset
fc
fe
ff
fg/fgqcanvas
fi files-cli: 2.13.14 -> 2.13.27 2024-05-04 15:16:59 +00:00
fl flac123: set meta.platforms 2024-05-09 18:04:03 +02:00
fm
fn/fnott
fo
fr
fs
fu furnace: 0.6.2 -> 0.6.3 2024-05-07 18:07:31 +02:00
fv
fw/fwupd fwupd.passthru.test-firmware: unstable-2022-04-02 -> 0-unstable-2022-04-02 2024-05-04 19:44:25 +02:00
fy/fypp
fz fzf: 0.51.0 -> 0.52.0 2024-05-07 18:17:01 +02:00
g3/g3kb-switch
ga gamescope: 3.14.11 -> 3.14.13 2024-05-08 14:04:03 +02:00
gb/gbar
gc
ge
gf
gg/gg
gh gh-poi: 0.9.8 -> 0.9.10 2024-05-07 01:02:07 +00:00
gi Merge pull request #309996 from r-ryantm/auto-update/gittuf 2024-05-09 20:35:29 +02:00
gl
gm
gn
go Merge pull request #309294 from dawidd6/go-errorlint 2024-05-07 17:20:44 +08:00
gp
gr greenmask: 0.1.12 -> 0.1.13 2024-05-07 13:44:51 +00:00
gt
gu
gv/gvisor
gx/gxml
h8/h8mail
ha
hb/hb-honeypot
hd/hdrop
he
hi hieroglypic: fix darwin build 2024-05-05 19:47:59 +02:00
hj/hjson-go
ho home-manager: 0-unstable-2024-04-29 -> 0-unstable-2024-05-05 2024-05-06 05:02:45 +00:00
ht
hu hugo: 0.125.6 -> 0.125.7 2024-05-09 17:01:10 -04:00
hy various: remove eclairevoyant from meta.maintainers 2024-05-09 16:51:37 +02:00
i2/i2p i2p: 2.5.0 -> 2.5.1 2024-05-08 01:43:20 +00:00
i3 i3bar-river: 0.1.7 -> 0.1.8 2024-05-07 01:05:05 +00:00
ia
ic icnsify: init at 0.1.0 2024-05-05 21:12:30 -04:00
id
if/ifrextractor-rs
ig igvm-tooling: init at 1.5.0 2024-05-07 09:36:39 +02:00
ii
im imposm: init at 0.12.0 2024-05-08 19:01:08 +04:00
in
io/ioq3-scion
ip
ir ironbar: 0.15.0 -> 0.15.1 2024-05-06 05:28:18 +00:00
is/iscc
it
ja
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju
ka
kc
kd
ke
kg/kgeotag
ki kittysay: 0.5.0 -> 0.6.0 2024-05-08 01:42:49 +00:00
kl/klog-time-tracker
km
kn/knossosnet
ko kotlin-interactive-shell: init at 0.5.2 (#285902) 2024-05-05 23:10:30 +02:00
kp/kplex
kr
ks
kt
ku
kx/kxstitch
ky/kyverno-chainsaw
la Merge pull request #309296 from r-ryantm/auto-update/labelle 2024-05-05 22:35:25 +02:00
lb
lc
ld/ldproxy
le lexical: 0.6.0 -> 0.6.1 2024-05-04 23:52:52 +02:00
li limine: 7.4.1 -> 7.5.0 2024-05-07 02:23:18 +00:00
ll
lm Merge pull request #305308 from mksafavi/pkg/lms 2024-05-07 17:13:52 +08:00
ln/lngen
lo local-ai: 2.13.0 -> 2.14.0 2024-05-06 07:46:03 +02:00
lp
ls
lt/ltris
lu
lw/lwgrp
lx
lz
m2
ma Merge pull request #310429 from r-ryantm/auto-update/maa-assistant-arknights 2024-05-10 09:40:23 +02:00
mb
mc
md
me Merge pull request #309702 from r-ryantm/auto-update/meli 2024-05-09 20:39:28 +02:00
mf
mg
mi Merge pull request #309103 from fabaff/misconfig-mapper 2024-05-06 09:54:54 +02:00
mk
ml/mlx42
mo
mp
mq
ms
mu
my Merge pull request #306906 from r-ryantm/auto-update/mystmd 2024-05-04 15:57:33 +02:00
n2/n2
na navidrome: move to by-name 2024-05-10 21:16:30 +12:00
nb/nbtscan
nc
nd/ndstrim
ne nezha-agent: 0.16.5 -> 0.16.6 2024-05-05 00:32:06 +08:00
nf
ng
nh
ni nixos-anywhere: add missing get-facts script to output 2024-05-07 10:02:33 +02:00
nl
nm/nmap-parse
nn/nncp
no normcap: 0.5.4 -> 0.5.6 2024-05-08 22:15:33 +02:00
np
nr
ns
nt/ntfs2btrfs
nu
nv
nw
nx/nxengine-evo
oa
ob
oc
oe/oelint-adv
of offat: 0.17.3 -> 0.17.5 2024-05-08 11:08:06 +00:00
oh
oi
ol/olvid
om
on onevpl-intel-gpu: 23.4.3 -> 24.2.2 2024-05-08 07:59:20 +00:00
op openvr: 2.2.3 -> 2.5.1 2024-05-09 15:35:06 +02:00
or
os
ot
ou
ov
ow
pa Merge pull request #310062 from cyberus-technology/paperless-asn-qr-codes 2024-05-08 15:08:41 +02:00
pd
pe Revert "maintainers: remove patka" 2024-05-06 14:08:44 +02:00
pf/pfft
pg
ph phpdocumentor: add missing build input 2024-05-07 13:33:54 +02:00
pi
pk
pl
pm
pn
po Merge pull request #295652 from TomaSajt/portablemc 2024-05-10 14:44:25 +08:00
pp/ppsspp
pq
pr Merge pull request #305234 from r-ryantm/auto-update/primesieve 2024-05-06 23:05:00 +08:00
ps/ps_mem ps_mem: migrate to by-name 2024-05-10 05:39:49 +02:00
pt ptyxis: init at 46.1 2024-05-05 00:02:59 +08:00
pu
pv/pvsneslib
pw
px/pxder
py pyprland: 2.2.16 -> 2.2.17 2024-05-08 23:44:15 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr
qs
qt/qtractor
qu quickemu: 4.9.2 -> 4.9.4 2024-05-10 00:06:13 +01:00
r1/r10k
ra Merge pull request #309050 from lorenzleutgeb/radicle 2024-05-10 04:49:03 +00:00
rc rclip: 1.8.8 -> 1.8.10 2024-05-07 22:33:36 +00:00
rd/rdwatool
re Merge pull request #294110 from Naxdy/work/add-retrospy 2024-05-08 19:59:50 +08:00
ri river-bnf: unstable-2023-10-10 -> 0-unstable-2023-10-10 2024-05-04 19:44:27 +02:00
rk
rl/rl_json
rm
rn/rnd-name
ro
rp/rpcs3
rq/rqbit
rs
rt
ru
rw/rwpspread
ry
s0/s0ix-selftest-tool s0ix-selftest-tool: move to by-name 2024-05-05 18:46:50 -04:00
s3
sa sabnzbd: 4.3.0 -> 4.3.1 2024-05-08 21:42:12 +00:00
sb/sbom-utility
sc
sd
se seabird: 0.2.2 -> 0.3.2 2024-05-06 11:26:22 +02:00
sg/sgfutils
sh
si simdutf: 5.2.6 -> 5.2.8 2024-05-08 06:34:32 +00:00
sk sketchybar-app-font: 2.0.17 -> 2.0.18 2024-05-08 18:58:24 +00:00
sl slumber: fix darwin build 2024-05-07 17:25:08 +02:00
sm
sn snapcraft: 8.2.1 -> 8.2.5 2024-05-07 09:24:41 +00:00
so
sp Merge pull request #301730 from momeemt/spectral-language-server/init 2024-05-08 22:35:34 +09:00
sq
sr
ss
st stackit-cli: 0.3.0 -> 0.4.0 2024-05-07 07:28:24 +00:00
su
sv
sw
sx
sy syft: 1.3.0 -> 1.4.1 2024-05-10 02:14:00 +00:00
t-/t-rex
ta Merge pull request #307441 from adamcstephens/tabby 2024-05-08 20:25:57 -04:00
tc/tcsh
td
te tenki: 1.8.0 -> 1.9.0 2024-05-09 14:55:50 +00:00
tg/tgpt
th various: remove eclairevoyant from meta.maintainers 2024-05-09 16:51:37 +02:00
ti
tk
tl
tm/tmuxifier
to tootik: 0.10.3 -> 0.10.4 2024-05-04 16:23:22 +00:00
tp
tr
tt
tu tuifimanager: 4.0.5 -> 4.0.6 2024-05-10 06:00:11 +02:00
tw Merge pull request #308863 from lucperkins/move-into-by-name 2024-05-06 22:56:00 +08:00
tx/txr
ty typos-lsp: add comment 2024-05-04 23:00:26 +02:00
uc uclibc: 1.0.47 -> 1.0.48 2024-05-05 04:46:12 +00:00
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un Merge pull request #310148 from r-ryantm/auto-update/unciv 2024-05-09 09:31:51 -04:00
up Merge pull request #308863 from lucperkins/move-into-by-name 2024-05-06 22:56:00 +08:00
us ustr: migrate to by-name 2024-05-10 04:33:52 +02:00
ut
uu/uuu uuu: 1.5.179 -> 1.5.181 2024-05-04 23:02:06 +00:00
uv/uv uv: 0.1.39 -> 0.1.42 2024-05-09 12:43:53 +00:00
uw/uwhoisd
ux/uxn uxn: unstable-2024-04-15 -> 1.0-unstable-2024-05-06 2024-05-07 09:08:58 +00:00
va varia: 2024.3.20 -> 2024.5.7 2024-05-07 22:14:59 +09:00
vc
vd/vdhcoapp
ve vencord: 1.7.9 -> 1.8.0 2024-05-05 12:02:49 +00:00
vg/vgm2x
vi
vl
vo/voidmap
vu vunnel: 0.22.0 -> 0.22.2 2024-05-06 08:56:19 +00:00
vv/vvvvvv
wa Merge pull request #308863 from lucperkins/move-into-by-name 2024-05-06 22:56:00 +08:00
wb wbg: move to pkgs/by-name 2024-05-04 23:44:12 +02:00
we Merge pull request #309726 from r-ryantm/auto-update/weasis 2024-05-09 20:38:30 +02:00
wh
wi Merge pull request #237972 from mibmo/pkg/windows10-icons 2024-05-06 18:49:25 +02:00
wl Merge pull request #309789 from r-ryantm/auto-update/wlr-layout-ui 2024-05-08 22:18:21 +08:00
wo
wp
ws
wt
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe xemu: 0.7.120 -> 0.7.121 2024-05-07 04:31:23 +00:00
xf/xfs-undelete
xh/xhosts
xi
xl/xlights
xm xml-tooling-c: adopt, migrate to by-name, refactor 2024-05-08 18:34:49 +02:00
xn/xnlinkfinder
xo
xp xplr: 0.21.7 -> 0.21.8 2024-05-06 01:38:13 +00:00
xr/xr-hardware
xs
xw/xwayland-run
ya
yc/ycmd
ye
yg/yggdrasil
yj/yj
yo
ys/ysfx
yt Merge pull request #306630 from codebam/ytermusic 2024-05-08 19:59:31 +08:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze
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;
}