nixpkgs/pkgs/by-name
Fabian Affolter ba325b39ee
Merge pull request #290273 from fabaff/powerhub
powerhub: init at 2.0.7
2024-02-24 10:36:40 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa aaaaxy: 1.4.160 -> 1.5.6 2024-02-20 07:36:59 +00:00
ab/aba
ac action-validator: 0.5.4 -> 0.6.0 2024-02-23 07:36:14 +00:00
ad
ae
af
ai
al
am
an
ao/aocl-utils
ap api-linter: add meta.mainProgram 2024-02-24 05:43:07 +08:00
ar Merge pull request #288421 from r-ryantm/auto-update/arxiv-latex-cleaner 2024-02-19 23:59:59 +09:00
as ast-grep: 0.19.1 -> 0.19.2 2024-02-23 09:30:35 +05:30
at
au authentik: Fix logo path for email stage 2024-02-19 18:34:25 +00:00
av/avr-sim
aw
ax/axmldec
ay
ba
bc/bc-ur
be
bi
bk/bk
bl
bm/bmake bmake: 20240108 -> 20240212 2024-02-19 06:22:31 +00:00
bn/bngblaster
bo
br
bs/bsync
bu
by/bytecode-viewer
c-
c2
ca Merge pull request #285967 from zendo/upd/cavalier 2024-02-24 00:25:32 +01:00
cb/cbmbasic
cc/ccache
cd
ce
cg/cgl
ch
ci
cl
cm
cn/cntb
co cosmic-icons: unstable-2024-02-07 -> unstable-2024-02-22 2024-02-23 04:54:26 +00:00
cp
cr Merge pull request #284038 from TomaSajt/cringify 2024-02-23 06:23:49 +01:00
cs
ct/ctx
cu/cursewords
cy
cz/czkawka czkawka: 6.1.0 -> 7.0.0 2024-02-19 22:36:46 +00:00
da das: 0.3.8 -> 1.0.3 2024-02-19 22:36:02 +08:00
db/dbus-cpp
dc/dc3dd
dd/ddns-updater ddns-updater: init at 2.6.0 2024-02-22 20:44:17 +00:00
de delfin: 0.3.0 -> 0.4.0 2024-02-21 13:25:13 +00:00
di
dj/djent
dm
dn/dns2tcp dns2tcp: init at 0.5.2 2024-02-20 18:44:09 +01:00
do doublecmd: 1.1.9 -> 1.1.10 2024-02-21 19:44:43 +00:00
dp/dpp
dr/drone-scp
ds
dt/dtcmp
du dunst: 1.9.2 -> 1.10.0 2024-02-20 15:45:56 +13:00
dv/dvb-apps
dx
dy
ea/easyeasm
eb
ec
ed/eduvpn-client
ei eigenlayer: 0.6.1 -> 0.6.2 2024-02-19 01:44:08 +00:00
ek/eksctl eksctl: 0.171.0 -> 0.172.0 2024-02-23 04:30:47 +00:00
el
em Merge pull request #276376 from lolbinarycat/emacsclient-commands 2024-02-20 18:21:30 +01:00
en
er Merge pull request #278951 from sund3RRR/errands-init 2024-02-20 10:46:15 +01:00
es
eu
ex
ez/eza eza: 0.18.3 -> 0.18.4 2024-02-22 06:35:34 +01:00
fa fastcdr: 2.1.3 -> 2.2.0 2024-02-23 11:11:09 +01:00
fb/fbset
fc
fe
ff
fi files-cli: 2.12.37 -> 2.12.38 2024-02-23 22:37:13 +00:00
fl flottbot: init at 0.13.0 2024-02-20 12:26:22 +01:00
fm
fn/fnott
fo
fr
fu/fuchsia-cursor
fw/fwupd
fy/fypp
ga
gb/gbar
gc
ge
gh ghunt: 2.0.1 -> 2.1.0 2024-02-20 21:12:18 +01:00
gi gickup: 0.10.26 -> 0.10.27 2024-02-21 09:57:58 +00:00
gl glauth: 2.3.1 -> 2.3.2 2024-02-19 07:31:38 +00:00
gm/gmic
gn/gnucap gnucap: move to by-name 2024-02-23 12:01:37 +01:00
go goldwarden: 0.2.10 -> 0.2.12 2024-02-20 06:18:18 +00:00
gp gpt4all-chat: 2.7.0 -> 2.7.1 2024-02-22 08:54:35 +01:00
gr graphite-cli: 1.1.5 -> 1.2.3 2024-02-23 19:16:39 +00:00
gt
gu
h8/h8mail
ha hare: unstable-2024-02-08 -> 0.24.0 2024-02-21 16:36:41 -03:00
hd/hdrop
he
hi/hifile
hj/hjson-go
ho hoppscotch: init at 23.12.5 2024-02-22 20:32:34 +01:00
ht
hu/hugo hugo: 0.123.1 -> 0.123.2 2024-02-23 09:41:27 +00:00
hy hypridle: init at 0.1.0 2024-02-21 11:05:01 -07:00
i3
ia
ic
id/idsk
if/ifrextractor-rs
ig
ii
im
in influxdb-cxx: init at 0.7.2 2024-02-23 04:45:38 +04:00
ir/ironbar
ja Merge pull request #286668 from r-ryantm/auto-update/jasper 2024-02-19 19:07:17 +01:00
jd/jdt-language-server
ji
jj/jj
jn/jnr-posix
jo
js/jsoncons
ju/justbuild
ka
kc/kconfig-frontends
kd/kdsingleapplication
ke Merge pull request #289946 from peterablehmann/Package--keepassxc-go 2024-02-20 17:36:11 +01:00
kg/kgeotag
ki Merge pull request #282429 from fabaff/killerbee 2024-02-19 23:55:37 +01:00
kl/klog-time-tracker
km/kmsvnc
kn/knossosnet
ko kor: 0.3.4 -> 0.3.5 2024-02-20 12:38:25 +00:00
kp/kplex
ks/kseexpr
kt
ku
kx/kxstitch
la
lc/lcab
le
li Merge pull request #290571 from benley/mixxx-2.4.0 2024-02-23 14:00:39 -05:00
ll llama-cpp: 2212 -> 2249 2024-02-23 15:04:25 +00:00
ln/lngen
lo Merge pull request #289701 from kylechui/feat/update-logiops 2024-02-24 00:26:41 +01:00
ls/lshw
lu
lw/lwgrp
lz
m2
ma
mc
md
me
mf/mfoc-hardnested
mg/mgitstatus
mi
mk
ml/mlx42
mo
mp/mpifileutils
mq/mqttx
ms
mu
my mystmd: 1.1.42 -> 1.1.43 2024-02-23 05:41:04 +00:00
n2/n2
na namespace-cli: 0.0.341 -> 0.0.345 2024-02-23 23:11:32 +00:00
nb/nbtscan
nc/ncdc
ne init: neocities-cli at 0.0.18 2024-02-23 10:08:49 +01:00
nf/nfft
nh nhentai: move to pkgs/by-name 2024-02-22 13:03:51 +13:00
ni nimlangserver: add missing newline 2024-02-22 11:20:45 +00:00
nl
nm/nmap-parse
nn/nncp
no Merge pull request #290491 from DataHearth/add/app/nosql-workbench-3.11.0 2024-02-24 01:02:41 +01:00
np
nr
ns
nu
nv nvidia-container-toolkit: move to by-name structure 2024-02-21 22:17:11 +01:00
nw
oa
ob
oc
oe/oelint-adv oelint-adv: 4.3.0 -> 4.3.1 2024-02-21 03:34:45 +00:00
of/offpunk
oh/oh-my-fish
oi
on
op Merge pull request #290676 from sikmir/oomapper 2024-02-23 19:18:58 +01:00
or
os/osc-cli osc-cli: init at 1.11.0 2024-02-22 22:32:35 +01:00
ot
ou/outputcheck
ov
ow/owncloud-client
pa Merge pull request #290224 from patka-123/paratest-7.4.3 2024-02-20 18:38:29 +01:00
pd
pe
pf/pfft
pg pgagroal: migrato to by-name 2024-02-23 04:20:00 +00:00
ph Merge pull request #290969 from patka-123/phpunit-11.0.3 2024-02-23 22:53:30 +01:00
pi
pk/pkcrack
pl plumber: 2.5.3 -> 2.5.4 2024-02-22 02:41:56 +00:00
pm
pn/pnfft
po powerhub: init at 2.0.7 2024-02-20 22:04:32 +01:00
pp/ppsspp
pr prowler: relax pydantic constraint 2024-02-23 18:46:01 +01:00
pt
pu purescm: init at 1.8.2 2024-02-20 15:58:48 +07:00
pw
px/pxder
py pyprland: 1.10.2 -> 2.0.3 2024-02-21 02:53:11 +03:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qg/qgrep
qr qrtool: 0.10.4 -> 0.10.5 2024-02-19 00:59:41 +00:00
qs
qt/qtractor
qu
ra
rc rclip: 1.7.24 -> 1.7.26 2024-02-19 08:42:07 +08:00
re Merge pull request #290640 from SomeoneSerge/fix/rerun-wayland 2024-02-23 14:28:20 +00:00
ri
rl/rl_json
rm/rmg
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
rw/rwpspread rwpspread: 0.1.9 -> 0.2.1 2024-02-19 18:47:37 +00:00
s3 s3proxy: init 2024-02-22 22:03:13 +00:00
sa samdump2: init at 3.0.0 2024-02-21 19:10:54 +01:00
sc Merge pull request #289934 from jnsgruk/scrutiny 2024-02-23 00:43:55 +01:00
sd
se
sg/sgfutils
sh shopware-cli: 0.4.23 -> 0.4.24 2024-02-21 19:51:23 +00:00
si simplex-chat-desktop: 5.4.4 -> 5.5.5 2024-02-23 15:06:26 +01:00
sl
sm
sn
so
sp Merge pull request #290326 from r-ryantm/auto-update/spicetify-cli 2024-02-21 10:17:40 -05:00
sq/sqlite-vss
sr
ss
st steamguard-cli: 0.12.5 -> 0.12.6 2024-02-19 23:13:18 +00:00
su
sv svndumpsanitizer: init at 2.0.7 (#282398) 2024-02-24 00:39:45 +01:00
sw
sx
sy
ta
tc/tcsh
td/tdl
te
th
ti tigerbeetle: 0.14.179 -> 0.14.180 2024-02-21 06:46:15 +00:00
tk/tkdiff
tl
tm/tmuxifier
to
tp
tr
tt/ttop
tu
tx/txr
ty typst-preview: 0.10.5 -> 0.10.8 2024-02-20 15:35:18 +01:00
uc
ud
ue uefisettings: init at unstable-2024-02-20 2024-02-21 09:01:18 +01:00
ui
um/umpire umpire: 2023.06.0 -> 2024.02.0 2024-02-23 08:45:58 +00:00
un Merge pull request #287629 from D3vil0p3r/patch-8 2024-02-24 04:53:01 +01:00
up
us/usql
ut/ut
uu/uuu
uv/uv uv: 0.1.8 -> 0.1.9 2024-02-23 09:08:24 +01:00
ux/uxn
va/valijson
vc
ve
vg/vgm2x
vi
vu/vulkan-volk
wa wayland-pipewire-idle-inhibit: init at 0.4.5 2024-02-20 19:44:55 -03:00
wb/wb32-dfu-updater
we weasis: 4.2.1 -> 4.3.0 2024-02-21 09:42:38 +00:00
wh
wi wiremock: 3.4.0 -> 3.4.1 2024-02-22 11:13:59 +00:00
wl
wo
wp/wp-cli
ws/wslay
wt/wtfis wtfis: 0.7.1 -> 0.8.0 2024-02-20 04:57:55 +00:00
x1/x16
xa/xarcan
xc/xcbeautify
xd xdg-desktop-portal-cosmic: set meta.mainProgram 2024-02-19 19:50:07 +01:00
xf/xfs-undelete
xi
xm
xo
xp/xplr
xs
xw/xwayland-run
ya
ye
yg/yggdrasil
yj/yj
yo
ys/ysfx
yt
yu/yunfaavatar
za/zapzap
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi zigpy-cli: init at 1.0.4 (#289805) 2024-02-20 23:03:01 +01:00
zo/zola
zp
zs/zs
zu/zug
zw/zwave-js-server
zx zxtune: 5055 -> 5056 2024-02-20 06:31:27 +00:00
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.