nixpkgs/pkgs/by-name
Weijia Wang 94259e9adf
Merge pull request #280545 from ahoneybun/update-cosmmic-edit
cosmic-edit: unstable-2023-11-29 -> 0-unstable-2024-01-12
2024-01-18 10:30:50 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa Merge pull request #280408 from r-ryantm/auto-update/aarch64-esr-decoder 2024-01-14 12:19:59 -05:00
ab/aba
ac
ad advcpmv: 0.9-9.3 -> 0.9-9.4 2024-01-17 09:56:35 -03:00
ae/aeron-cpp
af/afterstep
ai
al
am
an ansel: init at unstable-2024-01-05 2024-01-13 18:36:55 -05:00
ao/aocl-utils
ap
ar
as
at Merge pull request #274756 from GetPsyched/atlauncher 2024-01-17 15:30:02 +01:00
au audio-sharing: init at 0.2.2 2024-01-14 14:54:08 +01:00
av/avr-sim
aw aws-azure-login: Link Puppeteer to Chromium 2024-01-15 22:15:45 +13:00
ax/axmldec
ay/ayatana-indicator-messages
ba
bc/bc-ur
be
bi
bk/bk
bl bluez-alsa: refactor 2024-01-13 19:27:37 -03:00
bm/bmake
bn/bngblaster
bo Merge pull request #275529 from moni-dz/contour 2024-01-13 23:46:45 +01:00
br Merge pull request #281308 from octodi/bruteforce-salted-openssl 2024-01-18 08:18:56 +01:00
bu
by/bytecode-viewer
c2
ca catppuccin-qt5ct: init at 2023-03-21 2024-01-14 17:02:43 +01:00
cb/cbmbasic
cd
ce
cg/cgl
ch chess-clock: init at 0.6.0 2024-01-16 20:43:54 +02:00
ci cimg: 3.3.2 -> 3.3.3 2024-01-13 04:20:39 +00:00
cl clairvoyant: init at 3.1.2 2024-01-16 20:46:13 +02:00
cm
cn/cntb
co Merge pull request #280545 from ahoneybun/update-cosmmic-edit 2024-01-18 10:30:50 +01:00
cp
cr
cs Merge pull request #272806 from zoriya/init-csharpier 2024-01-18 09:35:09 +01:00
ct/ctx
cy
cz/czkawka
da/dark-mode-notify
db/dbus-cpp
de
di Merge pull request #277735: Remove caadar from maintainers 2024-01-15 23:52:47 +01:00
dj/djent
dm
do
dr/drone-scp
dt/dtcmp
du
dv/dvb-apps
dx
dy
eb/ebpf-usb
ec
ed/eduvpn-client
ei
ek/eksctl
el
em emacs-lsp-booster: 0.1.1 -> 0.2.0 2024-01-14 22:41:17 +00:00
en
er
es
eu
ex/exiflooter
ez/eza
fa
fc
fe/feather
ff ff2mpv-rust: init at 1.1.1 2024-01-15 20:59:41 -03:00
fi Merge pull request #280906 from fabaff/fim-rs 2024-01-15 13:13:53 +01:00
fl
fm
fn/fnott
fo formatjson5: init at 0.2.6 2024-01-16 19:19:19 +01:00
fr Merge pull request #280595 from dotlambda/fritz-exporter-init 2024-01-17 18:50:15 +01:00
ga
gb/gbar
gc
ge geopard: de-vendor Cargo.lock 2024-01-13 12:06:16 +09:00
gh
gi
gl
gm/gmic
go
gr Merge pull request #273494 from katexochen/grmon/init 2024-01-17 20:12:14 +01:00
gt Merge pull request #277735: Remove caadar from maintainers 2024-01-15 23:52:47 +01:00
gu
h8/h8mail
ha hare: embedd paths for cross-compilation toolchains 2024-01-17 13:31:00 -03:00
hd/hdrop
he
hi/hifile hifile: 0.9.9.7 -> 0.9.9.10 2024-01-15 15:01:05 +01:00
hj/hjson-go
ho
ht
hu/hugo
hy hyprlang: init at 0.2.1 2024-01-16 22:24:04 +02:00
i3
ia/ia-writer-quattro
ic icloudpd: init at 1.17.3 2024-01-13 14:30:43 +11:00
id/idsk
if/ifrextractor-rs
ig/ignite-cli ignite-cli: 28.1.0 -> 28.1.1 2024-01-17 11:27:51 +00:00
ii
im
in
ir/ironbar
ja
ji
jj/jj
jo/joycond-cemuhook
ju/justbuild
ka
kc/kconfig-frontends
kd/kdsingleapplication
ke keep-sorted: 0.2.0 -> 0.3.0 2024-01-17 07:45:48 +01:00
kg/kgeotag
ki Merge pull request #248160 from gaelreyrol/kickstart-init-0.4.0 2024-01-17 23:45:48 +01:00
kl/klog-time-tracker
km/kmsvnc
ko
ks/kseexpr
kt
ku
kx/kxstitch
la
lc/lcab
le lefthook: 1.5.5 -> 1.5.6 2024-01-13 03:01:29 +00:00
li libtas: init at 1.4.5 2024-01-18 03:10:47 +02:00
ll llama-cpp: 1742 -> 1848 2024-01-12 19:01:51 -08:00
ln/lngen
lo
ls/lshw
lu
lw/lwgrp
lx/lxd-to-incus
lz/lzsa
m2
ma
mc
me
mf/mfoc-hardnested
mi
mk
ml/mlx42
mo Merge pull request #280289 from lblasc/mountpoint-s3 2024-01-16 07:28:20 -08:00
mp/mpifileutils
ms/msolve
mu
my/mystmd
n2/n2
na Merge pull request #281342 from r-ryantm/auto-update/naps2 2024-01-18 07:34:20 +01:00
nc/ncdc
ne Merge pull request #278344 from marcusramberg/marcus/netop 2024-01-15 15:32:20 +01:00
nf/nfft
nh/nh Merge pull request #281012 from adamcstephens/nh/fix-darwin 2024-01-15 07:11:57 -05:00
ni nmd: turn into a fixed-output derivation 2024-01-15 16:38:44 +01:00
nl
nn/nncp
no Merge pull request #276849 from eclairevoyant/nomnatong 2024-01-13 22:22:30 +01:00
np/npm-lockfile-fix
nr/nrpl
ns nsplist: migrate to by-name, refactor 2024-01-13 07:17:11 +01:00
nu
nv/nvidia-texture-tools
nw/nwg-drawer
oa
ob/obs-do obs-do: init at 0.1.0 2024-01-15 09:07:00 +01:00
oc
oe/oelint-adv
of/offpunk
oh/oh-my-fish
on
op
or
ot
ou/outputcheck
ov
ow/owncloud-client
pa packj: init at 0.15-beta 2024-01-14 12:07:40 +01:00
pd
pe
pg
ph pharo: fix non-path argv[0] segfault 2024-01-13 23:13:07 +03:00
pi pixi: init at 0.11.1 2024-01-14 19:59:39 +08:00
pk/pkcrack
pl Merge pull request #278997 from wegank/xib2nib-deps-refactor 2024-01-13 18:19:08 +01:00
pm/pmtiles pmtiles: init at 1.12.0 2024-01-13 11:57:46 +01:00
po Merge pull request #280476 from Luflosi/add/powersupply 2024-01-18 09:09:35 +01:00
pp/ppsspp
pr prevo: adjust wrapper, loosen platforms 2024-01-17 10:39:55 +00:00
pt/pterm
pu/pushup
pw
px/pxder
py pyprland: 1.6.10 -> 1.6.11 2024-01-15 14:22:15 +00:00
pz/pzip
qa/qadwaitadecorations
qg/qgrep qgrep: 1.1 -> 1.3 2024-01-18 04:35:52 +01:00
qr
qs/qspeakers
qu quicktype: 23.0.80 -> 23.0.81 2024-01-17 04:20:00 +00:00
ra
rc
re
ri
rm/rmg rmg: init at 0.5.4 2024-01-14 01:00:09 -06:00
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
s3/s3scanner
sa
sc Merge pull request #278750 from shard77/patch-1 2024-01-16 23:03:23 -08:00
sd
se
sg/sgfutils
sh Merge pull request #280142 from r-ryantm/auto-update/shopware-cli 2024-01-13 06:30:20 +01:00
si
sl
sm
sn
so
sp speakersafetyd: init at 0.1.9 (#281305) 2024-01-17 18:29:19 +01:00
sq/sqlite-vss
sr
ss
st
su
sv/svix-server
sw
sx
sy systemctl-tui: 0.2.2 -> 0.2.4 2024-01-13 19:16:13 -07:00
ta Merge pull request #278992 from ehmry/tarlz 2024-01-14 10:57:54 +01:00
tc/tcsh
te
th
ti
tk/tkdiff
tl/tlrc
tm/tmuxifier
to/torrentstream
tp
tr
tt/ttop
tu
tx/txr
ty typst-preview: 0.9.2 -> 0.10.5 2024-01-16 22:44:38 -05:00
uc
ud
ui
un unbook: 0.7.3 -> 0.8.2 2024-01-13 19:21:32 -08:00
up
us/usql
ut/ut
uu/uuu
ux/uxn
va/valijson
vc
ve vesktop: 0.4.4 -> 1.5.0 2024-01-15 20:23:31 -06:00
vg/vgm2x
vi
wa
wb/wb32-dfu-updater
we websploit: move to pkgs/by-name 2024-01-17 10:58:02 +01:00
wh
wi
wl wl-clipboard-rs: init at 0.8.0-unstable-2023-11-27 2024-01-13 00:45:42 +00:00
wo
wp/wp-cli
ws/wslay
wt/wtfis
x1/x16
xa/xarcan
xd
xi/xib2nib plistcpp: migrate to by-name, refactor 2024-01-13 07:17:08 +01:00
xm/xmldiff
xo
xp/xplr
xs
xw/xwayland-run
ye/yeahwm
yg/yggdrasil
yt
yu/yunfaavatar
za/zapzap zapzap: 4.5.5.2 -> 5.1.3 2024-01-17 00:26:28 +01:00
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi zircolite: 2.9.9 -> 2.10.0 2024-01-15 13:17:52 +01:00
zo/zola
zp
zs/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.