nixpkgs/pkgs/by-name
2024-03-28 00:53:40 +01:00
..
_4/_4th
_9/_9base
a4/a4
a5/a52dec
aa
ab/aba
ac
ad
ae
af affine: init at 0.13.1 2024-03-25 09:02:26 +08:00
ag/ags
ai
al
am
an
ao/aocl-utils
ap Revert "appium-inspector: init at 2024.3.1" 2024-03-24 22:43:57 +01:00
ar
as ast-grep: 0.19.4 -> 0.20.0 2024-03-24 13:52:49 +00:00
at attic-client: remove env attribute 2024-03-26 20:45:10 +01:00
au autosuspend: move to pkgs/by-name 2024-03-24 22:01:10 +01:00
av
aw aws-workspaces: 4.6.0.4187 -> 4.7.0.4312 2024-03-26 11:00:20 +01:00
ax/axmldec
ay
ba Merge pull request #277394 from lucasew/python/backgroundremover 2024-03-25 23:08:41 +01:00
bc/bc-ur
be
bi Merge pull request #261532 from eclairevoyant/bibata-cursors 2024-03-25 16:43:36 +01:00
bk/bk
bl blueutil: init at 2.9.1 2024-03-25 01:16:01 +08:00
bm/bmake
bn/bngblaster
bo
bp/bpftop
br bruno: 1.11.0 -> 1.12.2 (#298809) 2024-03-25 17:16:30 +01:00
bs/bsync
bt/bt-migrate bt-migrate: init at 0-unstable-2023-08-17 2024-03-25 18:19:38 +00:00
bu
by
c2
c-
ca
cb cbtemulator: init at 1.22.0 2024-03-23 18:24:44 +01:00
cc/ccache
cd
ce
cg cgterm: init at 1.7b2 2024-03-24 13:01:00 +00:00
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
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 devenv: add version test 2024-03-25 21:24:12 +01:00
dg/dgoss dgoss: move to pkgs/by-name 2024-03-25 18:49:47 +01:00
di Merge pull request #293588 from ambroisie/bt-migrate 2024-03-28 00:48:00 +01:00
dj/djent
dm dmalloc: init at 5.6.5 2024-03-23 15:40:06 +03:00
dn/dns2tcp
do docker-credential-gcr: move to pkgs/by-name 2024-03-24 11:50:42 +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
ea/easyeasm
eb
ec
ed
ei
ek/eksctl
el elasticsearch-curator: move to by-name 2024-03-24 12:11:28 +01:00
em
en
ep/epub-thumbnailer epub-thumbnailer: init at unstable-2024-03-16 2024-03-25 10:48:21 +01:00
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 Merge pull request #263404 from camillemndn/firefoxpwa 2024-03-25 16:38:52 -04:00
fl flashprog: refactor make jlink and gpio support configurable 2024-03-25 00:34:14 +01:00
fm
fn/fnott
fo Merge pull request #298895 from fabaff/forbidden 2024-03-25 23:54:58 +01:00
fr frankenphp: 1.1.0 -> 1.1.2 (#297649) 2024-03-25 13:31:10 +01:00
fs
fu/fuchsia-cursor
fw/fwupd
fy/fypp
g3/g3kb-switch
ga gat: init at 0.17.0 2024-03-25 07:21:32 +03:00
gb/gbar
gc
ge
gg/gg
gh gh-copilot: 0.5.4-beta -> 1.0.1 2024-03-23 15:43:46 +01:00
gi
gl Merge pull request #298321 from bhankas/glas 2024-03-27 20:44:09 +01:00
gm
gn gnucap: deprecate phases 2024-03-25 21:54:08 +01:00
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 gtkhash: init at 1.5 2024-03-27 18:27:49 +01:00
gu
gx/gxml
h8/h8mail
ha hacompanion: init at 1.0.11 2024-03-26 14:31:15 +01:00
hd/hdrop
he
hi
hj/hjson-go
ho home-manager: unstable-2024-03-19 -> unstable-2024-03-22 2024-03-23 15:59:29 +00:00
ht
hu/hugo
hy hyprcursor: 0.1.4 -> 0.1.5 2024-03-24 23:22:00 +00:00
i3
ia
ic icewm: 3.4.6 -> 3.4.7 2024-03-26 01:39:44 +00:00
id
if/ifrextractor-rs
ig igir: 2.5.2 -> 2.6.0 2024-03-23 15:09:51 +00:00
ii
im
in incus: 0.6 -> 0.7 2024-03-26 20:08:43 -04:00
io/ioq3-scion
ip
ir/ironbar
it itsycal: init at 0.15.3 2024-03-27 16:55:52 +02:00
ja
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 jnv: 0.1.2 -> 0.1.3 2024-03-24 13:27:30 +00:00
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 klog-time-tracker: 6.2 -> 6.3 2024-03-23 22:43:54 +00:00
km
kn/knossosnet
ko kor: 0.3.6 -> 0.3.7 2024-03-25 01:40:25 +00:00
kp/kplex
kr
ks/kseexpr
kt
ku
kx/kxstitch
ky/kyverno-chainsaw
la
lb
lc/lcab
le
li Merge pull request #258998 from pongo1231/libhttpserver 2024-03-25 23:22:45 +01:00
ll llama-cpp: fix blasSupport (#298567) 2024-03-25 18:55:45 +01:00
ln/lngen
lo
lp
ls
lt/ltris
lu lunar-client: 3.2.3 -> 3.2.4 2024-03-27 20:13:56 +01: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 #296852 from Ramblurr/add-microsocks 2024-03-26 08:34:45 -03:00
mk
ml/mlx42
mo mousecape: move to by-name/mo 2024-03-27 18:43:54 +02:00
mp/mpifileutils
mq
ms
mu
my Merge pull request #298449 from AdoPi/myanon 2024-03-26 12:58:41 +01:00
n2/n2
na
nb/nbtscan
nc
nd/ndstrim
ne
nf/nfft
nh
ni Merge pull request #298607 from Mic92/nix-ld-rs 2024-03-25 14:52:21 +01:00
nl
nm/nmap-parse
nn/nncp nncp: fix build 2024-03-24 09:28:39 +01:00
no Merge pull request #295935 from Aleksanaa/notify 2024-03-26 02:35:03 +01:00
np
nr
ns
nt/ntfs2btrfs ntfs2btrfs: init at 20240115 2024-03-24 17:01:38 +07:00
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 omniorbpy: init at 4.3.2 2024-03-25 09:50:19 +01:00
on
op opcua-commander: init at 0.37.0 2024-03-23 13:17:53 +01:00
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 overskride: 0.5.6 -> 0.5.7 2024-03-24 13:27:21 +00:00
ow owmods-cli: 0.13.0 -> 0.13.1 2024-03-24 11:01:08 +00:00
pa
pd
pe pest: 2.34.4 -> 2.34.5 2024-03-24 10:36:03 +01:00
pf/pfft
pg
ph Merge pull request #286685 from max-niederman/photonvision 2024-03-24 22:05:36 +01:00
pi
pk/pkcrack
pl plumber: 2.6.0 -> 2.6.1 2024-03-27 03:55:55 +00:00
pm
pn
po
pp/ppsspp
pq
pr Merge pull request #297271 from r-ryantm/auto-update/primecount 2024-03-25 00:49:51 +00:00
pt
pu puncia: init at 0.15-unstable-2024-03-23 2024-03-25 12:21:00 +01:00
pw
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qr
qs
qt/qtractor
qu
ra ratslap: init at 0.4.1 2024-03-26 05:13:35 +01:00
rc rcp: 0.6.0 -> 0.7.0 2024-03-24 15:05:19 -06:00
rd/rdwatool
re renode-unstable: 1.15.0+20240320git97be875a3 -> 1.15.0+20240323git3bd8e280d 2024-03-26 22:15:49 +00:00
ri ricochet-refresh: 3.0.18 -> 3.0.22 (#298866) 2024-03-25 21:39:54 +01:00
rk/rkbin
rl/rl_json
rm/rmg
ro robotframework-tidy: move from python3Packages.robotframework-tidy 2024-03-25 14:59:38 -04:00
rp/rpcs3
rq/rqbit rqbit: 5.5.0 -> 5.5.3 2024-03-25 04:20:00 +00:00
rs
rt/rtl-sdr-osmocom
ru
rw/rwpspread
ry/ryujinx
s3
sa sarasa-gothic: 1.0.7 -> 1.0.8 2024-03-24 04:19:28 +00:00
sc scion: add passthru.tests 2024-03-27 08:02:59 +00:00
sd
se
sg/sgfutils
sh shopware-cli: 0.4.29 -> 0.4.30 2024-03-25 14:57:58 +00:00
si Merge pull request #295905 from r-ryantm/auto-update/simde 2024-03-23 23:18:58 +01:00
sl
sm smuxi: init at unstable-2023-07-01 2024-03-27 08:45:34 +08:00
sn
so
sp Merge pull request #297855 from r-ryantm/auto-update/spfft 2024-03-23 22:21:50 +01: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 Merge pull request #291214 from RatCornu/suwayomi-server 2024-03-23 17:56:19 +01:00
sv
sw swaymux: init at 1.0 2024-03-27 09:07:37 +01:00
sx
sy symfony-cli: 5.8.13 -> 5.8.14 2024-03-24 05:34:44 +00:00
t-/t-rex
ta tailscale-nginx-auth: 1.58.2 -> 1.62.0 2024-03-25 03:37:19 +00:00
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 Merge pull request #287542 from lorenz/add-tinymembench 2024-03-24 17:53:45 +01:00
tk/tkdiff
tl tlrc: 1.8.0 -> 1.9.0 2024-03-24 13:46:08 +01:00
tm/tmuxifier
to
tp
tr
tt/ttop
tu tunnelgraf: init at 0.6.1 2024-03-25 10:15:36 +01:00
tx/txr
ty typos-lsp: 0.1.15 -> 0.1.16 2024-03-26 13:01:34 +00:00
uc
ud
ue
ug/ugrep-indexer
ui
um/umpire
un universal-android-debloater: 1.0.2 -> 1.0.3 2024-03-25 18:42:00 +00:00
up
us/usql
ut
uu/uuu
uv/uv uv: 0.1.22 -> 0.1.24 2024-03-25 05:36:47 +00:00
uw/uwhoisd
ux/uxn
va
vc Merge pull request #297400 from r-ryantm/auto-update/vcpkg-tool 2024-03-25 00:16:35 +01:00
ve vesktop: 1.5.0 -> 1.5.1 (#296306) 2024-03-25 11:18:29 +01:00
vg/vgm2x
vi Merge pull request #297266 from ByteSudoer/init-vidmerger 2024-03-25 20:58:14 +01:00
vl vlc-bittorrent: init at 2.15.0 2024-03-25 18:30:03 +01:00
vu/vulkan-volk
wa wayland-pipewire-idle-inhibit: 0.4.5 -> 0.5.0 2024-03-24 13:27:47 +00:00
wb/wb32-dfu-updater
we websecprobe: refactor 2024-03-23 13:03:07 +01:00
wh whistle: 2.9.66 -> 2.9.67 2024-03-25 01:55:02 +00:00
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 xemu: refactor 2024-03-24 21:42:35 -03:00
xf/xfs-undelete
xi xivlauncher: remove TZ environment variable due to timezone bug 2024-03-26 03:00:17 +01:00
xm
xo xorriso: alias to libisoburn 2024-03-24 23:26:26 -03:00
xp/xplr
xr/xr-hardware
xs
xw/xwayland-run xwayland-run: 0.0.2 -> 0.0.3 2024-03-25 20:51:45 -03:00
ya
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
za
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi
zo/zola
zp
zs
zu/zug
zw/zwave-js-server
zx
README.md workflows/check-by-name.yml: Switch to new separate repo 2024-03-26 21:24:48 +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;