nixpkgs/pkgs/by-name
2024-05-13 22:42:40 +05:30
..
_0/_0xpropo
_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 affine: 0.13.3 -> 0.14.3 2024-05-10 16:47:12 -03:00
ag/ags ags: format with nixfmt-rfc-style 2024-05-08 22:45:51 +05:30
ai
al alephone-infinity: 20240119 -> 20240510 2024-05-11 13:49:51 +00:00
am
an ananicy-rules-cachyos: add unstable update script 2024-05-13 22:42:40 +05:30
ao/aocl-utils
ap
ar arduino-ide: Fix .desktop file 2024-05-11 11:31:18 +08: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
bi various: remove eclairevoyant from meta.maintainers 2024-05-09 16:51:37 +02:00
bk/bk
bl blockbench: 4.9.4 -> 4.10.0 2024-05-10 00:17:03 +00:00
bm/bmake
bn/bngblaster
bo
bp/bpftop
br bruno: 1.16.1 -> 1.17.0 2024-05-10 12:59:10 +02:00
bs
bt
bu
by
c-
c2 c2fmzq: 0.4.19 -> 0.4.20 2024-05-10 00:44:41 +00:00
ca Merge pull request #310670 from gepbird/cargo-geiger-fix 2024-05-11 10:48:58 +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
cm
cn/cntb
co Merge pull request #310054 from RAVENz46/origin/coppwr 2024-05-10 20:07:43 +02:00
cp
cr
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db/dbus-cpp
dc/dc3dd
dd
de
dg/dgoss
dh/dhcpig
di discord-gamesdk: format with nixfmt-rfc-style 2024-05-10 10:46:44 -07: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
fb/fbset
fc
fe
ff
fg/fgqcanvas
fi
fl flac123: set meta.platforms 2024-05-09 18:04:03 +02:00
fm
fn/fnott
fo fontfor: 0.4.1 -> 0.4.3, modernize 2024-05-11 00:06:10 +02:00
fr
fs
fu furnace: 0.6.2 -> 0.6.3 2024-05-07 18:07:31 +02:00
fv
fw/fwupd
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
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 #304480 from pbek/feature/go-passbolt-cli 2024-05-11 20:28:04 +08:00
gp
gr Merge pull request #310685 from kiike/zhf/grype 2024-05-11 11:13:44 +02:00
gt
gu
gv/gvisor
gx/gxml
h8/h8mail
ha Merge pull request #310156 from wangxiaoerYah/master 2024-05-11 17:06:03 +08:00
hb/hb-honeypot
hd/hdrop
he
hi
hj/hjson-go
ho
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
ia
ic
id
if/ifrextractor-rs
ig
ii
im imposm: init at 0.12.0 2024-05-08 19:01:08 +04:00
in incus: 6.0.0 -> 6.1.0 2024-05-09 10:05:00 -04:00
io/ioq3-scion
ip
ir
is/iscc
it
ja
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju
ka
kc kcl-cli: 0.8.7 -> 0.8.8 2024-05-10 15:36:00 +00:00
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 komac: 2.1.0 -> 2.2.1 2024-05-08 11:01:08 +09:00
kp/kplex
kr
ks
kt
ku
kx/kxstitch
ky/kyverno-chainsaw
la labwc: 0.7.1 -> 0.7.2 2024-05-11 01:13:10 +00:00
lb
lc
ld/ldproxy
le
li
ll
lm
ln/lngen
lo
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 #310266 from r-ryantm/auto-update/mediainfo-gui 2024-05-10 17:43:59 +00:00
mf
mg
mi
mk
ml/mlx42
mo
mp
mq
ms
mu
my
n2/n2
na navidrome: move to by-name 2024-05-10 21:16:30 +12:00
nb/nbtscan
nc
nd/ndstrim
ne Merge pull request #310206 from TomaSajt/nekoray 2024-05-10 15:04:35 -06:00
nf
ng
nh nh: 3.5.14 -> 3.5.15 2024-05-11 04:23:45 +00:00
ni
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 Merge pull request #310534 from jlesquembre/jl/openfga 2024-05-10 21:42:50 +02:00
or
os
ot oterm: use current version of typer 2024-05-10 17:05:01 +03:00
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
pf/pfft
pg
ph
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 #310584 from NixOS/pmd_102 2024-05-10 23:39:49 +02:00
ps/ps_mem ps_mem: migrate to by-name 2024-05-10 05:39:49 +02:00
pt
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
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.0 -> 4.3.1 2024-05-08 21:42:12 +00:00
sb/sbom-utility sbom-utility: 0.15.0 -> 0.16.0 2024-05-10 03:08:03 +00:00
sc screenly-cli: 0.2.5 -> 0.2.6 2024-05-10 10:13:11 +01:00
sd
se
sg/sgfutils
sh Merge pull request #310766 from r-ryantm/auto-update/shopware-cli 2024-05-11 09:28:48 +00:00
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
so
sp Merge pull request #301730 from momeemt/spectral-language-server/init 2024-05-08 22:35:34 +09:00
sq
sr
ss
st
su
sv
sw
sx
sy Merge pull request #310654 from r-ryantm/auto-update/systemctl-tui 2024-05-10 22:51:30 +02:00
t-/t-rex
ta Merge pull request #305650 from mlaradji/update-taskwarrior3-3.0.1 2024-05-11 11:35:26 +02: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
tp
tr
tt
tu Merge pull request #307508 from Sigmanificient/tuifi-experimental-dnd 2024-05-11 07:15:27 +10:00
tw
tx/txr
ty
uc
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
us ustr: migrate to by-name 2024-05-10 04:33:52 +02:00
ut
uu/uuu
uv/uv uv: 0.1.39 -> 0.1.42 2024-05-09 12:43:53 +00:00
uw/uwhoisd
ux/uxn
va
vc
vd/vdhcoapp
ve vencord: 1.8.0 -> 1.8.2 2024-05-09 23:04:30 +02:00
vg/vgm2x
vi
vl
vo/voidmap
vu
vv/vvvvvv
wa
wb
we Merge pull request #309726 from r-ryantm/auto-update/weasis 2024-05-09 20:38:30 +02:00
wh
wi
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
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
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 zed-editor: 0.133.7 -> 0.134.4 2024-05-10 16:39:40 +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;
}