nixpkgs/pkgs/by-name
2024-03-24 12:27:20 +01:00
..
_4/_4th
_9/_9base
a4/a4
a5/a52dec
aa
ab/aba
ac
ad
ae
af
ag/ags
ai
al alephone-apotheosis-x: change license to unfree 2024-03-20 20:48:45 +01:00
am
an
ao/aocl-utils
ap apt: 2.7.13 -> 2.7.14 2024-03-23 00:21:53 +00:00
ar Merge pull request #296826 from NotAShelf/bump-arrpc 2024-03-22 00:35:36 +01:00
as
at
au Merge pull request #292109 from jvanbruegge/authentik-2024.2 2024-03-21 16:45:59 +07:00
av
aw
ax/axmldec
ay
ba
bc/bc-ur
be
bi bitmagnet: 0.7.0 -> 0.7.14 2024-03-24 00:12:30 +00:00
bk/bk
bl
bm/bmake
bn/bngblaster
bo
bp/bpftop
br
bs/bsync
bu
by
c-
c2
ca
cb cbtemulator: init at 1.22.0 2024-03-23 18:24:44 +01:00
cc/ccache
cd
ce
cg/cgl
ch Merge pull request #298511 from a-n-n-a-l-e-e/ch341eeprom-license 2024-03-23 23:24:35 -07:00
ci
cl clash-verge-rev: 1.5.9 -> 1.5.10 2024-03-22 03:21:14 +00:00
cm
cn/cntb
co Merge pull request #288627 from ahoneybun/resync-cosmic-edit 2024-03-21 00:46:33 +01:00
cp
cr
cs
ct/ctx
cu Merge pull request #297569 from anthonyroussel/update-cucumber 2024-03-21 07:23:31 -05:00
cy
cz/czkawka
da
db/dbus-cpp
dc/dc3dd
dd
de devenv: add meta attributes 2024-03-22 09:03:10 +01:00
di dissent: 0.0.21 -> 0.0.22 2024-03-20 16:46:44 -03:00
dj/djent
dm
dn/dns2tcp
do
dp/dpp
dr/drone-scp
ds
dt/dtcmp
du
dv/dvb-apps
dx
dy
ea/easyeasm
eb
ec
ed
ei eigenlayer: 0.6.2 -> 0.6.3 2024-03-20 16:21:01 +00:00
ek/eksctl eksctl: 0.174.0 -> 0.175.0 2024-03-22 16:21:47 +00:00
el
em
en
er
es
et/etlegacy
eu
ex
ez/eza eza: 0.18.7 -> 0.18.8 2024-03-21 10:00:51 +01:00
fa fanbox-dl: 0.19.2 -> 0.20.0 2024-03-21 17:51:40 +00:00
fb/fbset
fc
fe
ff
fi files-cli: 2.12.43 -> 2.12.44 2024-03-22 08:10:06 +00:00
fl flarectl: 0.90.0 -> 0.91.0 2024-03-22 00:58:23 +00:00
fm
fn/fnott
fo folio: 24.07 -> 24.08 2024-03-22 01:26:14 +00:00
fr fritz-exporter: 2.4.3 -> 2.5.0 2024-03-23 16:32:25 +01:00
fs
fu/fuchsia-cursor
fw/fwupd
fy/fypp
g3/g3kb-switch
ga
gb/gbar
gc
ge treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
gg/gg
gh gh-copilot: 0.5.4-beta -> 1.0.1 2024-03-23 15:43:46 +01:00
gi gitu: 0.7.2 -> 0.8.0 2024-03-22 18:26:29 +00:00
gl Merge pull request #285513 from jakuzure/glasskube-init 2024-03-21 22:56:18 +01:00
gm
gn
go
gp
gr
gt
gu
gx/gxml
h8/h8mail
ha
hd/hdrop treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
he
hi hifiscan: init at 1.5.2 (#285560) 2024-03-21 14:59:34 +04:00
hj/hjson-go
ho
ht
hu/hugo hugo: fix invalid vendorHash 2024-03-22 13:41:24 +01:00
hy
i3
ia
ic
id
if/ifrextractor-rs
ig ignite-cli: 28.2.0 -> 28.3.0 2024-03-20 23:22:02 +00:00
ii
im Merge pull request #290893 from pcasaretto/immersed-vr-darwin 2024-03-21 13:27:53 +01:00
in
io/ioq3-scion
ip
ir/ironbar
it/itch
ja treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
jd/jdt-language-server
ji
jj/jj
jn jnv: init at 0.1.2 2024-03-21 14:14:06 -04:00
jo
js/jsoncons
ju
ka
kc
kd/kdsingleapplication
ke
kg/kgeotag
ki
kl/klog-time-tracker
km
kn/knossosnet
ko
kp/kplex
kr
ks/kseexpr
kt
ku
kx/kxstitch
ky/kyverno-chainsaw
la lan-mouse: 0.6.0 -> 0.7.3 2024-03-22 14:06:24 +01:00
lb
lc/lcab
le
li Merge pull request #297797 from r-ryantm/auto-update/livekit-cli 2024-03-22 12:13:32 -04:00
ll llama-cpp: 2454 -> 2481 2024-03-21 17:34:35 +00:00
ln/lngen
lo Merge pull request #291647 from ck3d/localai-init 2024-03-22 17:07:54 +07:00
lp
ls
lt/ltris
lu lubelogger: 1.2.7 -> 1.2.8 2024-03-21 18:42:44 +00:00
lw/lwgrp
lz
m2
ma
mb/mbpoll
mc
md
me Merge pull request #279618 from zebreus/init-med 2024-03-23 02:23:17 +01:00
mf
mg/mgitstatus
mi Merge pull request #287966 from Guanran928/clash-meta 2024-03-21 10:40:10 +02:00
mk
ml/mlx42
mo treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
mp/mpifileutils
mq
ms mscompress: init at 0.4 (#297688) 2024-03-21 14:51:37 +01:00
mu
my
n2/n2
na
nb/nbtscan
nc
nd/ndstrim
ne
nf/nfft
nh
ni nix-ld-rs: init at 2024-03-23 2024-03-24 12:27:20 +01:00
nl
nm/nmap-parse
nn/nncp
no Merge pull request #272530 from yannickulrich/normaliz-v3.10.1 2024-03-21 17:09:25 +01:00
np
nr
ns
nu
nv
nw
oa
ob
oc
oe/oelint-adv oelint-adv: 4.4.4 -> 4.4.5 2024-03-23 00:10:55 +00:00
of/offpunk
oh/oh-my-fish
oi
ol/olvid treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
on
op opcua-commander: init at 0.37.0 2024-03-23 13:17:53 +01:00
or
os
ot
ou
ov
ow owmods-cli: fix build on darwin 2024-03-20 22:37:22 +01:00
pa payme: fix version number string (#297480) 2024-03-22 13:55:44 +01:00
pd treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
pe pest: 2.34.4 -> 2.34.5 2024-03-24 10:36:03 +01:00
pf/pfft
pg
ph
pi
pk/pkcrack
pl Merge pull request #291443 from imadnyc/plasticity 2024-03-24 09:36:03 +11:00
pm
pn
po
pp/ppsspp
pq
pr prettypst: unstable-2023-11-27 -> unstable-2023-12-06 2024-03-23 19:41:23 +01:00
pt
pu
pw
px/pxder
py
pz/pzip
qa/qadwaitadecorations qadwaitadecorations-qt6: 0.1.4 -> 0.1.5 2024-03-21 09:16:11 +00:00
qc/qcm
qd/qdirstat
qg/qgrep
qr
qs
qt/qtractor
qu
ra
rc
rd/rdwatool
re Merge pull request #292645 from soispha/add-redlib 2024-03-23 19:18:08 +01:00
ri
rk/rkbin rkbin: make passthru attributes use full paths, fix license, fix BL31_RK3568 path 2024-03-22 08:46:57 +03:00
rl/rl_json
rm/rmg
ro Merge pull request #296778 from NixOS/revert-291870-auto-update/roxterm 2024-03-23 16:28:35 +01:00
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
rw/rwpspread
ry/ryujinx
s3
sa
sc scion: use buildGo121Module 2024-03-24 11:23:35 +00:00
sd
se
sg/sgfutils
sh
si Merge pull request #295905 from r-ryantm/auto-update/simde 2024-03-23 23:18:58 +01:00
sl
sm
sn
so
sp Merge pull request #297855 from r-ryantm/auto-update/spfft 2024-03-23 22:21:50 +01:00
sq
sr
ss
st stanc: move to by-name, refactor 2024-03-21 15:07:51 +01:00
su Merge pull request #291214 from RatCornu/suwayomi-server 2024-03-23 17:56:19 +01:00
sv
sw
sx
sy symfony-cli: 5.8.13 -> 5.8.14 2024-03-24 05:34:44 +00:00
t-/t-rex
ta
tc/tcsh
td/tdl
te Merge pull request #297642 from rmgpinto/master 2024-03-22 13:02:29 +00:00
tg/tgpt
th
ti tippecanoe: 2.51.0 -> 2.52.0 2024-03-22 19:22:25 +00:00
tk/tkdiff
tl
tm/tmuxifier
to
tp tpnote: 1.23.9 -> 1.23.10 2024-03-21 20:26:16 +02:00
tr treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
tt/ttop
tu
tx/txr
ty Merge pull request #297865 from r-ryantm/auto-update/typst-preview 2024-03-22 11:48:20 -04:00
uc
ud
ue
ui
um/umpire
un
up
us/usql
ut
uu/uuu
uv/uv
uw/uwhoisd uwhoisd: init at 0.1.0-unstable-2024-02-24 2024-03-21 21:15:14 +01:00
ux/uxn
va
vc
ve
vg/vgm2x
vi Merge pull request #296847 from doronbehar/pkg/vim-language-server 2024-03-23 20:37:21 +02:00
vl
vu/vulkan-volk
wa warp-terminal: 0.2024.03.12.08.02.stable_01 -> 0.2024.03.19.08.01.stable_01 2024-03-23 08:00:29 +00:00
wb/wb32-dfu-updater
we websecprobe: refactor 2024-03-23 13:03:07 +01:00
wh
wi
wl Merge pull request #297163 from quantenzitrone/wl-gammarelay-rs 2024-03-23 17:22:35 +01:00
wo
wp/wp-cli
ws
wt/wtfis
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe/xeol
xf/xfs-undelete
xi
xm
xo
xp/xplr
xr/xr-hardware
xs
xw/xwayland-run
ya yamlscript: 0.1.45 -> 0.1.46 2024-03-23 03:56:43 +00:00
ye
yg/yggdrasil
yj/yj
yo youtrack: 2024.1.25893 -> 2024.1.26888 2024-03-23 11:35:15 +00:00
ys/ysfx
yt
yu/yunfaavatar
za
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi
zo/zola
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

$ ./pkgs/test/nixpkgs-check-by-name/scripts/run-local.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;