nixpkgs/pkgs/by-name
2023-11-26 16:28:46 +02:00
..
_4/_4th
_9/_9base
a4/a4
aa/aarch64-esr-decoder
ab/aba
ac/action-validator action-validator: 0.5.3 -> 0.5.4 2023-11-25 08:12:23 +00:00
ad/adafruit-nrfutil python3Packages.adafruit-nrfutil: fix tests 2023-11-20 21:19:25 +01:00
af/afterstep
ai
al alsa-utils: fix eval 2023-11-17 00:46:24 +01:00
am/amazon-ssm-agent Merge pull request #258036 from anthonyroussel/fix-ssm-seelog 2023-11-19 18:55:57 -05:00
ao/aocl-utils
ap apt: 2.7.6 -> 2.7.7 2023-11-24 15:26:43 -03:00
ar
as ast-grep: fix build with clang 12+ 2023-11-21 15:14:53 +08:00
aw/aws-azure-login
ax/axmldec
ba Revert "bazecor: init at 1.3.2" 2023-11-21 15:01:37 +01:00
be beekeeper-studio: 3.6.2 -> 4.0.3, refactor 2023-11-23 00:49:16 +01:00
bi
bk/bk
bl/bluetility bluetility: init at 1.5.1 2023-11-14 21:48:23 -03:00
bm/bmake treewide: s_targetPlatform_hostPlatform_ in non-compiler packages 2023-11-17 08:07:34 +00:00
bo boogie: 3.0.5 -> 3.0.6 2023-11-22 08:51:32 -08:00
br bruno: add kashw2 as maintainer 2023-11-25 21:34:31 +10:00
c2/c2fmzq
ca
cb/cbmbasic
cd
ce Merge pull request #253918 from tie/centrifugo 2023-11-20 08:59:54 -05:00
ch/changelog-d changelog-d: Add shell completions 2023-11-19 13:17:23 +01:00
ci
cl clamtk: add ShamrockLee as a maintainer 2023-11-21 20:16:26 +08:00
cm/cmake cmake: fix risc-v build failure 2023-11-22 16:10:35 -03:00
cn/cntb
co Merge pull request #266323 from Nyabinary/cosmic-osd 2023-11-24 08:41:56 -05:00
cp/cpu-x
cr
ct/ctx
cy cyanrip: 0.9.0 -> 0.9.2 2023-11-21 20:29:23 +10:00
da/dark-mode-notify
db/dbus-cpp
de Merge pull request #262336 from h7x4/init-devdash 2023-11-18 19:14:23 +01:00
di
dj/djent
dm/dmenu-bluetooth
do doublecmd: 1.1.3 -> 1.1.5 2023-11-20 23:16:07 -03:00
dt/dtcmp
dv/dvb-apps
dx
dy/dyalog
ec
ei/eiwd
ek/eksctl eksctl: 0.163.0 -> 0.164.0 2023-11-19 03:35:38 +11:00
el/elvish
em emulationstation-de: init at 2.2.1 2023-11-26 16:28:46 +02:00
en/engage
es/esbuild-config
eu/eudev
ez/eza eza: 0.16.0 -> 0.16.1 2023-11-23 04:34:56 +01:00
fa fangfrisch: init at 1.6.1 2023-11-22 03:04:20 +00:00
fc
fe/feather
fi/firewalk
fl
fm/fm-tune
fo/fortune-kind fortune-kind: 0.1.8 -> 0.1.9 2023-11-16 11:20:37 +01:00
fr free42: 3.0.21 -> 3.1 2023-11-18 05:02:05 -03:00
ga gatus: init at 5.7.0 2023-11-25 01:01:44 +08:00
gb/gbar
gc/gcp-scanner gcp-scanner: init at 1.3.0 2023-11-20 14:53:15 +01:00
ge
gh
gi
gl/glycin-loaders glycin-loaders: 0.1.1 → 0.1.2 2023-11-21 08:42:48 +01:00
gm/gmic
go Merge pull request #268867 from maolonglong/init-gosimports 2023-11-22 06:10:59 +00:00
gr
gu
ha hachimarupop: init at unstable-2022-07-11 2023-11-16 23:46:11 -03:00
he
hi/hifile hifile: 0.9.9.5 -> 0.9.9.6 2023-11-19 00:00:01 +01:00
ho Merge pull request #263683 from jfvillablanca/hof 2023-11-18 16:17:35 +01:00
hy hyprshot: init at 1.2.3 2023-11-19 02:00:43 +08:00
i3/i3bar-river
ic/icewm
if/ifrextractor-rs
im impression: 2.1 -> 3.0.1 2023-11-23 13:13:38 -08:00
in inshellisense: init at 0.0.1-rc.4 2023-11-22 14:42:06 -08:00
ir/ironbar
ja Merge pull request #259774 from surfaceflinger/jazz2-finalattrs 2023-11-22 16:59:46 +01:00
ji
ju/justbuild
ka/katriawm
kc/kconfig-frontends
kd/kdsingleapplication
ke keedump: init at 0.1.0 2023-11-19 22:41:26 +01:00
ki/kikit kikit: init at 1.3.0 2023-11-16 21:24:04 +07:00
km/kmsvnc
ko
kt/ktfmt
ku/kubectl-neat
la
lc/lcab lcab: init at 1.0b12 2023-11-16 14:18:52 -03:00
le lefthook: migrate to by-name 2023-11-24 19:14:25 -03:00
li libpkgconf: migrate to by-name 2023-11-24 19:14:25 -03:00
ll llama-cpp: 1483 -> 1538 2023-11-19 10:25:46 +01:00
ln/lngen lngen: init at unstable-2023-10-17 2023-11-15 18:44:11 +01:00
lo/loupe loupe: 45.0 → 45.1 2023-11-21 08:42:48 +01:00
lu lunar-client: add mainProgram 2023-11-22 15:54:45 +01:00
lw/lwgrp
lx/lxd-to-incus
m2
ma
mc/mcuboot-imgtool mcuboot-imgtool: fix pname 2023-11-19 16:14:55 -03:00
me treewide: s_targetPlatform_hostPlatform_ in non-compiler packages 2023-11-17 08:07:34 +00:00
mf/mfoc-hardnested
mi
mk/mksh
ml/mlx42
mo
mp/mpifileutils
ms/msolve
my/mystmd mystmd: 1.1.29 -> 1.1.31 2023-11-24 04:20:00 +00:00
n2/n2
na namespace-cli: 0.0.302 -> 0.0.307 2023-11-18 22:30:34 -05:00
ne newsraft: init at 0.21 2023-11-21 00:41:45 -03:00
nf/nfft
ni nilaway: init at unstable-2023-11-17 2023-11-21 14:04:19 +00:00
nl/nls
nn/nncp
no nom: 2.0.2 -> 2.0.5 2023-11-17 15:31:44 +01:00
ns
nu
nw/nwg-drawer nwg-drawer: 0.3.9 -> 0.4.1 2023-11-18 23:46:18 -03:00
oa/oauth2l
oc
oe/oelint-adv
of/offpunk offpunk: move to by-name 2023-11-18 07:48:13 +01:00
oh/oh-my-fish oh-my-fish: patch to fixup permissions during installation 2023-11-25 20:11:49 -03:00
on
op Merge pull request #157807 from scottbot95/open-fprintd 2023-11-19 18:13:32 +02:00
or/orchard
ou/outputcheck
ow/owncloud-client
pa padre: init at 2.1.0 2023-11-20 10:31:53 +01:00
pd pdk: init at 3.0.0 2023-11-21 17:34:16 +01:00
pe
pg/pgmoneta
ph
pi
pl/platformsh
po poethepoet: 0.24.2 -> 0.24.4 2023-11-18 17:30:18 -05:00
pp/ppsspp
pr Merge pull request #260902 from LDprg/master 2023-11-25 23:29:40 -06:00
pt/pterm
px/pxder
py pyprland: 1.5.3 -> 1.6.0 2023-11-17 20:40:15 +03:00
pz/pzip
qr/qrtool
qu
ra
rc/rc
re
ri
ro
rp/rpcs3 rpcs3: 0.0.28-15409-fd6829f75 -> 0.0.29-15726-ebf48800e 2023-11-23 02:30:37 +10:00
rq/rqbit rqbit: 3.1.0 -> 3.2.0 2023-11-21 04:20:00 +00:00
rs
rt/rtl-sdr-osmocom osmo-rtl-sdr: init at 2.0.1 2023-11-15 04:44:50 +00:00
ru
sa satty: init at 0.7.0 2023-11-24 09:09:46 +01:00
sc
sd/sdcc
se Merge pull request #264348 from 999eagle/update/searxng 2023-11-20 10:48:40 +01:00
sh
si Merge pull request #266336 from DamienCassou/signaturepdf 2023-11-18 08:20:38 +01:00
sl
sm/smallwm
so Merge pull request #258963 from mrtnvgr/arachno 2023-11-19 01:11:52 +02:00
sp
ss sshx: init at unstable-2023-11-04 2023-11-22 09:18:51 +01:00
st
su supersonic: 0.7.0 -> 0.8.0 2023-11-16 21:31:49 +10:00
sv/svix-server
sw Merge pull request #265755 from rafaelrc7/add-sway-audio-idle-inhibit 2023-11-18 23:27:53 +02:00
sx/sxhkd
sy Revert "Systemd package rewrite" 2023-11-26 03:12:04 +02:00
ta
tc/tcsh
te Merge pull request #267852 from 365tuwe/add-tera-cli 2023-11-22 10:34:12 +01:00
th
ti
tk/tkdiff
tl/tlrc
tm/tmuxifier
tp
tr trealla: 2.29.36 -> 2.30.7 2023-11-15 13:49:42 -03:00
tu
tx/txr txr: 291 -> 292 2023-11-22 09:26:50 -03:00
ty/typst-preview typst-preview: 0.9.0 -> 0.9.1 2023-11-18 17:52:30 +01:00
uc
ud
ui uiua: 0.3.0 -> 0.3.1 2023-11-21 13:19:09 +01:00
un Merge pull request #264716 from Anomalocaridid/unimatrix 2023-11-21 22:47:19 +01:00
up
us/usql usql: fix build with clang 12+ 2023-11-25 00:31:53 +01:00
ut/ut ut: init at 2.0.0 2023-11-20 21:54:58 +00:00
uu/uuu
ux/uxn uxn: unstable-2023-10-23 -> unstable-2023-11-12 2023-11-16 19:12:07 +00:00
va/valijson
ve vesktop: add cacert to pnpmDeps derivation 2023-11-20 17:46:06 +01:00
vi/virtio-win
wa
wb/wb32-dfu-updater
we/websecprobe
wh
wi wio: init at unstable-2023-05-28 2023-11-23 12:40:23 -03:00
wo wordlists: refactor 2023-11-17 17:58:09 +01:00
ws/wslay
wt/wtfis
xm/xmldiff
xo
xs xscreensaver: add suid wrapper patch 2023-11-24 08:53:00 -03:00
ye/yeahwm
yg/yggdrasil yggdrasil: 0.5.1 -> 0.5.2 2023-11-21 17:11:29 +02:00
yt/ytui-music
yu/yunfaavatar
zc/zcfan
ze/zesarux
zi/zitadel
zp
zw/zwave-js-server
zx zxtune: init at r5055 2023-11-22 13:57:24 -08:00
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 use the category hierarchy for such attributes.

  • 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 .