nixpkgs/pkgs/by-name
2024-06-07 00:19:13 +02:00
..
_0/_0xpropo
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa aaaaxy: 1.5.129 -> 1.5.139 2024-06-03 23:18:43 +02:00
ab
ac
ad
ae
af
ag
ai
al
am
an ananicy-cpp: add johnrtitor as maintainer 2024-06-03 19:01:30 +05:30
ao/aocl-utils
ap apt: 2.9.3 -> 2.9.4 2024-06-04 05:58:46 +00:00
ar
as ast-grep: 0.22.4 -> 0.22.5 2024-06-03 01:28:56 +00:00
at Merge pull request #316749 from SFrijters/atuin-conditional-completions 2024-06-05 13:14:22 +02:00
au
av
aw
ax
ay
ba basedpyright: 1.12.3 -> 1.12.4 2024-06-04 15:56:58 +02:00
bc
bd/bdf2ttf
be
bi
bk/bk
bl
bm/bmake
bn/bngblaster
bo bonsai: make use of hareHook 2024-06-04 20:33:03 -03:00
bp
bq/bqn
br bruno: 1.18.0 -> 1.18.1 2024-06-05 21:24:08 +00:00
bs
bt btanks: adopt (by AndersonTorres) and fixup 2024-06-04 08:19:10 -03:00
bu buffer: init at 0.9.2 2024-06-06 20:07:44 +02:00
by
c-
c2 c2patool: 0.9.2 -> 0.9.3 2024-06-05 07:23:21 +00:00
ca Merge pull request #316268 from isabelroses/catwalk 2024-06-05 03:06:42 +02:00
cb
cc
cd cdecl: 16.3 -> 16.4.1 2024-06-05 08:56:34 +02:00
ce Merge pull request #316778 from r-ryantm/auto-update/centerpiece 2024-06-06 08:29:22 -04:00
cg
ch Merge pull request #312442 from fgaz/changelog-d/1.0 2024-06-03 18:33:11 +02:00
ci
cl Merge pull request #304749 from hatch01/clang-uml 2024-06-05 10:39:06 +02:00
cm
cn/cntb
co Merge pull request #278800 from TomaSajt/comet 2024-06-06 23:45:28 +02:00
cp
cr
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db Merge pull request #311405 from luftmensch-luftmensch/dbgate_5.2.7 2024-06-02 19:28:52 +02:00
dc/dc3dd
dd
de Merge pull request #252951 from TomaSajt/desktop-postflop 2024-06-06 01:17:05 +02:00
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn/dns2tcp
do
dp
dr
ds
dt
du
dv/dvb-apps
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ei
ek/eksctl eksctl: 0.179.0 -> 0.181.0 2024-06-05 11:50:35 +00:00
el
em
en
ep/epub-thumbnailer
er
es
et
eu
ev Merge pull request #242114 from jn-sena/everforest-gtk-init 2024-06-02 23:39:53 +02:00
ew/eww
ex
ez/eza eza: 0.18.6 -> 0.18.7 2024-06-05 20:57:38 +02:00
fa
fb/fbset
fc Merge pull request #306787 from Guanran928/fcitx5-themes 2024-06-03 00:02:07 +02:00
fe
ff fflogs: 8.5.9 -> 8.5.10 2024-06-02 18:37:41 +00:00
fg/fgqcanvas
fi files-cli: 2.13.53 -> 2.13.65 2024-06-05 07:38:54 +00:00
fl Merge pull request #316144 from Aleksanaa/flutter-apps 2024-06-05 20:57:06 +02:00
fm
fn/fnott
fo Merge pull request #312523 from emilylange/nixos-forgejo-secrets 2024-06-05 10:01:37 -04:00
fr frankenphp: 1.1.5 -> 1.2.0 2024-06-06 12:23:44 +02:00
fs
ft/fte
fu
fv
fw/fwupd
fy/fypp
fz
g3/g3kb-switch
ga Merge pull request #282756 from t4ccer/t4/gambit-project 2024-06-05 04:28:59 +02:00
gb
gc
ge
gf
gg/gg
gh gh-poi: 0.9.10 -> 0.10.1 2024-06-05 14:02:09 +00:00
gi Merge pull request #316329 from techknowlogick/build-gitea 2024-06-04 14:03:45 +00:00
gl
gm gmid: 2.0.2 -> 2.0.3 2024-06-04 14:44:19 +00:00
gn
go Merge pull request #316961 from eclairevoyant/electron-wrapper-fix 2024-06-06 16:48:14 +02:00
gp
gr graphite-cli: 1.3.5 -> 1.3.6 2024-06-03 10:33:22 +00:00
gt
gu guile-sdl: remove vyp 2024-06-04 08:19:10 -03:00
gv/gvisor
gx/gxml
h8/h8mail
ha haredo: make use of hareHook 2024-06-04 20:32:57 -03:00
hb/hb-honeypot
hd
he
hi Merge pull request #312321 from DCsunset/highlight-pointer-init 2024-06-04 17:54:20 +02:00
hj/hjson-go
ho Merge pull request #307856 from markus-heinrich/submit/horcrux 2024-06-05 04:12:27 +02:00
ht
hu hugo: 0.126.2 -> 0.126.3 2024-06-03 14:36:42 +02:00
hy Merge pull request #307226 from OmnipotentEntity/hyperspeedcube-init 2024-06-05 04:15:20 +02:00
i2/i2p
i3
ia
ic icloudpd: 1.18.0 -> 1.19.0 2024-06-03 01:38:29 +00:00
id
if/ifrextractor-rs
ig
ii
im immich-go: 0.15.0 -> 0.16.0 2024-06-03 22:47:07 +02:00
in
io/ioq3-scion
ip
ir irust: init at 1.71.23 2024-06-02 15:00:22 -03:00
is/iscc
it
iw/iw
iz/izrss izrss: 0.0.6 -> 0.1.0 2024-06-03 15:13:20 +01:00
ja jan: 0.4.14 -> 0.5.0 2024-06-03 17:51:59 +00:00
jd/jdt-language-server jdt-language-server: 1.31.0 -> 1.36.0 2024-06-03 11:55:10 +02:00
je
ji
jj/jj
jn jnv: remove no longer needed dependencies 2024-06-04 19:34:32 +03:00
jo
jq/jq-zsh-plugin
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju
ka kanidm: 1.2.1 -> 1.2.3 2024-06-04 07:34:43 +02:00
kc
kd
ke keypunch: init at 1.0 2024-06-06 15:15:42 +02:00
kg/kgeotag
ki kiwitalk: use pnpm.fetchDeps 2024-06-02 19:56:11 +02:00
kl/klog-time-tracker
km
kn knxd: migrate to by-name 2024-06-04 20:56:20 +04:00
ko Merge pull request #313471 from TomaSajt/koodo-reader 2024-06-05 12:01:22 +02:00
kp/kplex
kr
ks
kt
ku
kx
ky
la Merge pull request #315336 from romildo/upd.latexminted 2024-06-06 12:12:13 -03:00
lb
lc
ld/ldproxy
le Merge pull request #315353 from MikaelFangel/update-legba 2024-06-05 01:56:22 +02:00
li limine: 7.5.3 -> 7.7.0 2024-06-05 07:18:44 +00:00
lk/lk-jwt-service
ll llama-cpp: 3070 -> 3089 2024-06-06 08:18:00 +10:00
lm
ln/lngen
lo treewide: fix all obviously wrong mkEnableOptions 2024-06-03 13:20:32 +02:00
lp
ls
lt/ltris
lu
lw/lwgrp
lx Merge pull request #316799 from oo-infty/update-lx-music-desktop 2024-06-05 02:02:37 +02:00
lz
m2
ma Merge pull request #317046 from GeoffreyFrogeye/massdns 2024-06-06 22:42:51 +02:00
mb
mc
md
me meli: add gpgme to runtime lib path 2024-06-04 17:02:18 +02:00
mf
mg
mi mini-calc: 3.1.0 -> 3.2.0 2024-06-06 03:45:04 +00:00
mk
ml/mlx42
mo mousai: move to pkgs/by-name 2024-06-05 13:44:22 +02:00
mp
mq
ms
mu muffon: init at 2.0.3 2024-06-03 20:21:44 +00:00
my myks: 4.1.2 -> 4.1.3 2024-06-06 01:37:13 +00:00
n2/n2
na namespace-cli: 0.0.373 -> 0.0.374 2024-06-06 03:46:46 +00:00
nb/nbtscan
nc
nd/ndstrim
ne Merge pull request #317561 from matteo-pacini/needle 2024-06-06 15:55:47 +02:00
nf
ng
nh nh: 3.5.15 -> 3.5.16 2024-06-03 04:55:13 +00:00
ni Fix the update script so it points at the new nixos/nixfmt repo and bump to the lasest version on master. 2024-06-05 13:24:14 -07:00
nl
nm/nmap-parse
nn/nncp
no Merge pull request #315793 from r-ryantm/auto-update/normaliz 2024-06-04 22:01:02 +02:00
np
nr
ns
nt/ntfs2btrfs
nu
nv
nw
nx/nxengine-evo
oa
ob
oc
oe/oelint-adv
of
oh
oi oils-for-unix: reenable binary stripping 2024-06-03 15:57:29 -05:00
ol ols: refactor 2024-06-05 10:11:43 -03:00
om
on onscripter-en: remove abbradar 2024-06-04 08:19:11 -03:00
oo/oo7
op Merge pull request #317080 from r-ryantm/auto-update/openpgp-card-tools 2024-06-06 13:51:24 -04:00
or
os
ot
ou
ov
ow
pa Merge pull request #283621 from shard77/patch-11 2024-06-05 04:19:22 +02:00
pd
pe
pf/pfft
pg pgrok: migrate to pnpm.fetchDeps 2024-06-06 21:58:57 +02:00
ph
pi
pk pkcrack: 1.2.2 -> 1.2.3 2024-06-04 03:25:48 +00:00
pl
pm
pn
po pot: use pnpm.fetchDeps 2024-06-02 19:56:11 +02:00
pp/ppsspp
pq
pr process-cpp: unstable-2021-05-11 -> 3.0.1-unstable-2024-03-14 2024-06-04 14:13:08 +02:00
ps/ps_mem
pt
pu
pv/pvsneslib
pw
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr qrcode: unstable-2023-12-02 -> 0-unstable-2024-06-05 2024-06-05 14:34:21 -03:00
qs
qt/qtractor
qu
r0/r0vm
r1/r10k
ra Merge pull request #317641 from dotlambda/radicale 2024-06-06 11:13:11 +02:00
rc
rd/rdwatool
re Merge pull request #317703 from r-ryantm/auto-update/renode-dts2repl 2024-06-06 13:39:34 -04:00
rh/rHttp
ri Merge pull request #315199 from uncenter/feat/ringfairy 2024-06-05 03:36:03 +02:00
rk
rl/rl_json
rm
rn/rnd-name
ro
rp/rpcs3
rq
rs
rt
ru
rw/rwpspread
ry ryujinx: 1.1.1298 -> 1.1.1330 2024-06-04 12:58:37 -07:00
s0/s0ix-selftest-tool
s3 s3proxy: normalize doCheck 2024-06-02 21:35:14 -03:00
sa
sb/sbom-utility
sc
sd SDL2_gfx: remove cpages 2024-06-04 08:19:10 -03:00
se Merge pull request #317478 from 999eagle/update/searxng 2024-06-05 22:49:04 +02:00
sg/sgfutils
sh shopware-cli: 0.4.44 -> 0.4.47 2024-06-06 18:58:15 +00:00
si Merge pull request #316893 from r-ryantm/auto-update/simplex-chat-desktop 2024-06-03 13:38:38 -04:00
sk
sl slimserver: 8.5.1 -> 8.5.2 2024-06-03 23:49:40 -04:00
sm
sn snipe-it: 6.4.1 -> 6.4.2 2024-06-04 00:25:14 +02:00
so sonarlint-ls: normalize doCheck 2024-06-02 21:35:13 -03:00
sp
sq
sr
ss
st Merge pull request #316705 from TomaSajt/stirling-pdf 2024-06-05 02:00:41 +02:00
su surrealdb: 1.5.1 -> 1.5.2 2024-06-06 18:38:09 +00:00
sv
sw swaycons: 0.2.0 -> 0.3.1 2024-06-03 21:31:33 +01:00
sx
sy
t-/t-rex
ta
tc/tcsh
td
te Merge pull request #225445 from chayleaf/techmino 2024-06-06 13:19:15 +02:00
tg/tgpt
th
ti tile38: migrate to by-name 2024-06-04 21:24:57 +04:00
tk
tl
tm/tmuxifier
to
tp
tr Merge pull request #295155 from onemoresuza/hare-hook 2024-06-06 23:55:33 +02:00
tt
tu Merge pull request #277968 from EdenEast/update/tuxmux 2024-06-05 14:39:19 +02:00
tw
tx/txr
ty
uc
ud
ue
ug
uh/uhttpmock_1_0
ui uiua: 0.10.3 -> 0.11.0 2024-06-03 12:09:43 +02:00
um/umpire
un
up
us
ut
uu/uuu uuu: 1.5.181 -> 1.5.182 2024-06-03 14:05:37 -03:00
uv/uv uv: 0.2.5 -> 0.2.6 2024-06-04 13:23:39 +00:00
uw/uwhoisd
ux
va
vc
vd/vdhcoapp
ve Merge pull request #317650 from r-ryantm/auto-update/vencord 2024-06-06 09:58:49 +00:00
vg/vgm2x
vi Merge pull request #290715 from Scrumplex/pkgs/build-support/fetchPnpmDeps 2024-06-06 09:41:22 +03:00
vl
vm/vms-empire
vo/voidmap
vp/vp vp: remove vrthra 2024-06-04 08:19:11 -03:00
vu
vv/vvvvvv
wa Merge pull request #316673 from adamcstephens/waylock/pam 2024-06-05 15:19:33 -04:00
wb
we
wh
wi Merge pull request #313145 from DontEatOreo/pkgs-win-disk-writer 2024-06-02 19:57:32 +02:00
wl
wo
wp
ws
wt wttrbar: 0.10.1 -> 0.10.2 2024-06-05 23:27:14 +00:00
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe Merge pull request #260340 from jfvillablanca/xenon 2024-06-06 00:39:49 +02:00
xf/xfs-undelete
xh/xhosts
xi
xl/xlights
xm Merge pull request #305096 from Tochiaha/xmltoman 2024-06-07 06:23:39 +10:00
xn/xnlinkfinder
xo
xp
xr/xr-hardware
xs
xw/xwayland-run
ya yazi: fix plugins and flavors config 2024-06-03 11:26:59 +02:00
yc/ycmd
yd/ydotool
ye
yg/yggdrasil
yj/yj
yo Merge pull request #312119 from hogcycle/yoink 2024-06-03 00:02:49 +00:00
ys/ysfx
yt ytdownloader: refactor code with copyDesktopItems & nixfmt 2024-06-03 09:20:11 +01:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze
zi
zl/zluda
zm/zmkBATx
zo Merge pull request #313107 from justanotherariel/zotero-beta 2024-06-06 01:45:39 +02:00
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;
}