1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/by-name
2023-12-17 19:48:03 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa aaaaxy: 1.4.101 -> 1.4.119 2023-12-11 22:14:48 +01:00
ab/aba
ac
ad ad-miner: init at 0.6.0 2023-12-14 14:50:02 +01:00
ae/aeron-cpp aeron-cpp: init at 1.42.1 2023-12-08 16:38:18 +00:00
af/afterstep
ai
al alephone: 1.6.2 -> 1.7 2023-12-10 09:25:34 +00:00
am/amazon-ssm-agent
an/anime4k anime4k: init at 4.0.1 2023-12-16 21:40:19 +01:00
ao/aocl-utils
ap
ar ark-pixel-font: 2023.08.15 -> 2023.11.26 2023-12-13 05:03:24 +00:00
as Merge pull request #273904 from r-ryantm/auto-update/ast-grep 2023-12-17 19:13:53 +01:00
at/athens athens: 0.12.1 -> 0.13.0 2023-12-12 09:38:28 +01:00
au/auto-epp
av/avr-sim
aw aws-gate: init at 0.11.3 2023-12-14 21:25:59 +01:00
ax/axmldec
ay/ayatana-indicator-messages
ba
be
bi
bk/bk
bl/bluetility
bm/bmake
bn/bngblaster
bo
br bruno: 1.3.1 -> 1.4.0 2023-12-09 10:17:11 +10:00
bu
c2
ca cargo-xwin: 0.14.9 -> 0.16.2 2023-12-13 14:34:05 +00:00
cb/cbmbasic
cd
ce
cg/cgl
ch/changelog-d
ci
cl
cm Merge master into staging-next 2023-12-08 06:00:55 +00:00
cn/cntb
co Merge pull request #273966 from Kiskae/composefs/1.0.2 2023-12-16 23:31:49 +01:00
cp/cpu-x
cr crawley: init at 1.7.1 2023-12-16 18:03:20 +08:00
ct/ctx
cy
da/dark-mode-notify
db/dbus-cpp
de Merge pull request #266171 from l0b0/dependabot-cli 2023-12-16 12:25:36 +01:00
di
dj/djent
dm/dmenu-bluetooth
do
dr/drone-scp
dt/dtcmp
du
dv/dvb-apps
dx
dy/dyalog
ec
ei/eiwd
ek/eksctl eksctl: 0.164.0 -> 0.165.0 2023-12-14 14:04:27 +00:00
el/elvish
em
en endlines: init at 1.9.2 2023-12-09 20:48:14 -05:00
er/eriscmd
es/esbuild-config
eu/eudev
ez/eza eza: 0.16.3 -> 0.17.0 2023-12-13 18:04:46 +01:00
fa
fc
fe/feather
ff Merge pull request #258465 from Benjamin-L/add-ffsubsync 2023-12-13 08:46:15 +00:00
fi/firewalk
fl flarectl: 0.82.0 -> 0.83.0 2023-12-15 00:53:11 +00:00
fm
fn/fnott
fo footswitch: unstable-2022-04-12 -> unstable-2023-10-10 2023-12-11 15:03:56 -05:00
fr Merge pull request #259476 from samueltardieu/french-numbers 2023-12-13 15:59:42 +01:00
ga
gb/gbar
gc gcli: 2.0.0 -> 2.1.0 2023-12-11 05:19:17 +00:00
ge
gh
gi
gl/glycin-loaders
gm/gmic
go gosmore: move to pkgs/by-name 2023-12-09 17:54:46 +01:00
gr
gu
ha hare: unstable-2023-10-23 -> unstable-2023-11-27 2023-12-14 19:27:37 -03:00
hd/hdrop
he
hi/hifile
hj/hjson-go hjson-go: 4.3.1 -> 4.4.0 2023-12-15 22:39:18 +00:00
ho
ht/http3-ytproxy http3-ytproxy: init at unstable-2022-07-03 2023-12-17 19:48:03 +01:00
hy
i3 i3-open-next-ws: init at 0.1.5 2023-12-14 02:10:58 +01:00
ia/ia-writer-quattro
ic/icewm
id/idsk idsk: refactor 2023-12-10 14:42:19 +01:00
if/ifrextractor-rs
im
in Merge pull request #265961 from 999eagle/feat/intiface-central 2023-12-12 02:43:31 +02:00
ir/ironbar
ja
ji jigdo: 0.7.3 -> 0.8.2, refactor 2023-12-10 23:10:35 +01:00
jo/joycond-cemuhook
ju/justbuild
ka/katriawm
kc/kconfig-frontends
kd/kdsingleapplication
ke
kg/kgeotag
ki/kikit
km/kmsvnc
ko koodousfinder: init at 0.1.0 2023-12-14 08:36:55 +01:00
ks/kseexpr
kt/ktfmt
ku kubo: 0.24.0 -> 0.25.0 2023-12-14 23:21:54 +01:00
la
lc/lcab
le
li
ll
ln/lngen
lo/loupe
lu
lw/lwgrp
lx/lxd-to-incus
m2
ma
mc/mcuboot-imgtool
me memtree: Add missing mainProgram metadata 2023-12-09 14:15:47 +00:00
mf/mfoc-hardnested
mi
mk/mksh
ml/mlx42
mo mommy: 1.2.4 -> 1.2.6 2023-12-17 01:49:34 +00:00
mp/mpifileutils
ms/msolve
mu/mus
my/mystmd mystmd: 1.1.31 -> 1.1.36 2023-12-17 04:59:23 +00:00
n2/n2
na nautilus-open-in-blackbox: init at 0.1.1 2023-12-17 10:13:13 +05:30
ne
nf/nfft
nh/nh
ni nix-direnv: 2.5.1 -> 3.0.0 2023-12-11 10:56:38 +01:00
nl/nls
nn/nncp
no noto-fonts: 23.11.1 -> 23.12.1 2023-12-17 07:09:00 +00:00
nr/nrpl
ns
nu
nw/nwg-drawer
oa Merge pull request #199993 from wentasah/oauth2ms 2023-12-11 09:31:07 -05:00
oc
oe/oelint-adv
of/offpunk offpunk: Add passthru.tests.version 2023-12-12 20:28:05 +01:00
oh/oh-my-fish
on
op openai-triton-llvm: 14.0.6-f28c006a5895 -> 17.0.0-c5dede880d17 2023-12-08 10:11:32 -03:00
or/orchard orchard: 0.14.3 -> 0.15.0 2023-12-17 12:30:01 +00:00
ot
ou/outputcheck
ow/owncloud-client
pa passes: 0.8 -> 0.9 2023-12-17 15:00:13 +00:00
pd
pe
pg/pgmoneta
ph
pi
pl platformsh: 4.10.0 -> 4.11.4 2023-12-11 14:49:28 -03:00
po polybar-pulseaudio-control: init at 3.1.1 2023-12-07 14:33:40 -07:00
pp/ppsspp
pr presenterm: 0.3.0 -> 0.4.0 2023-12-16 16:22:26 +01:00
pt/pterm
pw/pw3270
px/pxder
py
pz/pzip
qa/qadwaitadecorations
qr/qrtool
qu
ra
rc
re regina: 3.9.1 -> 3.9.5; move to by-name 2023-12-09 00:43:30 +01:00
ri
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
sa
sc
sd/sdcc
se Merge pull request #271034 from WolfangAukang/serverless-buildnpm 2023-12-08 02:13:22 +01:00
sg/sgfutils
sh
si
sl
sm
sn
so soco-cli: 0.4.55 -> 0.4.73 2023-12-17 11:56:02 +01:00
sp Merge pull request #273422 from Gerg-L/spicetify 2023-12-11 10:32:24 -05:00
ss/sssnake
st steamguard-cli: 0.12.3 -> 0.12.5 2023-12-09 11:28:05 +00:00
su
sv/svix-server
sw swayfx: wrap like sway 2023-12-17 09:30:31 +00:00
sx/sxhkd
sy syndicate_utils: init at 20231130 2023-12-10 09:26:02 +00:00
ta
tc/tcsh
te
th
ti
tk/tkdiff
tl/tlrc
tm/tmuxifier
to/torrentstream
tp
tr treecat: init at 1.0.2-unstable-2023-11-28 2023-12-15 07:19:46 -03:00
tt/ttop ttop: 1.2.7 -> 1.2.8 2023-12-13 23:40:56 +01:00
tu tuxclocker: init at 1.4.0 2023-12-14 21:56:39 +02:00
tx/txr
ty
uc
ud
ui uiua: 0.6.1 -> 0.7.0 2023-12-16 09:40:51 +01:00
un
up
us/usql usql: 0.16.0 -> 0.17.0 2023-12-08 00:54:00 +00:00
ut/ut
uu/uuu
ux/uxn uxn: unstable-2023-11-12 -> unstable-2023-12-05 2023-12-08 00:52:20 +00:00
va/valijson
vc
ve vesktop: add missing libnotify 2023-12-13 21:11:50 -05:00
vg/vgm2x
vi vinegar: add segrevert patch for wine 9.0-rc1-staging 2023-12-17 01:31:31 +03:00
wa warp-terminal: v0.2023.11.07.08.02.stable_00 -> v0.2023.12.05.08.02.stable_00 2023-12-12 21:43:22 +00:00
wb/wb32-dfu-updater
we/websecprobe
wh when: init at 1.1.45 2023-12-13 22:08:39 +01:00
wi Merge pull request #266102 from ambroisie/add-wifi-qr 2023-12-16 21:48:22 +01:00
wl/wl-gammarelay-rs wl-gammarelay-rs: init at 0.3.2 2023-12-10 23:30:32 +01:00
wo
wp/wp-cli
ws/wslay
wt/wtfis
xa/xarcan
xd xdg-terminal-exec: init at unstable-2023-12-08 2023-12-11 13:01:33 +01:00
xm/xmldiff
xo
xs
ye/yeahwm
yg/yggdrasil
yt
yu/yunfaavatar
za/zapzap zapzap: init at 4.5.5.2 2023-12-10 02:28:31 +01:00
zb/zbus-xmlgen zbus-xmlgen: init at 3.1.1 2023-12-17 12:24:32 +01:00
zc/zcfan
ze/zesarux
zi/zitadel
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. This is the recommended way to add new top-level packages to Nixpkgs when possible.

Packages found in the named-based structure do not need to be explicitly added to the top-level/all-packages.nix file unless they require overriding the default value of an implicit attribute (see below).

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. The version of this tool used is the one that corresponds to the NixOS channel of the PR base branch. See here for details.

The tool can be run locally using

nix-build -A tests.nixpkgs-check-by-name
result/bin/nixpkgs-check-by-name .