nixpkgs/pkgs/by-name
2023-12-13 11:20:16 +11:00
..
_4/_4th
_9/_9base
a4/a4
aa aaaaxy: 1.4.101 -> 1.4.119 2023-12-11 22:14:48 +01:00
ab/aba
ac
ad/adafruit-nrfutil
ae/aeron-cpp aeron-cpp: init at 1.42.1 2023-12-08 16:38:18 +00:00
af/afterstep
ai
al alephone: 1.6.2 -> 1.7 2023-12-10 09:25:34 +00:00
am/amazon-ssm-agent
ao/aocl-utils
ap
ar Merge pull request #272554 from clerie/clerie/arduino-ide-2.2.1 2023-12-07 22:26:28 +01:00
as
at/athens athens: 0.12.1 -> 0.13.0 2023-12-12 09:38:28 +01:00
au/auto-epp
av/avr-sim
aw/aws-azure-login
ax/axmldec
ay/ayatana-indicator-messages
ba
be
bi
bk/bk
bl/bluetility
bm/bmake
bn/bngblaster
bo
br bruno: 1.3.1 -> 1.4.0 2023-12-09 10:17:11 +10:00
bu
c2
ca Merge pull request #264725 from Eliot00/init-cargo-swift 2023-12-07 11:04:47 +01:00
cb/cbmbasic
cd
ce certmgr: 1.6.4 -> 3.0.3, migrate to buildGoModule and by-name 2023-11-30 23:32:54 +01:00
cg/cgl
ch/changelog-d
ci
cl
cm Merge master into staging-next 2023-12-08 06:00:55 +00:00
cn/cntb
co cockpit: 305 -> 306 2023-12-11 09:39:05 +00:00
cp/cpu-x cpu-x: 5.0.1 -> 5.0.2 2023-12-07 01:38:56 +00:00
cr
ct/ctx
cy
da/dark-mode-notify
db/dbus-cpp
de Merge pull request #273577 from fabaff/dependency-track-exporter 2023-12-12 08:40:35 +01:00
di
dj/djent
dm/dmenu-bluetooth
do
dr/drone-scp
dt/dtcmp
du durden: unstable-2023-08-11 -> unstable-2023-10-23 2023-12-05 23:04:47 -03:00
dv/dvb-apps
dx
dy/dyalog
ec
ei/eiwd
ek/eksctl
el/elvish
em
en/engage
er/eriscmd
es/esbuild-config
eu/eudev
ez/eza eza: 0.16.2 -> 0.16.3 2023-12-07 06:00:46 +01:00
fa
fc
fe/feather
ff/ff2mpv-go ff2mpv-go: init at 1.0.1 2023-12-07 19:17:56 +00:00
fi/firewalk
fl
fm
fn/fnott
fo footswitch: unstable-2022-04-12 -> unstable-2023-10-10 2023-12-11 15:03:56 -05:00
fr free42: 3.1 -> 3.1.2 2023-12-11 12:09:59 -03:00
ga
gb/gbar
gc
ge
gh
gi gickup: 0.10.22 -> 0.10.23 2023-12-04 23:46:29 +00:00
gl/glycin-loaders
gm/gmic
go gosmore: move to pkgs/by-name 2023-12-09 17:54:46 +01:00
gr gruvbox-plus-icon-pack: init at unstable-2023-11-07 2023-12-07 16:53:21 +03:00
gu guile-lzma: don't strip on darwin 2023-12-05 00:47:20 +01:00
ha Merge pull request #269767 from onemoresuza/haredo 2023-12-06 17:05:38 +01:00
hd/hdrop hdrop: init at 0.2.4 2023-12-06 04:09:38 +01:00
he
hi/hifile
ho
hy
i3/i3bar-river i3bar-river: 0.1.5 -> 0.1.6 2023-12-08 22:42:33 +00:00
ia/ia-writer-quattro ia-writer-quattro: init at unstable-2023-06-16 2023-12-04 00:29:33 +01:00
ic/icewm
id/idsk idsk: refactor 2023-12-10 14:42:19 +01:00
if/ifrextractor-rs
im
in Merge pull request #265961 from 999eagle/feat/intiface-central 2023-12-12 02:43:31 +02:00
ir/ironbar
ja
ji jigdo: 0.7.3 -> 0.8.2, refactor 2023-12-10 23:10:35 +01:00
jo/joycond-cemuhook
ju/justbuild
ka/katriawm
kc/kconfig-frontends
kd/kdsingleapplication
ke
kg/kgeotag
ki/kikit
km/kmsvnc
ko kor: 0.3.0 -> 0.3.2 2023-12-11 06:30:32 +00:00
ks/kseexpr
kt/ktfmt
ku/kubectl-neat
la Merge master into staging-next 2023-12-07 12:01:24 +00:00
lc/lcab
le
li Merge pull request #246771 from OPNA2608/update/fmtoy 2023-12-07 00:48:48 +01:00
ll
ln/lngen
lo/loupe
lu
lw/lwgrp
lx/lxd-to-incus treewide/lxc: set lxc team as maintainer 2023-12-04 10:06:50 -05:00
m2
ma Merge pull request #271823 from doronbehar/pkg/matlab-language-server 2023-12-06 14:15:21 +00:00
mc/mcuboot-imgtool
me memtree: Add missing mainProgram metadata 2023-12-09 14:15:47 +00:00
mf/mfoc-hardnested
mi
mk/mksh
ml/mlx42
mo mosdepth: 0.3.5 -> 0.3.6 2023-12-06 10:53:03 +00:00
mp/mpifileutils
ms/msolve
mu/mus
my/mystmd
n2/n2
na
ne
nf/nfft
nh/nh nh: init at 3.4.12 2023-12-05 19:48:24 +01:00
ni nix-direnv: 2.5.1 -> 3.0.0 2023-12-11 10:56:38 +01:00
nl/nls
nn/nncp
no nomnatong: init at 5.07 2023-12-08 07:53:39 -05:00
nr/nrpl
ns
nu
nw/nwg-drawer nwg-drawer: 0.4.1 -> 0.4.3 2023-12-05 19:09:26 +00:00
oa Merge pull request #199993 from wentasah/oauth2ms 2023-12-11 09:31:07 -05:00
oc
oe/oelint-adv
of/offpunk
oh/oh-my-fish
on
op openobserve: init at 0.7.2 2023-12-04 23:40:54 +00:00
or/orchard
ot
ou/outputcheck
ow/owncloud-client
pa passmark-performancetest: init at 11.0.1002 2023-12-10 23:59:41 -08:00
pd
pe perl-debug-adapter: init at 1.0.5 2023-12-04 14:23:19 +02:00
pg/pgmoneta
ph phpunit: add meta.mainProgram 2023-12-05 16:40:44 +01:00
pi pipeworld: unstable-2023-03-02 -> unstable-2023-02-05 2023-12-05 23:04:47 -03:00
pl platformsh: 4.10.0 -> 4.11.4 2023-12-11 14:49:28 -03:00
po polybar-pulseaudio-control: init at 3.1.1 2023-12-07 14:33:40 -07:00
pp/ppsspp
pr Merge pull request #270301 from atorres1985-contrib/arcan 2023-12-06 23:58:55 +01:00
pt/pterm
pw/pw3270
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qr/qrtool
qu
ra treewide/lxc: set lxc team as maintainer 2023-12-04 10:06:50 -05:00
rc rclip: init at 1.7.6 2023-12-06 16:20:02 +08:00
re regina: 3.9.1 -> 3.9.5; move to by-name 2023-12-09 00:43:30 +01:00
ri rita: init at 4.8.0 2023-12-07 11:17:39 +01:00
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
sa satty: 0.7.0 -> 0.8.0 2023-12-04 15:02:34 +01:00
sc
sd/sdcc
se Merge pull request #271034 from WolfangAukang/serverless-buildnpm 2023-12-08 02:13:22 +01:00
sg/sgfutils sgfutils: init at unstable-2017-11-27 2023-12-04 23:40:12 +02:00
sh
si simdutf: 4.0.5 -> 4.0.8 2023-12-05 11:56:56 +00:00
sl
sm
sn
so
sp Merge pull request #273422 from Gerg-L/spicetify 2023-12-11 10:32:24 -05:00
ss/sssnake sshx: split components, unstable-2023-11-04 -> unstable-2023-11-23 2023-12-04 05:33:26 +02:00
st steamguard-cli: 0.12.3 -> 0.12.5 2023-12-09 11:28:05 +00:00
su supersonic: 0.8.0 -> 0.8.1 2023-12-07 11:26:11 +10:00
sv/svix-server
sw swayimg: add version tester 2023-12-09 19:00:00 +01:00
sx/sxhkd
sy syndicate_utils: init at 20231130 2023-12-10 09:26:02 +00:00
ta tailscale-nginx-auth: init at 1.48.2 2023-12-06 20:57:38 +01:00
tc/tcsh
te
th Merge pull request #261960 from eclairevoyant/themix-gui 2023-12-04 00:43:57 +01:00
ti
tk/tkdiff
tl/tlrc
tm/tmuxifier
to/torrentstream
tp
tr trealla: 2.30.7 -> 2.31.6 2023-12-07 22:21:59 +00:00
tt/ttop
tu
tx/txr
ty typst: 0.9.0 -> 0.10.0 2023-12-04 17:15:02 +01:00
uc
ud
ui uiua: 0.5.1 -> 0.6.1 2023-12-08 17:31:40 +01:00
un
up
us/usql usql: 0.16.0 -> 0.17.0 2023-12-08 00:54:00 +00:00
ut/ut
uu/uuu
ux/uxn uxn: unstable-2023-11-12 -> unstable-2023-12-05 2023-12-08 00:52:20 +00:00
va/valijson
vc vcpkg: init at 2023.08.09 2023-12-07 10:01:01 -03:00
ve
vg/vgm2x
vi vinegar: 1.5.8 -> 1.5.9 2023-12-10 17:48:16 -05:00
wa wannier90: init at 3.1.0 2023-12-04 17:06:47 +01:00
wb/wb32-dfu-updater
we/websecprobe
wh
wi nixos/windmill: init module 2023-12-05 22:54:18 +00:00
wo
wp/wp-cli
ws/wslay
wt/wtfis
xa/xarcan xarcan: unstable-2022-06-14 -> unstable-2023-11-03 2023-12-05 23:04:47 -03:00
xd/xdg-desktop-portal-cosmic xdg-desktop-portal-cosmic: init at unstable-2023-12-07 2023-12-07 22:51:17 -05:00
xm/xmldiff
xo xorriso: update hash 2023-12-06 14:06:36 +01:00
xs
ye/yeahwm
yg/yggdrasil yggdrasil: 0.5.2 → 0.5.4 2023-12-06 07:15:16 +00:00
yt
yu/yunfaavatar
za/zapzap zapzap: init at 4.5.5.2 2023-12-10 02:28:31 +01:00
zc/zcfan
ze/zesarux
zi/zitadel
zp
zs/zs
zu/zug
zw/zwave-js-server
zx
README.md pkgs/by-name: Mention possibility of avoiding alternate callPackage's 2023-12-06 23:29:27 +01:00

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. The version of this tool used is the one that corresponds to the NixOS channel of the PR base branch. See here for details.

The tool can be run locally using

nix-build -A tests.nixpkgs-check-by-name
result/bin/nixpkgs-check-by-name .