nixpkgs/pkgs/by-name
2024-03-29 21:56:05 +01:00
..
_4/_4th
_9/_9base
a4/a4
a5/a52dec
aa
ab/aba
ac
ad advcpmv: remove 2024-03-29 14:30:23 -03:00
ae
af
ag/ags
ai
al
am
an
ao/aocl-utils
ap
ar
as
at attic-client: remove env attribute 2024-03-26 20:45:10 +01:00
au
av
aw aws-workspaces: 4.6.0.4187 -> 4.7.0.4312 2024-03-26 11:00:20 +01:00
ax/axmldec
ay
ba
bc/bc-ur
be
bi
bk/bk
bl
bm/bmake
bn/bngblaster
bo boxbuddy: 2.1.4 -> 2.1.5 2024-03-27 19:55:18 +00:00
bp/bpftop bpftop: 0.3.0 -> 0.4.0 2024-03-27 20:10:11 +00:00
br
bs/bsync
bt/bt-migrate
bu Merge pull request #276937 from t4ccer/t4/buttermanager 2024-03-29 15:42:01 -04:00
by
c-
c2
ca
cb
cc/ccache
cd
ce
cg
ch
ci
cl clash-verge-rev: 1.5.10 -> 1.5.11 2024-03-28 15:17:14 +00:00
cm
cn/cntb
co Merge pull request #290861 from takac/add-codefresh 2024-03-26 07:51:16 +01:00
cp
cr Merge pull request #296699 from stepbrobd/crunchy-cli 2024-03-26 22:29:02 -05:00
cs csvlens: 0.7.0 -> 0.8.1 2024-03-26 15:06:22 +09:00
ct/ctx
cu
cy
cz/czkawka
da
db/dbus-cpp
dc/dc3dd
dd
de
dg/dgoss
di Merge pull request #293588 from ambroisie/bt-migrate 2024-03-28 00:48:00 +01:00
dj/djent
dm
dn/dns2tcp
do Merge pull request #296729 from mkg20001/docuum 2024-03-29 19:16:18 +01:00
dp/dpp
dr/drone-scp
ds
dt/dtcmp
du dust: 0.9.0 -> 1.0.0 2024-03-27 09:47:35 +08:00
dv/dvb-apps
dx
dy dynamodb-local: add java.naming module for JRE 2024-03-28 21:44:09 +01:00
ea/easyeasm
eb
ec
ed
ei
ek/eksctl
el
em
en
ep/epub-thumbnailer
er
es
et ethercat: init at 1.6-alpha 2024-03-26 23:55:30 +01:00
eu
ex
ez/eza eza: 0.18.8 -> 0.18.9 2024-03-27 08:18:05 +01:00
fa Merge pull request #294891 from dflores1/fastqc 2024-03-28 08:51:36 +09:00
fb/fbset
fc
fe
ff
fi files-cli: 2.12.44 -> 2.12.46 2024-03-28 22:35:22 +00:00
fl flarectl: 0.91.0 -> 0.92.0 2024-03-28 06:48:44 +00:00
fm
fn/fnott
fo folio: 24.08 -> 24.09 2024-03-28 07:10:34 +00:00
fr
fs
fu/fuchsia-cursor
fw/fwupd
fy/fypp
g3/g3kb-switch
ga
gb/gbar
gc treewide: remove explicit -trimpath from Go pkgs 2024-03-28 07:57:19 +01:00
ge
gg/gg
gh
gi
gl Merge pull request #298321 from bhankas/glas 2024-03-27 20:44:09 +01:00
gm
gn
go Merge pull request #293117 from SuperSandro2000/goldwarden 2024-03-27 17:04:26 +01:00
gp
gr graphite-cli: 1.2.3 -> 1.2.8 2024-03-26 21:26:54 +11:00
gt treewide: remove explicit -trimpath from Go pkgs 2024-03-28 07:57:19 +01:00
gu
gx/gxml
h8/h8mail
ha hacompanion: 1.0.11 -> 1.0.12 2024-03-29 14:14:38 +00:00
hd/hdrop
he
hi
hj/hjson-go
ho
ht Merge pull request #291422 from hatch01/httpy-cli 2024-03-29 11:42:18 +01:00
hu/hugo hugo: 0.124.0 -> 0.124.1 2024-03-28 10:05:59 +01:00
hy
i3
ia
ic
id
if/ifrextractor-rs
ig
ii
im
in invidious-router: 1.0 -> 1.1 2024-03-28 21:48:30 +01:00
io/ioq3-scion
ip
ir/ironbar
it itsycal: init at 0.15.3 2024-03-27 16:55:52 +02:00
ja jazz2: 2.5.0 -> 2.6.0 2024-03-27 20:19:14 +01:00
jd/jdt-language-server
je jextract: unstable-2023-11-27 -> unstable-2024-03-13 2024-03-26 15:08:30 +01:00
ji
jj/jj
jn
jo Merge pull request #294017 from fgaz/job-security/init 2024-03-27 10:47:59 +01:00
js/jsoncons
ju
ka
kc
kd/kdsingleapplication
ke
kg/kgeotag
ki
kl/klog-time-tracker
km Merge pull request #292303 from Vinetos/add-kmeet 2024-03-29 10:07:56 +01:00
kn/knossosnet
ko
kp/kplex
kr
ks/kseexpr
kt
ku
kx/kxstitch
ky/kyverno-chainsaw
la
lb
lc/lcab
le
li
ll llama-cpp: update from b2481 to b2568 2024-03-28 20:56:55 -04:00
lm/lmstudio lmstudio: init at 0.2.18 2024-03-28 19:30:20 +01:00
ln/lngen
lo
lp
ls
lt/ltris
lu lubelogger: 1.2.8 -> 1.2.9 2024-03-29 15:09:18 +00:00
lw/lwgrp
lz
m2
ma Merge pull request #298923 from linsui/markdown-oxide 2024-03-26 09:14:10 -04:00
mb/mbpoll
mc
md
me
mf
mg/mgitstatus
mi Merge pull request #297897 from r-ryantm/auto-update/microsoft-identity-broker 2024-03-28 00:57:32 +00:00
mk
ml/mlx42
mo Merge pull request #278981 from dotlambda/mollysocket-init 2024-03-28 18:51:07 +00:00
mp/mpifileutils
mq
ms
mu
my nixos/mycelium: 0.4.3 -> 0.4.5 2024-03-29 13:51:14 +01:00
n2/n2
na namespace-cli: 0.0.351 -> 0.0.352 2024-03-28 02:38:54 +00:00
nb/nbtscan
nc
nd/ndstrim
ne
nf/nfft
nh
ni
nl
nm/nmap-parse
nn/nncp
no
np
nr
ns
nt/ntfs2btrfs
nu
nv
nw Merge pull request #298702 from r-ryantm/auto-update/nwg-hello 2024-03-26 08:59:52 -04:00
oa
ob obs-cmd: 0.17.4 -> 0.17.5 2024-03-26 14:27:43 +00:00
oc
oe/oelint-adv
of/offpunk
oh/oh-my-fish
oi
ol/olvid
om/omniorbpy
on
op
or orchard: 0.15.1 -> 0.15.2 2024-03-26 08:45:27 +00:00
os
ot oterm: 0.1.22 -> 0.2.4 2024-03-26 10:32:28 +01:00
ou
ov
ow
pa
pd Merge pull request #299514 from Aleksanaa/pdf4qt 2024-03-29 21:56:05 +01:00
pe
pf/pfft
pg pgmoneta: 0.9.0 -> 0.10.0 2024-03-29 01:46:06 +00:00
ph
pi
pk/pkcrack
pl platformsh: add spk as maintainer 2024-03-28 11:34:44 +01:00
pm
pn
po pot: 2.7.4 -> 2.7.9 2024-03-29 16:59:48 +08:00
pp/ppsspp
pq
pr Merge pull request #296127 from rsniezek/protonmail 2024-03-28 13:07:38 +01:00
pt
pu
pw
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qr
qs
qt/qtractor
qu
ra railway-travel: init at 2.4.0 2024-03-29 17:18:17 +01:00
rc
rd/rdwatool
re Merge pull request #299539 from otavio/renode-upd-script 2024-03-28 10:15:32 -04:00
ri
rk/rkbin
rl/rl_json
rm/rmg
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
rw/rwpspread
ry/ryujinx
s3
sa
sc scion: add passthru.tests 2024-03-27 08:02:59 +00:00
sd
se sesh: 0.15.0 -> 1.0.1 2024-03-29 04:42:30 +00:00
sg/sgfutils
sh
si
sl
sm smuxi: init at unstable-2023-07-01 2024-03-27 08:45:34 +08:00
sn
so
sp spicetify-cli: 2.34.1 -> 2.36.0 2024-03-27 07:04:33 +00:00
sq Merge pull request #293588 from ambroisie/bt-migrate 2024-03-28 00:48:00 +01:00
sr
ss Merge pull request #249404 from stigtsp/package/ssh-tpm-agent-init 2024-03-27 04:21:26 +01:00
st Merge pull request #297245 from DerRockWolf/add/stackit-cli 2024-03-27 11:16:30 +01:00
su
sv
sw swaymux: init at 1.0 2024-03-27 09:07:37 +01:00
sx
sy
t-/t-rex
ta
tc/tcsh
td/tdl
te Merge pull request #296454 from Kropatz/update-tetrio-desktop 2024-03-26 21:40:39 +01:00
tg/tgpt
th
ti tinymist: add code comment 2024-03-29 09:59:12 +01:00
tk/tkdiff
tl tlrc: 1.9.0 -> 1.9.1 2024-03-28 21:47:17 +01:00
tm/tmuxifier
to
tp
tr treedome: 0.4.3 -> 0.4.5 2024-03-29 11:41:10 +07:00
tt/ttop
tu
tx/txr
ty typstyle: init at 0.11.5 2024-03-29 11:44:01 +01:00
uc
ud
ue
ug/ugrep-indexer
ui
um/umpire
un
up treewide: remove explicit -trimpath from Go pkgs 2024-03-28 07:57:19 +01:00
us/usql
ut
uu/uuu
uv/uv
uw/uwhoisd
ux/uxn
va
vc
ve
vg/vgm2x
vi
vl
vu/vulkan-volk
wa
wb/wb32-dfu-updater
we Merge pull request #293730 from pokon548/add-wechat-uos 2024-03-28 11:00:10 +01:00
wh
wi Merge pull request #299726 from r-ryantm/auto-update/wit-bindgen 2024-03-28 13:21:33 +00:00
wl
wo
wp/wp-cli
ws wslay: fix package 2024-03-28 17:35:18 +01:00
wt/wtfis
wy/wyoming-satellite wyoming-satellite: init at 1.2.0 2024-03-29 03:04:43 +01:00
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe
xf/xfs-undelete
xi xivlauncher: remove TZ environment variable due to timezone bug 2024-03-26 03:00:17 +01:00
xm
xo
xp/xplr
xr/xr-hardware xr-hardware: add update script 2024-03-26 21:32:44 +01:00
xs
xw/xwayland-run
ya
ye
yg/yggdrasil
yj/yj
yo
ys/ysfx
yt
yu
za
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi zircolite: refactor 2024-03-29 10:17:14 +01:00
zo/zola
zp
zs
zu/zug
zw/zwave-js-server
zx
README.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00

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;
}