2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-24 05:00:19 +00:00
nixpkgs/pkgs/by-name
2024-08-23 19:08:27 +02:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab
ac
ad Merge pull request from r-ryantm/auto-update/adif-multitool 2024-08-22 16:52:51 -04:00
ae
af
ag
ai aider-chat: 0.50.0 -> 0.51.0 2024-08-22 20:39:10 +00:00
al alephone: 1.8.1 -> 1.10 2024-08-23 09:44:44 +00:00
am
an Merge pull request from natsukium/andi/init 2024-08-23 09:14:21 +09:00
ao/aocl-utils
ap
aq/aquamarine
ar
as Merge pull request from r-ryantm/auto-update/asn 2024-08-21 08:04:38 +02:00
at attic-client: 0-unstable-2024-08-01 -> 0-unstable-2024-08-19 2024-08-21 20:35:51 +02:00
au treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
av
aw
ax
ay
az Merge pull request from katexochen/azure-cli/socks 2024-08-21 09:58:51 -03:00
b3/b3sum
ba basedpyright: 1.16.0 -> 1.17.0 2024-08-21 13:30:49 +02:00
bc
bd
be Merge pull request from r-ryantm/auto-update/beeper-bridge-manager 2024-08-21 02:01:04 +02:00
bi
bk/bk
bl
bm/bmake
bn/bngblaster
bo
bp
bq/bqn
br treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
bs
bt
bu Merge pull request from flokli/buildkite-agent-3.77.0 2024-08-23 14:04:52 +03:00
by
c2
c-
ca Merge pull request from goatastronaut0212/init-caprine-buildnpmpackage 2024-08-22 14:04:25 +02:00
cb
cc
cd
ce treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
cg
ch treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
ci civo: 1.0.88 -> 1.0.89 2024-08-20 19:09:56 -04:00
cj/cjs
cl clang-uml: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 19:07:47 +02:00
cm
cn
co compose2nix: 0.2.1 -> 0.2.2 2024-08-23 12:27:37 +00:00
cp
cq/cq
cr cro-mag-rally: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 19:00:24 +02:00
cs
ct/ctx
cu Merge pull request from Pandapip1/init-cups-idprt 2024-08-22 15:00:07 +02:00
cv/cvemap
cy
cz/czkawka
da dapr-cli: 1.14.0 -> 1.14.1 2024-08-21 17:59:31 +00:00
db treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
dc treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
dd
de Merge pull request from fsagbuya/dezoomify-rs 2024-08-22 14:11:44 +02:00
dg/dgoss
dh/dhcpig
di disko: add missing nixos-install for disko-install 2024-08-21 12:03:23 +02:00
dj/djent
dm treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
dn dnsmap: init at 0.36-unstable-2024-08-20 2024-08-21 09:15:14 -06:00
do Merge pull request from r-ryantm/auto-update/doublecmd 2024-08-22 02:38:28 +00:00
dp
dr
ds
dt
du dummyhttp: 1.0.3 -> 1.1.0 2024-08-23 12:37:46 +00:00
dv/dvb-apps
dw
dx
dy
e1/e1s
ea
eb
ec
ed
ee/eepers
ef/efibootmgr
eg/eg25-manager
ei
ej/ejsonkms
ek/eksctl
el
em
en treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
eo/eog treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
ep
er
es
et
eu
ev treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
ew/eww
ex
ey/eyewitness
ez/eza
f2/f2fs-tools
fa
fb/fbset
fc
fe feishin: use electron_31 2024-08-23 00:59:01 +01:00
ff
fg/fgqcanvas
fi treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
fj/fjo
fl
fm
fn/fnott
fo Merge pull request from Yarny0/foomatic-db-update 2024-08-22 11:46:35 +02:00
fr Merge pull request from natsukium/freesasa/init 2024-08-23 09:21:46 +09:00
fs
ft/fte
fu treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
fv
fw/fwupd
fx/fx
fy
fz
g3/g3kb-switch
ga Merge pull request from getchoo/pkgs/garnet/1.0.18 2024-08-20 19:11:35 -04:00
gb
gc
gd
ge treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
gf Merge pull request from r-ryantm/auto-update/gfal2 2024-08-22 23:20:49 -04:00
gg/gg
gh treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
gi treewide: change ${pname} to string literal, pt2 () 2024-08-20 17:23:37 -07:00
gk/gk-cli
gl treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
gm
gn treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
go google-chrome: 127.0.6533.119 -> 128.0.6613.84/128.0.6613.85 2024-08-22 22:40:16 +02:00
gp
gr
gt
gu treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
gv/gvisor
gx/gxml
h2/h2
h5/h5utils
h8/h8mail
ha treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
hb/hb-honeypot
hc/hclfmt
hd
he Merge pull request from r-ryantm/auto-update/hermitcli 2024-08-22 16:36:18 -04:00
hi
hj/hjson-go
hn/hn-text
ho Merge pull request from r-ryantm/auto-update/home-manager 2024-08-21 14:35:12 +02:00
hp
ht httping: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 19:01:11 +02:00
hu
hv/hvm
hw/hwinfo hwinfo: add updater 2024-08-21 22:38:35 +02:00
hy hyprland: include xcursor regardless of xwayland 2024-08-21 22:51:27 +03:00
i2/i2p
i3
ia
ic
id
if/ifrextractor-rs
ig
ii
ij
im
in Merge pull request from r-ryantm/auto-update/ingress2gateway 2024-08-22 19:35:52 +00:00
io
ip
ir
is treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
it
iv
iw/iw
iz/izrss
ja
jc/jcli
jd/jdt-language-server
je Merge pull request from r-ryantm/auto-update/jetbrains-toolbox 2024-08-23 14:33:52 +02:00
ji
jj/jj
jn treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
jo
jq/jq-zsh-plugin
jr Merge pull request from I-Al-Istannen/pkg/jreleaser-cli 2024-08-23 16:46:46 +02:00
js
jt/jtdx
ju
jw/jwasm
ka Merge pull request from adamcstephens/kanidm/1.3.3 2024-08-22 18:41:30 +02:00
kc
kd
ke treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
kg/kgeotag
ki Merge pull request from jfly/kikit-on-python312 2024-08-23 09:40:34 +09:00
kl
km
kn
ko kor: 0.5.4 -> 0.5.5 2024-08-21 04:33:46 +00:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kx
ky
la Merge pull request from museoa/labwc 2024-08-21 22:19:17 -04:00
lb
lc
ld
le
lg/lgogdownloader
li Merge pull request from r-ryantm/auto-update/livekit 2024-08-22 22:01:09 -04:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo Merge pull request from pbsds/bump-localsend-1724194260 2024-08-21 20:56:04 +02:00
lp
lr/lrcget
ls
lt/ltris
lu Merge pull request from LovingMelody/lug-helper 2024-08-21 17:27:06 +00:00
lv/lv_font_conv
lw/lwgrp
lx treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
lz
m1/m1ddc
m2
ma manifold: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 18:58:32 +02:00
mb
mc
md
me metacubexd: 1.143.0 -> 1.146.1 2024-08-22 21:16:27 +08:00
mf
mg
mi Merge pull request from OPNA2608/update/miracle-wm 2024-08-21 22:20:02 -04:00
mk
ml/mlx42
mo Merge pull request from toastal/movim-0.27 2024-08-23 16:57:13 +02:00
mp
mq
mr/mricron
ms treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
mu music-assistant: 2.1.1 -> 2.2.0 2024-08-22 01:58:20 +02:00
my mycelium: reformat with nixfmt 2024-08-21 10:36:50 +02:00
n2/n2
n8/n8n
n9/n98-magerun2
na
nb Merge pull request from Celibistrial/master 2024-08-20 21:50:49 +05:30
nc
nd/ndstrim
ne treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
nf treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
ng
nh
ni nixfmt-rfc-style: unstable-2024-08-08 -> unstable-2024-08-16 2024-08-21 15:00:51 +02:00
nl
nm
nn
no
np
nr
ns nstool: 1.9.0 -> 1.9.1 2024-08-21 20:13:06 +00:00
nt
nu treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
nv
nw
nx/nxengine-evo
nz Merge pull request from devusb/nzbget 2024-08-22 13:55:17 +02:00
oa
ob
oc
od
oe/oelint-adv
of
oh
oi
ok
ol
om
on
oo
op opengv: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 18:59:28 +02:00
oq/oqs-provider
or orchard: 0.22.0 -> 0.22.1 2024-08-22 03:21:58 +00:00
os
ot
ou
ov ovn-lts: 24.03.2 -> 24.03.3 2024-08-23 13:43:04 +00:00
ow
pa Merge pull request from helsinki-systems/fix/parmetis-archive-org 2024-08-21 21:41:51 +01:00
pc
pd Merge pull request from fgaz/pdf4tcl/init 2024-08-22 13:39:59 +02:00
pe
pf/pfft
pg
ph phpactor: switch to buildComposerProject2 2024-08-20 20:29:34 +02:00
pi
pk
pl treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
pm pmbootstrap: fix darwin build 2024-08-23 16:51:16 +01:00
pn
po Merge pull request from luftmensch-luftmensch/poptop_0.1.8 2024-08-22 13:58:42 +02:00
pp/ppsspp ppsspp: add upstream patch for FFmpeg 6 2024-08-20 23:53:38 +01:00
pq
pr protonmail-bridge-gui: use cmakeFlags instead of preConfigure 2024-08-23 19:06:14 +02:00
ps
pt
pu Merge pull request from pbsds/bump-pulsar-1724017823 2024-08-21 19:45:37 +02:00
pv
pw treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
px/pxder
py Merge pull request from r-ryantm/auto-update/pyright 2024-08-22 11:41:09 +00:00
pz/pzip
qa/qadwaitadecorations
qb/qbittorrent-enhanced
qc/qcm qcm: switch to finalAttrs 2024-08-22 20:07:31 +08:00
qd qdiskinfo: change pname to lowercase 2024-08-20 11:13:45 -04:00
qg/qgrep
qm/qmplay2
qn/qnial
qo/qodem
qp/qpoases
qq/qq
qr
qs
qt/qtractor
qu
qw/qwerty-fr
r0/r0vm
r1/r10k
ra treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
rc
rd/rdwatool
re Merge pull request from r-ryantm/auto-update/renode-unstable 2024-08-22 16:55:38 -04:00
rf/rfdump
rh/rHttp
ri ricochet-refresh: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 19:02:50 +02:00
rk
rl/rl_json
rm
rn
ro roslyn-ls: update dependencies for dotnet 9.0-preview.7 2024-08-21 11:37:45 -03:00
rp/rpcs3
rq
rr/rrdtool
rs rsgain: remove CMAKE_BUILD_TYPE from cmakeFlags 2024-08-23 19:08:27 +02:00
rt
ru ruff: format 2024-08-22 18:43:54 +02:00
rw/rwpspread
ry rye: format with nixfmt 2024-08-21 08:12:07 +02:00
s0/s0ix-selftest-tool
s3
sa Merge pull request from r-ryantm/auto-update/sarasa-gothic 2024-08-20 15:11:12 -04:00
sb sby: 2021.11.30 -> 0.44, run tests, rename from symbiyosys 2024-08-21 10:25:34 -05:00
sc
sd Merge pull request from reckenrode/SDL_image-fixes 2024-08-23 15:38:58 +02:00
se Merge pull request from r-ryantm/auto-update/sendme 2024-08-21 17:23:54 -04:00
sf/sfwbar
sg/sgfutils
sh
si treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
sk skypeforlinux: adopt 2024-08-22 09:56:07 +00:00
sl
sm
sn
so treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
sp
sq
sr treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
ss
st stalwart-mail: 0.9.1 -> 0.9.2 2024-08-21 17:49:21 +02:00
su Merge pull request from siriobalmelli/sb/fix/surrealdb 2024-08-22 21:44:12 +00:00
sv
sw treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
sx
sy systemctl-tui: 0.3.6 -> 0.3.7 2024-08-22 16:37:22 +02:00
t-/t-rex
ta Merge pull request from r-ryantm/auto-update/tabiew 2024-08-21 20:22:32 +02:00
tb/tbump
tc Merge pull request from fgaz/tcludp/init 2024-08-22 13:38:59 +02:00
td Merge pull request from fgaz/tdom/init 2024-08-22 13:40:16 +02:00
te termsnap: 0.3.0 -> 0.4.0 2024-08-21 02:28:05 +02:00
tg
th Revert "thorium-browser: init at 120.0.6099.235" 2024-08-20 21:30:35 +02:00
ti Merge pull request from rcmlz/tigerjython 2024-08-22 01:03:44 +01:00
tk
tl
tm
to treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
tp
tr Merge pull request from tengkuizdihar/treedome_051 2024-08-21 21:34:47 +02:00
ts/tsm-client
tt
tu
tw
tx
ty typst-lsp: move to pkgs/by-name 2024-08-22 13:24:07 +02:00
ub
uc
ud Merge pull request from r-ryantm/auto-update/udev-gothic 2024-08-21 20:28:54 +02:00
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un
up
ur/urban-cli
us
ut
uu/uuu
uv/uv uv: 0.3.0 -> 0.3.1 2024-08-22 12:39:32 +02:00
uw
ux
va treewide: change ${pname} to string literal, pt2 () 2024-08-20 17:23:37 -07:00
vc
vd/vdhcoapp
ve
vg vgmstream: move to by-name 2024-08-21 23:42:03 +09:00
vi
vk
vl
vm
vn
vo
vp
vs
vu
vv/vvvvvv treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
vw/vwsfriend
vz/vzic
wa Merge pull request from r-ryantm/auto-update/warp-terminal 2024-08-21 10:10:40 +00:00
wb
wc/wcurl
we webfs: 1.21 -> 1.21-unstable-2021-02-24 () 2024-08-22 16:42:28 +02:00
wf/wf-touch
wg/wg-access-server
wh
wi wizer: 6.0.0 -> 7.0.4 2024-08-21 03:24:00 +00:00
wl
wo
wp
wr/wrangler wrangler: 3.66.0 -> 3.72.1 2024-08-20 13:51:27 -06:00
ws
wt
wv
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa
xc
xd
xe Merge pull request from r-ryantm/auto-update/xemu 2024-08-23 16:10:14 +00:00
xf/xfs-undelete
xh/xhosts
xi
xl
xm
xn/xnlinkfinder
xo xonsh: 0.18.2 -> 0.18.3 2024-08-21 00:34:55 +08:00
xp
xr
xs
xu/xunit-viewer
xv/xviewer
xw
ya
yc/ycmd
yd/ydotool
ye treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
yg treewide: change ${pname} to string literal, pt2 () 2024-08-20 17:23:37 -07:00
yj/yj
yo Merge pull request from r-ryantm/auto-update/youtrack 2024-08-23 15:02:44 +02:00
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc
ze zed-editor: 0.149.3 -> 0.149.5 2024-08-22 23:19:48 +02:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp
zs treewide: change ${pname} to string literal () 2024-08-20 15:56:55 -07:00
zu
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;
}