nixpkgs/pkgs/by-name
2024-06-15 17:16:11 +02:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac
ad Merge pull request #319550 from fabaff/ad-miner-bump 2024-06-14 09:33:00 +02:00
ae
af
ag
ai
al
am
an ananicy-rules-cachyos: 0-unstable-2024-06-07 -> 0-unstable-2024-06-14 2024-06-14 23:54:08 +00:00
ao/aocl-utils
ap apt: 2.9.4 -> 2.9.5 2024-06-15 09:30:52 +00:00
ar
as
at
au
av
aw
ax
ay
ba bash-language-server: add shellcheck to path 2024-06-14 22:59:48 +02:00
bc
bd
be
bi bitmagnet: 0.8.0 -> 0.9.2 2024-06-15 01:51:56 +00:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br Merge pull request #319505 from fabaff/breads 2024-06-14 09:32:49 +02:00
bs
bt
bu
by
c2
c-
ca cargo-xwin: 0.16.4 -> 0.17.0 2024-06-14 00:35:35 +00:00
cb
cc
cd cdecl: 16.4.1 -> 17.0 2024-06-14 02:51:28 +00:00
ce
cg
ch
ci cimg: 3.3.6 -> 3.4.0 2024-06-15 05:22:32 +00:00
cl
cm
cn/cntb
co Merge pull request #318243 from heisfer/code2prompt 2024-06-14 23:09:59 +02:00
cp
cr cryptor: add desktop item 2024-06-12 23:12:24 +02:00
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da
db Merge pull request #318589 from jtojnar/u-s-v-ignore-same 2024-06-13 00:41:07 +02:00
dc/dc3dd
dd
de decker: 1.43 -> 1.44 2024-06-15 05:51:59 +00:00
dg/dgoss
dh/dhcpig
di
dj/djent
dm
dn
do Merge pull request #319687 from r-ryantm/auto-update/doppler 2024-06-14 13:24:12 -04:00
dp
dr
ds
dt
du
dv/dvb-apps
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ei
ej/ejsonkms
ek/eksctl
el
em
en
ep
er
es
et
eu
ev
ew/eww
ex
ez/eza eza: 0.18.17 -> 0.18.18 2024-06-13 14:42:36 +00:00
fa
fb/fbset
fc
fe
ff
fg/fgqcanvas
fi
fj/fjo
fl Merge pull request #319405 from superherointj/fluxcd-by-name 2024-06-14 18:11:38 -03:00
fm
fn/fnott
fo forgejo: 7.0.3 -> 7.0.4 2024-06-13 20:04:37 +02:00
fr freecell-solver: 6.8.0 -> 6.10.0 2024-06-15 03:38:27 +00:00
fs
ft/fte
fu
fv
fw/fwupd fwupd: 1.9.20 -> 1.9.21 2024-06-14 08:21:16 +02:00
fy/fypp
fz
g3/g3kb-switch
ga gamescope: don't patch out force_fallback_for 2024-06-14 03:57:20 -04:00
gb
gc
gd
ge
gf
gg/gg
gh
gi
gl
gm Merge pull request #318589 from jtojnar/u-s-v-ignore-same 2024-06-13 00:41:07 +02:00
gn
go google-chrome: 125.0.6422.141 -> 126.0.6478.61 2024-06-15 12:45:57 +05:30
gp
gr gruvbox-gtk-theme: unstable-2023-05-28 -> 0-unstable-2024-06-12 2024-06-13 11:05:19 +02:00
gt
gu
gv/gvisor
gx/gxml
h8/h8mail
ha hacompanion: 1.0.12 -> 1.0.15 2024-06-14 01:29:51 +00:00
hb/hb-honeypot
hd
he
hi
hj/hjson-go
hn/hn-text
ho home-manager: 0-unstable-2024-06-04 -> 0-unstable-2024-06-13 2024-06-14 11:25:27 +00:00
ht
hu
hy
i2/i2p
i3
ia
ic
id ida-free: fix desktop item 2024-06-14 14:16:50 +02:00
if/ifrextractor-rs
ig igvm-tooling: add katexochen as maintainer 2024-06-13 12:05:50 +02:00
ii
ij/ijhttp
im Merge pull request #304701 from dotlambda/impression 2024-06-15 17:16:11 +02:00
in
io/ioq3-scion
ip
ir irrd: 4.4.2 -> 4.4.4; fix build (#319522) 2024-06-13 17:27:40 +02:00
is/iscc
it
iw/iw
iz/izrss
ja
jd/jdt-language-server
je
ji
jj/jj
jn
jo
jq/jq-zsh-plugin
jr/jrl-cmakemodules
js/jsoncons
jt/jtdx
ju
ka
kc
kd
ke
kg/kgeotag
ki
kl/klog-time-tracker
km
kn
ko
kp/kplex
kr
ks
kt ktls-utils: 0.10 -> 0.11 2024-06-14 16:31:23 +00:00
ku
kx
ky
la
lb
lc
ld
le
li
lk/lk-jwt-service
ll
lm
ln/lngen
lo
lp
ls
lt/ltris
lu lunar-client: 3.2.9 -> 3.2.10 2024-06-15 01:38:04 +00:00
lw/lwgrp
lx
lz
m1/m1ddc
m2
ma
mb
mc
md
me melonDS: 0.9.5-unstable-2024-05-15 -> 0.9.5-unstable-2024-06-08 (#319745) 2024-06-14 12:15:27 -04:00
mf
mg
mi Merge pull request #319083 from r-ryantm/auto-update/minijinja 2024-06-12 16:28:52 -04:00
mk
ml/mlx42
mo
mp
mq
ms
mu
my myks: 4.1.3 -> 4.2.0 2024-06-14 03:59:11 +00:00
n2/n2
na namespace-cli: 0.0.374 -> 0.0.376 2024-06-13 15:08:10 +00:00
nb
nc
nd/ndstrim
ne netclient: 0.24.1 -> 0.24.2 2024-06-14 02:34:11 +00:00
nf
ng
nh
ni
nl
nm/nmap-parse
nn/nncp
no
np
nr
ns
nt/ntfs2btrfs
nu nuclei-templates: 9.8.8 -> 9.8.9 2024-06-14 18:27:41 +00:00
nv
nw
nx/nxengine-evo
oa
ob
oc
oe/oelint-adv
of
oh oh-my-posh: 21.3.0 -> 21.9.1 2024-06-15 02:11:50 +00:00
oi
ok/okolors
ol ollama: 0.1.43 -> 0.1.44 2024-06-14 04:08:35 -04:00
om omnictl: 0.37.0 -> 0.37.5 2024-06-14 11:02:19 +00:00
on
oo/oo7
op open-webui: Use makeWrapperArgs; Use env to disable hatch custom hook 2024-06-13 12:21:36 +05:30
or
os
ot
ou
ov
ow
pa
pc/pcsx2
pd
pe
pf/pfft
pg
ph
pi
pk
pl plasticity: fix update.sh 2024-06-14 10:28:10 +02:00
pm
pn
po
pp/ppsspp
pq
pr proto: 0.36.0 -> 0.36.2 2024-06-14 06:40:08 +00:00
ps/ps_mem
pt
pu Merge pull request #315679 from pyrox0/purescm-src-fix 2024-06-15 02:15:25 +08:00
pv/pvsneslib
pw
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr
qs
qt/qtractor
qu Merge pull request #316758 from eclairevoyant/quickemu 2024-06-13 20:35:08 +02:00
r0/r0vm r0vm: 0.21.0 -> 1.0.1 2024-06-14 15:05:57 +02:00
r1/r10k
ra Merge pull request #319898 from Cryolitia/rpi 2024-06-15 10:19:27 -03:00
rc rcp: 0.9.0 -> 0.10.1 2024-06-13 22:18:57 +00:00
rd/rdwatool
re renode-dts2repl: 0-unstable-2024-06-03 -> 0-unstable-2024-06-11 2024-06-13 19:57:41 +00:00
rh/rHttp
ri Merge pull request #317887 from aaronjheng/ricochet-refresh 2024-06-14 20:32:42 +00:00
rk
rl/rl_json
rm
rn/rnd-name
ro roddhjav-apparmor-rules: 0-unstable-2024-06-11 -> 0-unstable-2024-06-12 2024-06-13 00:23:28 +00:00
rp/rpcs3
rq
rs
rt
ru
rw/rwpspread maintainers: rename nu-nu-ko to fsnkty 2024-06-15 14:21:38 +12:00
ry
s0/s0ix-selftest-tool
s3
sa
sb/sbom-utility
sc
sd
se
sg/sgfutils
sh show-midi: add desktop item 2024-06-12 23:12:37 +02:00
si
sk Merge pull request #318589 from jtojnar/u-s-v-ignore-same 2024-06-13 00:41:07 +02:00
sl
sm
sn
so
sp spatial-shell: init at 7 2024-06-14 16:29:10 +02:00
sq
sr
ss
st Merge pull request #319668 from r-ryantm/auto-update/stackql 2024-06-14 13:29:24 -04:00
su Merge pull request #319297 from onny/sublime-music2 2024-06-15 16:53:51 +02:00
sv
sw
sx
sy Merge pull request #319012 from r-ryantm/auto-update/syft 2024-06-13 07:42:29 +00:00
t-/t-rex
ta Merge pull request #315711 from anas-contribs/by-name/tabiew 2024-06-15 14:23:32 +02:00
tb/tbump
tc/tcsh tcsh: 6.24.12 -> 6.24.13 2024-06-13 13:41:09 +03:00
td
te
tg/tgpt
th
ti
tk
tl
tm
to
tp
tr
tt
tu
tw
tx/txr
ty typstyle: 0.11.25 -> 0.11.26 2024-06-13 16:48:04 +02:00
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un unciv: install icon for desktop item 2024-06-12 23:32:04 +02:00
up Merge pull request #318165 from r-ryantm/auto-update/upbound 2024-06-14 23:48:13 +02:00
us usql: 0.19.2 -> 0.19.3 2024-06-14 13:51:17 +00:00
ut
uu/uuu
uv/uv python311Packages.uv: 0.2.10 -> 0.2.11 2024-06-14 16:39:10 +00:00
uw/uwhoisd
ux
va
vc vcpkg-tool: 2024-04-23 -> 2024-06-10 2024-06-13 03:02:28 +00:00
vd/vdhcoapp
ve vencord: 1.8.8 -> 1.8.9 2024-06-13 17:00:21 +00:00
vg/vgm2x
vi
vl
vm/vms-empire
vo/voidmap
vp Merge pull request #319473 from r-ryantm/auto-update/vpl-gpu-rt 2024-06-14 12:10:47 +00:00
vs/vscode-js-debug
vu
vv/vvvvvv
vz/vzic
wa warp-terminal: 0.2024.06.04.08.02.stable_02 -> 0.2024.06.11.08.02.stable_01 2024-06-14 07:28:09 +00:00
wb
we
wh where-is-my-sddm-theme: 1.9.1 -> 1.9.2 2024-06-14 08:32:36 +02:00
wi
wl
wo workout-tracker: 0.15.0 -> 1.15.2 2024-06-14 15:25:59 +00:00
wp maintainers: rename nu-nu-ko to fsnkty 2024-06-15 14:21:38 +12:00
ws Merge pull request #317840 from NeverBehave/pkg-ws-tunnel-rust 2024-06-13 13:31:08 -04:00
wt
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd xdg-terminal-exec: 0.9.3 -> 0.10.0 2024-06-13 04:12:15 +00:00
xe xemu: 0.7.122 -> 0.7.123 2024-06-13 03:18:39 +00:00
xf/xfs-undelete
xh/xhosts
xi
xl/xlights
xm
xn/xnlinkfinder
xo
xp
xr/xr-hardware
xs
xw/xwayland-run
ya yamlscript: 0.1.59 -> 0.1.61 2024-06-13 22:18:35 +00:00
yc/ycmd
yd/ydotool
ye
yg/yggdrasil
yj/yj
yo youtrack: use jdk21 2024-06-15 10:11:19 +02:00
ys/ysfx
yt yt-dlg: install desktop item 2024-06-12 23:22:04 +02:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze
zf/zfind zfind: init at 0.4.0 2024-06-14 17:12:22 +02:00
zi
zl/zluda
zm/zmkBATx
zo
zp
zs zsh-wd: 0.7.0 -> 0.7.1 2024-06-13 15:53:43 +00:00
zu/zug
zw/zwave-js-server
zx zxtune: add desktop item 2024-06-12 23:12:49 +02:00
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;
}