nixpkgs/pkgs/by-name
2024-01-09 13:08:46 +00:00
..
_4/_4th
_9/_9base
a4/a4
aa
ab/aba
ac
ad
ae/aeron-cpp
af/afterstep
ai
al
am
an Merge pull request from running-grass/update_anytype 2024-01-05 10:28:30 -05:00
ao/aocl-utils
ap
ar
as python311Packages.wxpython: rename from wxPython_4_2 2024-01-07 21:16:47 +01:00
at/athens athens: 0.13.0 -> 0.13.1 2024-01-04 13:40:28 +01:00
au/auto-epp
av/avr-sim
aw
ax/axmldec
ay/ayatana-indicator-messages
ba
bc/bc-ur
be bemoji: 0.3.0 -> 0.3.0 (fix commit) 2024-01-03 21:32:51 +01:00
bi Merge pull request from Silver-Golden/bitwarden-directory-connector_pkgs 2024-01-07 10:28:04 -05:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo
br bruno: 1.5.1 -> 1.6.1 2024-01-06 10:33:03 +00:00
bu
c2
ca
cb/cbmbasic
cd
ce
cg/cgl
ch/changelog-d
ci
cl
cm
cn/cntb
co cockpit: 307 -> 308 2024-01-06 13:50:37 +00:00
cp cpuset: remove thiagokokada from maintainers 2024-01-08 16:23:39 +00:00
cr
ct/ctx
cy
cz/czkawka czkawka: migrate to by-name 2024-01-04 18:22:49 -03:00
da/dark-mode-notify
db/dbus-cpp
de
di disko: init at 1.3.0 2024-01-08 08:27:01 +01:00
dj/djent
dm
do
dr/drone-scp drone-scp: 1.6.13 -> 1.6.14 2024-01-05 04:27:41 +00:00
dt/dtcmp
du
dv/dvb-apps
dx
dy
ec
ei
ek/eksctl
el
em
en encled: init at unstable-2022-07-23 2024-01-03 22:40:34 +01:00
er eris-go: 20231119 -> 20231219 2024-01-04 06:24:03 +00:00
es espresso: init at 2.4 2024-01-04 11:03:39 +09:00
eu/eudev
ez/eza
fa
fc
fe/feather feather: 2.6.1 -> 2.6.2 2024-01-05 08:27:32 +00:00
ff
fi/firewalk
fl
fm
fn/fnott
fo
fr frankenphp: 1.0.2 -> 1.0.3 2024-01-06 14:51:13 +01:00
ga
gb/gbar
gc
ge
gh
gi gickup: 0.10.25 -> 0.10.26 2024-01-07 00:35:55 +00:00
gl
gm/gmic
go goldwarden: 0.2.7 -> 0.2.9 2024-01-05 05:23:05 +00:00
gr
gt/gtksheet gtksheet: init at 4.3.13 2024-01-05 17:35:15 +01:00
gu
ha
hd/hdrop
he
hi/hifile
hj/hjson-go
ho
ht
hu/hugo
hy
i3
ia/ia-writer-quattro
ic/icewm
id/idsk
if/ifrextractor-rs
ig/ignite-cli
im
in Merge pull request from hacker1024/feature/pub2nix 2024-01-05 16:34:07 +01:00
ir/ironbar
ja
ji
jj/jj
jo/joycond-cemuhook
ju/justbuild justbuild: 1.2.1 -> 1.2.4 2024-01-04 20:02:18 +01:00
ka/katriawm
kc/kconfig-frontends
kd/kdsingleapplication
ke
kg/kgeotag kgeotag: 1.4.0 -> 1.5.0 2024-01-05 05:37:50 +00:00
ki python311Packages.wxpython: rename from wxPython_4_2 2024-01-07 21:16:47 +01:00
km/kmsvnc
ko
ks/kseexpr
kt Merge pull request from r-ryantm/auto-update/maven 2024-01-04 23:02:33 +01:00
ku
kx/kxstitch
la Merge pull request from romildo/upd.labwc-menu-generator 2024-01-07 15:15:04 -03:00
lc/lcab
le leaf: 0.1.0 -> 0.2.0 2024-01-05 18:37:35 -07:00
li Merge pull request from TomaSajt/libation 2024-01-08 11:22:21 -05:00
ll
ln/lngen
lo loksh: reword 2024-01-04 16:38:41 -03:00
ls/lshw lshw: unstable-2023-03-20 -> 02.20 2024-01-08 14:53:57 +00:00
lu
lw/lwgrp
lx/lxd-to-incus
lz/lzsa
m2
ma Merge pull request from emilytrau/maccy 2024-01-04 15:02:55 +11:00
mc mcomix: make chardet/pdf optional 2024-01-08 13:23:31 +00:00
me memtree: unstable-2023-11-22 -> unstable-2024-01-04 2024-01-07 11:04:39 +00:00
mf/mfoc-hardnested
mi
mk
ml/mlx42
mo
mp/mpifileutils
ms/msolve
mu
my/mystmd
n2/n2
na
nc/ncdc ncdc: 1.23.1 -> 1.24 2024-01-09 10:58:44 +00:00
ne neural-amp-modeler-lv2: init at 0.1.3 2024-01-07 14:33:13 +11:00
nf/nfft
nh/nh
ni Merge pull request from symphorien/nixseparatedebuginfod 2024-01-07 17:45:13 +01:00
nl
nn/nncp
no
np/npm-lockfile-fix
nr/nrpl
ns
nu
nv/nvidia-texture-tools
nw/nwg-drawer
oa
oc
oe/oelint-adv
of/offpunk
oh/oh-my-fish
on
op
or/orchard
ot
ou/outputcheck
ov
ow/owncloud-client owncloud-client: 5.0.0 -> 5.2.1 2024-01-04 23:32:58 +02:00
pa
pd
pe
pg/pgmoneta
ph
pi
pk/pkcrack
pl pls: 0.0.1-beta.2 -> 0.0.1-beta.4 2024-01-06 13:47:09 +01:00
po
pp/ppsspp
pr promptfoo: 0.33.2 -> 0.35.0 2024-01-08 10:28:21 -08:00
pt/pterm
pu/pushup
pw
px/pxder
py pyprland: 1.6.9 -> 1.6.10 2024-01-04 18:12:10 +03:00
pz/pzip
qa/qadwaitadecorations
qr/qrtool qrtool: 0.10.1 -> 0.10.2 2024-01-07 16:34:00 +00:00
qs/qspeakers
qu
ra raft-cowsql: 0.18.3 -> 0.19.1 2024-01-04 18:42:32 +00:00
rc
re Merge pull request from otavio/renode-dts2repl-init 2024-01-08 17:59:37 +00:00
ri
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
sa salmon: init at 1.10.2 2024-01-06 23:10:53 +01:00
sc
sd SDL2_Pango: init at 2.1.5 2024-01-08 14:23:10 +01:00
se
sg/sgfutils
sh
si sirius: fix CUDA build 2024-01-08 20:26:09 +01:00
sl
sm
sn
so
sp spfft: fix CUDA build 2024-01-08 20:25:56 +01:00
sr src: 1.32 -> 1.33 2024-01-03 23:00:25 -03:00
ss/sssnake
st
su
sv/svix-server
sw swayimg: 1.12 -> 2.0 2024-01-03 21:14:24 +01:00
sx sx: 2.1.7 -> 3.0 2024-01-08 12:28:17 +00:00
sy
ta
tc/tcsh
te
th
ti
tk/tkdiff
tl/tlrc
tm/tmuxifier
to/torrentstream
tp
tr
tt/ttop
tu tup: decompose setup hook into more functions 2024-01-04 06:24:03 +00:00
tx/txr
ty
uc
ud
ui
un unrar-free: mark broken in darwin 2024-01-08 19:38:28 +00:00
up
us/usql
ut/ut
uu/uuu
ux/uxn uxn: unstable-2023-12-25 -> unstable-2024-01-04 2024-01-05 23:21:14 +00:00
va/valijson
vc
ve
vg/vgm2x
vi
wa
wb/wb32-dfu-updater
we/websecprobe
wh whistle: 2.9.61 -> 2.9.62 2024-01-06 03:15:15 +00:00
wi
wl/wl-gammarelay-rs
wo
wp/wp-cli
ws/wslay
wt/wtfis
x1/x16
xa/xarcan
xd
xm/xmldiff
xo
xp/xplr xplr: 0.21.3 -> 0.21.5 2024-01-04 05:23:15 +00:00
xs xsct: 2.0 -> 2.1 2024-01-06 04:49:55 +00:00
xw/xwayland-run
ye/yeahwm
yg/yggdrasil
yt
yu/yunfaavatar
za/zapzap
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi/zitadel
zo/zola
zp
zs/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. This is the recommended way to add new top-level packages to Nixpkgs when possible.

Packages found in the named-based structure do not need to be explicitly added to the top-level/all-packages.nix file unless they require overriding the default value of an implicit attribute (see below).

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

$ ./pkgs/test/nixpkgs-check-by-name/scripts/run-local.sh master

See here for more info.