nixpkgs/pkgs/by-name
2024-05-18 04:04:08 -04:00
..
_0/_0xpropo
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac
ad Merge pull request #311360 from StarGate01/adafruit-nrfutil 2024-05-13 17:15:46 +02:00
ae
af
ag/ags
ai
al alephone: 1.8 -> 1.8.1 2024-05-16 11:50:28 +02:00
am
an Merge pull request #309594 from chpatrick/anyk-3.33 2024-05-16 23:42:37 +02:00
ao/aocl-utils
ap
ar Merge pull request #311774 from DontEatOreo/update-arc-browser 2024-05-15 19:47:03 -04:00
as ast-grep: 0.21.4 -> 0.22.3 2024-05-14 19:25:04 +00:00
at atlauncher: 3.4.36.3 -> 3.4.36.4 (#311019) 2024-05-12 21:41:35 +00:00
au Merge pull request #309666 from r-ryantm/auto-update/audio-sharing 2024-05-13 23:26:34 +02:00
av
aw
ax
ay
ba badkeys: init at 0.0.10 (#311128) 2024-05-12 23:56:56 +00:00
bc bcc: migrate to by-name 2024-05-12 19:05:44 +09:00
bd/bdf2ttf bdf2ttf: init at 2.0-unstable-2016-07-03 2024-05-15 18:08:38 +02:00
be bevelbar: 22.06 -> 23.08 2024-05-13 00:07:14 +00:00
bi Merge pull request #309673 from r-ryantm/auto-update/bitmagnet 2024-05-15 23:29:45 +10:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo bombsquad: init at 1.7.34 2024-05-15 22:03:22 +05:30
bp bpftrace: migrate to by-name 2024-05-12 19:05:44 +09:00
br
bs
bt
bu buckle: add darwin dependencies 2024-05-14 00:13:06 +08:00
by
c2
c-
ca cargo-expand: 1.0.86 -> 1.0.87 2024-05-15 04:16:15 +00:00
cb
cc
cd
ce
cg
ch Merge pull request #279260 from SuperSamus/multiPkgs-false-remove 2024-05-14 09:59:43 +02:00
ci cimg: 3.3.5 -> 3.3.6 2024-05-17 02:45:32 +00:00
cl clairvoyant: 3.1.3 -> 3.1.7 2024-05-13 21:22:53 +02:00
cm
cn/cntb
co Merge pull request #311488 from r-ryantm/auto-update/codux 2024-05-14 01:33:19 +00:00
cp
cr Merge pull request #308951 from Sigmanificient/criterion 2024-05-12 20:45:53 +02:00
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db dbeaver-bin: init at 24.0.4 2024-05-16 21:14:59 +02:00
dc/dc3dd
dd
de
dg/dgoss
dh/dhcpig
di diffedit3: init at 0.4.0 2024-05-14 07:30:40 -05:00
dj/djent
dm
dn/dns2tcp
do dotnet-outdated: 4.6.1 -> 4.6.2 2024-05-15 13:38:31 +00:00
dp
dr/drone-scp
ds
dt
du dumbpipe: 0.7.0 -> 0.8.0 2024-05-14 01:35:34 +00:00
dv/dvb-apps
dx
dy
e1/e1s e1s: init at 1.0.34 2024-05-12 18:08:00 +02:00
ea
eb
ec
ed
ee/eepers eepers: init at 1.3 2024-05-16 16:37:41 +02:00
ei eigenlayer: 0.7.3 -> 0.8.0 2024-05-15 08:04:17 +00:00
ek/eksctl
el
em
en Merge pull request #309018 from azahi/endlessh-go-update 2024-05-12 20:09:09 +03:00
ep/epub-thumbnailer
er errands: 45.1.9 -> 46.1 2024-05-14 21:44:55 +02:00
es
et
eu
ew/eww
ex
ez/eza eza: 0.18.15 -> 0.18.16 2024-05-16 16:44:51 +02:00
fa fastfetch: 2.11.5 -> 2.12.0 2024-05-14 10:53:35 +00:00
fb/fbset
fc
fe
ff Merge pull request #288973 from ryze312/ff2mpv-rust-update 2024-05-12 21:47:00 +02:00
fg/fgqcanvas
fi files-cli: 2.13.27 -> 2.13.41 2024-05-12 06:48:35 +00:00
fl flashmq: migrate to by-name 2024-05-16 17:31:06 +04:00
fm
fn/fnott
fo fooyin: init at 0.4.1 (#311879) 2024-05-16 14:57:02 +02:00
fr Merge pull request #309347 from onny/opencascade-update 2024-05-15 23:17:37 +00:00
fs
ft/fte fte: modernize, migrate to by-name 2024-05-15 09:21:57 +02:00
fu fusuma: move to pkgs/by-name 2024-05-16 21:10:00 +05:30
fv
fw/fwupd
fy/fypp
fz fzf: 0.52.0 -> 0.52.1 2024-05-14 12:17:45 +10:00
g3/g3kb-switch
ga gamescope: 3.14.13 -> 3.14.15 2024-05-16 09:31:07 +00:00
gb gbsplay: modernize, migrate to by-name 2024-05-15 09:21:56 +02:00
gc
ge
gf
gg/gg
gh
gi Merge pull request #311714 from isabelroses/gitprompt-rs/by-name 2024-05-16 22:40:19 +08:00
gl Merge pull request #306231 from jakuzure/glasskube-0-2-1 2024-05-14 01:17:40 +02:00
gm gmetronome: 0.3.3 -> 0.3.4 2024-05-12 12:27:59 +00:00
gn
go Merge pull request #310646 from nyabinary/goofcord 2024-05-17 09:27:36 +08:00
gp
gr
gt
gu gungnir: init at 1.0.8 2024-05-15 11:50:03 +02:00
gv/gvisor
gx/gxml
h8/h8mail
ha hare: remove shell wrapping overhead 2024-05-16 10:14:14 -03:00
hb/hb-honeypot
hd/hdrop
he hexedit: migrate to by-name, refactor 2024-05-15 09:21:57 +02:00
hi
hj/hjson-go
ho Merge pull request #311548 from r-ryantm/auto-update/home-manager 2024-05-14 21:20:39 +02:00
ht httpie-desktop: init at 2024.1.2 (#311163) 2024-05-13 08:11:59 +00:00
hu hugo: 0.125.7 -> 0.126.1 2024-05-15 19:49:18 +00:00
hy hyprnome: 0.2.0 -> 0.3.0 2024-05-14 20:43:22 -04:00
i2/i2p
i3 i3bar-river: 0.1.8 -> 0.1.9 2024-05-14 13:58:39 +00:00
ia
ic
id
if/ifrextractor-rs
ig Merge pull request #309853 from malt3/fix/igvm-tooling-determinism 2024-05-16 15:10:50 +02:00
ii
im
in Merge pull request #308924 from r-ryantm/auto-update/intune-portal 2024-05-12 20:24:25 +02:00
io/ioq3-scion
ip
ir
is/iscc
it
iz/izrss izrss: init at 0.0.5 2024-05-15 13:41:13 +02:00
ja jailer: init at 16.1.4 2024-05-14 15:56:00 +02:00
jd/jdt-language-server
je treewide: fix use of extraPkgs in AppImages 2024-05-13 20:35:07 +02:00
ji
jj/jj
jn
jo
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju just: 1.25.2 -> 1.26.0 2024-05-14 09:20:37 +02:00
ka katawa-shoujo-re-engineered: 1.4.4 -> 1.4.7 2024-05-15 00:36:45 +03:00
kc kcl-cli: 0.8.8 -> 0.8.9 2024-05-16 05:31:18 +00:00
kd
ke keto: init at 0.13.0-alpha.0 2024-05-13 11:41:49 +02:00
kg/kgeotag
ki
kl/klog-time-tracker
km
kn/knossosnet
ko kor: 0.3.8 -> 0.4.0 2024-05-13 01:47:19 +00:00
kp/kplex
kr
ks
kt
ku
kx kx-aspe-cli: init at 0-unstable-2024-04-06 2024-05-14 07:12:26 +02:00
ky kyverno-chainsaw: 0.2.0 -> 0.2.1 2024-05-16 01:18:02 +00:00
la
lb
lc
ld/ldproxy
le lefthook: 1.6.10 -> 1.6.11 2024-05-13 18:31:08 +00:00
li Merge pull request #312206 from r-ryantm/auto-update/litmusctl 2024-05-16 22:05:08 +02:00
ll llama-cpp: 2843 -> 2901 2024-05-16 10:09:34 +00:00
lm treewide: fix use of extraPkgs in AppImages 2024-05-13 20:35:07 +02:00
ln/lngen
lo
lp
ls
lt/ltris
lu Merge pull request #311656 from r-ryantm/auto-update/lunar-client 2024-05-15 13:35:50 +02:00
lw/lwgrp
lx Merge pull request #309462 from lebensterben/lxgw-wenkai-tc 2024-05-13 11:34:43 +02:00
lz
m2
ma mautrix-meta: 0.3.0 -> 0.3.1 2024-05-17 03:19:51 +00:00
mb
mc
md
me mermaid-cli: 10.8.0 -> 10.9.0 2024-05-15 11:52:45 +02:00
mf
mg
mi Merge pull request #311743 from Coca162/miracode-1.0 2024-05-17 11:17:54 +08:00
mk
ml/mlx42
mo Merge pull request #312265 from Aleksanaa/mousam 2024-05-16 22:25:01 +02:00
mp
mq treewide: fix use of extraPkgs in AppImages 2024-05-13 20:35:07 +02:00
ms
mu
my mysql84: init at 8.4.0 (#309374) 2024-05-12 17:51:57 +00:00
n2/n2
na namespace-cli: 0.0.360 -> 0.0.369 2024-05-12 10:48:23 +00:00
nb/nbtscan
nc
nd/ndstrim
ne neovim: Update bundled tree-sitter parsers 2024-05-17 10:40:05 +02:00
nf
ng
nh
ni
nl
nm/nmap-parse
nn/nncp
no Merge pull request #307090 from 6543-forks/nodeinfo 2024-05-14 16:08:12 +08:00
np
nr Merge pull request #279260 from SuperSamus/multiPkgs-false-remove 2024-05-14 09:59:43 +02:00
ns
nt/ntfs2btrfs
nu
nv
nw
nx/nxengine-evo
oa
ob
oc
oe/oelint-adv
of
oh oh-my-posh: 19.27.0 -> 19.29.0 2024-05-14 15:02:04 +00:00
oi
ol ollama: migrate to pkgs/by-name 2024-05-18 04:04:08 -04:00
om omnictl: 0.34.0 -> 0.35.0 2024-05-13 19:49:02 +00:00
on onagre: moved to pkgs/by-name 2024-05-13 12:00:58 +02:00
op openvas-scanner: 23.2.0 -> 23.2.1 2024-05-14 14:36:15 +00:00
or
os
ot
ou
ov
ow
pa Merge pull request #310468 from brsvh/add/parinfer-rust-emacs 2024-05-16 23:29:44 +08:00
pd
pe
pf/pfft
pg
ph phel: 0.12.0 -> 0.13.0 2024-05-14 02:27:13 +00:00
pi
pk
pl
pm
pn pnpm-shell-completion: 0.5.3 -> 0.5.4 2024-05-15 17:06:07 +00:00
po Merge pull request #309001 from r-ryantm/auto-update/poethepoet 2024-05-12 20:26:54 +02:00
pp/ppsspp
pq
pr Merge pull request #311916 from wegank/pretalx-plugins-init 2024-05-15 21:41:03 +02:00
ps/ps_mem
pt ptyxis: 46.1 -> 46.2 2024-05-13 14:49:07 +00:00
pu
pv/pvsneslib
pw
px/pxder
py pyprland: 2.2.17 -> 2.2.20 2024-05-15 20:21:33 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr
qs
qt/qtractor
qu quarkus: 3.10.0 -> 3.10.1 2024-05-16 02:39:52 +00:00
r1/r10k
ra radicle-node: 1.0.0-rc.8 → 1.0.0-rc.9 2024-05-16 17:43:47 +02:00
rc
rd/rdwatool
re Merge pull request #311439 from pluiedev/zhf-24.05/renpy 2024-05-14 00:06:20 +00:00
rh/rHttp rHttp: init at unstable-2024-04-28 (#311116) 2024-05-13 08:13:34 +00:00
ri ripunzip: 1.1.0 -> 1.2.1 2024-05-15 14:52:41 +00:00
rk
rl/rl_json
rm rmfakecloud: migrate to by-name 2024-05-12 19:05:43 +09:00
rn/rnd-name
ro rofimoji: 6.2.0 -> 6.3.1 2024-05-11 21:56:25 +00:00
rp/rpcs3
rq/rqbit
rs
rt
ru
rw/rwpspread
ry ryujinx: 1.1.1281 -> 1.1.1298 2024-05-12 11:22:43 +00:00
s0/s0ix-selftest-tool
s3
sa sarasa-gothic: 1.0.11 -> 1.0.12 2024-05-13 03:14:34 +00:00
sb/sbom-utility
sc scion: 0.10.0 -> 0.11.0 2024-05-16 13:13:41 +00:00
sd
se sesh: 1.1.0 -> 1.1.1 2024-05-16 16:22:13 +00:00
sg/sgfutils
sh
si treewide: fix use of extraPkgs in AppImages 2024-05-13 20:35:07 +02:00
sk
sl slumber: 1.1.0 -> 1.2.1 (#310994) 2024-05-12 21:57:02 +00:00
sm smartgithg: 23.1.2 -> 23.1.3 2024-05-13 06:20:18 +02:00
sn snipe-it: 6.3.4 -> 6.4.1 2024-05-14 16:31:36 +00:00
so
sp spade: 0.7.0 -> 0.8.0 2024-05-15 01:02:52 +02:00
sq
sr
ss
st Merge pull request #309569 from DontEatOreo/update-stats 2024-05-16 17:58:57 -04:00
su surrealdb: 1.4.2 -> 1.5.0 2024-05-14 16:12:55 +00:00
sv
sw
sx
sy symfony-cli: add build date 2024-05-13 15:56:52 +02:00
t-/t-rex
ta tabby: 0.11.0 -> 0.11.1 2024-05-16 12:34:00 +00:00
tc/tcsh
td
te tenv: 1.10.1 -> 1.11.0 2024-05-15 15:30:52 +00:00
tg/tgpt
th
ti tiny-dfr: init at 0.2.0 2024-05-15 16:54:57 +02:00
tk tkdiff: 5.6 -> 5.7 2024-05-12 05:01:35 +00:00
tl
tm/tmuxifier
to torrentstream: 1.0.1.6 -> 1.0.1.11 (#311109) 2024-05-13 00:02:11 +00:00
tp
tr tracexec: init at 0.2.2 2024-05-15 23:30:07 +02:00
tt
tu
tw
tx/txr
ty
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un Merge pull request #312007 from r-ryantm/auto-update/unciv 2024-05-17 02:18:13 +04:00
up upsun: sort meta attributes 2024-05-15 10:59:37 +02:00
us usql: 0.18.1 -> 0.19.1 (#311166) 2024-05-12 23:50:04 +00:00
ut
uu/uuu
uv/uv uv: 0.1.42 -> 0.1.44 2024-05-15 21:54:50 +00:00
uw/uwhoisd
ux uxn: 1.0-unstable-2024-05-06 -> 1.0-unstable-2024-05-10 2024-05-14 21:31:47 +00:00
va Merge pull request #309313 from arthsmn/valuta 2024-05-12 20:46:42 +02:00
vc
vd/vdhcoapp
ve Merge pull request #310696 from getchoo/pkgs/vesktop/noSystem 2024-05-16 20:57:33 +03:00
vg/vgm2x
vi vieb: 11.0.0 -> 12.0.0 2024-05-16 00:25:17 -04:00
vl
vo/voidmap
vu vunnel: 0.22.2 -> 0.23.0 2024-05-14 05:35:47 +00:00
vv/vvvvvv
wa wakatime: migrate to by-name 2024-05-16 13:55:22 +02:00
wb
we
wh whatsapp-emoji-font: 2.24.2.76-1 -> 2.24.8.85-1 2024-05-14 18:27:12 +00:00
wi wireguard-vanity-keygen: 0.0.8 -> 0.0.9 2024-05-12 15:40:34 +00:00
wl
wo workshop-runner: init at 0.1.5 2024-05-17 12:55:36 +08:00
wp
ws
wt wttrbar: 0.9.4 -> 0.10.1 2024-05-13 01:39:39 +00:00
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan xarcan: unstable-2023-11-03 -> 0-unstable-2024-05-11 2024-05-13 19:27:26 -03:00
xc
xd xdg-terminal-exec-mkhl: init at 0.2.0 (#310740) 2024-05-13 08:20:04 +00:00
xe xemu: use upstream xemu.desktop 2024-05-15 21:00:13 -03:00
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 nixosTests.ydotool: init 2024-05-13 12:22:06 +02:00
ye
yg/yggdrasil
yj/yj
yo Merge pull request #293817 from PatrickDaG/your_spotify 2024-05-15 16:45:23 +02:00
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.134.4 -> 0.135.2 2024-05-15 21:52:23 +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;
}