nixpkgs/pkgs/by-name
phaer 1a6db25b7a tailscale-nginx-auth: init at 1.48.2
https://github.com/tailscale/tailscale/tree/main/cmd/nginx-auth

is a utility in the tailscale repo allowing users to delegate nginx request authorization to a tailscale daemon running on the same host.
2023-12-06 20:57:38 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa/aarch64-esr-decoder
ab/aba aba: 0.7.1 -> 0.8.0 2023-12-02 21:48:35 -03:00
ac
ad/adafruit-nrfutil
af/afterstep
ai
al
am/amazon-ssm-agent
ao/aocl-utils
ap
ar
as
at/athens
au/auto-epp auto-epp: init at 1.2.1 2023-11-29 14:28:04 +08:00
av/avr-sim avr-sim: init at 2.8 2023-11-30 08:19:36 +01:00
aw/aws-azure-login
ax/axmldec
ay/ayatana-indicator-messages
ba
be Merge pull request #269921 from GoldsteinE/init/betula 2023-11-29 16:59:05 +11:00
bi
bk/bk
bl/bluetility
bm/bmake
bn/bngblaster bngblaster: init at 0.8.29 2023-12-03 11:14:11 +01:00
bo
br bruno: 1.2.0 -> 1.3.0 2023-12-02 07:54:22 +10:00
bu Merge pull request #271211 from ehmry/butt 2023-12-02 00:12:07 +11:00
c2
ca cargo-vibe: init at unstable 2022-12-29 2023-12-01 14:41:41 +01:00
cb/cbmbasic
cd
ce certmgr: 1.6.4 -> 3.0.3, migrate to buildGoModule and by-name 2023-11-30 23:32:54 +01:00
cg/cgl
ch/changelog-d
ci
cl
cm/cmake
cn/cntb
co Merge pull request #271689 from adamcstephens/lxc/team 2023-12-06 13:55:45 -05:00
cp/cpu-x
cr crossplane-cli: init at 1.14.3 2023-11-30 02:34:04 +02:00
ct/ctx
cy
da/dark-mode-notify
db/dbus-cpp treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck 2023-11-30 18:56:12 +01:00
de
di
dj/djent
dm/dmenu-bluetooth
do doge: patch adding small doge 2023-12-01 15:07:52 +01:00
dt/dtcmp
du/dublin-traceroute
dv/dvb-apps
dx
dy/dyalog
ec
ei/eiwd
ek/eksctl
el/elvish
em Merge pull request #266658 from snf1k/emojify 2023-12-02 15:09:51 +01:00
en/engage
er/eriscmd
es/esbuild-config
eu/eudev
ez/eza eza: 0.16.1 -> 0.16.2 2023-11-30 06:00:14 +01:00
fa
fc
fe/feather
fi/firewalk
fl flarectl: 0.80.0 -> 0.82.0 2023-12-02 12:43:00 +00:00
fm/fm-tune
fn/fnott
fo/fortune-kind fortune-kind: 0.1.10 -> 0.1.11 2023-11-30 05:41:24 +01:00
fr frankenphp: add shyim as maintainer 2023-12-05 16:14:03 +01:00
ga
gb/gbar
gc
ge get-google-fonts: init at unstable-2020-06-30 2023-12-02 17:02:01 +01:00
gh
gi gickup: 0.10.22 -> 0.10.23 2023-12-04 23:46:29 +00:00
gl/glycin-loaders
gm/gmic
go
gr Revert "gruvbox-plus-icons: init at unstable-2023-11-30" 2023-12-02 01:31:38 +11:00
gu guix: add parameters for certain configure flags 2023-12-01 09:07:33 +01:00
ha Merge pull request #269767 from onemoresuza/haredo 2023-12-06 17:05:38 +01:00
he
hi/hifile
ho
hy
i3/i3bar-river
ia/ia-writer-quattro ia-writer-quattro: init at unstable-2023-06-16 2023-12-04 00:29:33 +01:00
ic/icewm
if/ifrextractor-rs
im
in treewide/lxc: set lxc team as maintainer 2023-12-04 10:06:50 -05:00
ir/ironbar
ja jazz2: 2.2.2 -> 2.3.0 2023-11-29 21:39:22 +01:00
ji
jo/joycond-cemuhook
ju/justbuild
ka/katriawm
kc/kconfig-frontends
kd/kdsingleapplication
ke
kg/kgeotag
ki/kikit
km/kmsvnc
ko kor: initial at 0.3.0 2023-12-04 10:17:38 +02:00
kt/ktfmt
ku/kubectl-neat
la lanraragi: remove dependency version patch 2023-12-01 16:18:07 +01:00
lc/lcab
le Merge pull request #269266 from IogaMaster/leaf 2023-11-29 20:26:30 +01:00
li linien: init at 1.0.0 2023-12-06 22:41:10 +08:00
ll
ln/lngen
lo/loupe loupe: 45.1 → 45.2 2023-12-02 15:32:19 +01:00
lu Merge pull request #268083 from shyim/add-ludtwig 2023-11-29 17:52:24 +11:00
lw/lwgrp
lx/lxd-to-incus treewide/lxc: set lxc team as maintainer 2023-12-04 10:06:50 -05:00
m2
ma Merge pull request #271823 from doronbehar/pkg/matlab-language-server 2023-12-06 14:15:21 +00:00
mc/mcuboot-imgtool
me
mf/mfoc-hardnested
mi
mk/mksh
ml/mlx42
mo monophony: 2.3.1 -> 2.4.0 2023-12-04 03:32:24 +00:00
mp/mpifileutils
ms/msolve
mu/mus
my/mystmd
n2/n2
na
ne treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck 2023-11-30 18:56:12 +01:00
nf/nfft
nh/nh nh: init at 3.4.12 2023-12-05 19:48:24 +01:00
ni nimmm: 0.2.0 -> 0.3.0 2023-12-03 13:32:47 +01:00
nl/nls
nn/nncp
no normcap: refactor, wrap with runtime inputs, enable checks, add maintainer pbsds 2023-12-01 00:17:48 +01:00
nr/nrpl
ns
nu
nw/nwg-drawer nwg-drawer: 0.4.1 -> 0.4.3 2023-12-05 19:09:26 +00:00
oa/oauth2l
oc
oe/oelint-adv oelint-adv: 3.26.2 -> 3.26.4 2023-11-28 22:42:50 +00:00
of/offpunk
oh/oh-my-fish
on
op openobserve: init at 0.7.2 2023-12-04 23:40:54 +00:00
or/orchard
ot Merge pull request #265436 from gaelreyrol/otel-desktop-viewer-init 2023-11-29 18:36:14 +11:00
ou/outputcheck
ow/owncloud-client
pa Merge pull request #266350 from h7x4/pkgs-init-pam-honeycreds 2023-12-04 01:13:43 +01:00
pd pdf2odt: 20170207 -> 20220827 2023-11-30 20:45:30 +01:00
pe perl-debug-adapter: init at 1.0.5 2023-12-04 14:23:19 +02:00
pg/pgmoneta
ph phpunit: add meta.mainProgram 2023-12-05 16:40:44 +01:00
pi
pl pls: 5.4.0 -> 0.0.1-beta.2 2023-12-04 15:18:04 +01:00
po polybar: 3.7.0 -> 3.7.1 2023-12-01 20:37:42 +01:00
pp/ppsspp
pr presenterm: enable image support 2023-12-06 15:33:54 +01:00
pt/pterm
pw/pw3270
px/pxder
py pywalfox-native: fixup indentation 2023-12-03 15:47:56 +01:00
pz/pzip
qa/qadwaitadecorations
qr/qrtool qrtool: use rustPlatform.buildRustPackage rec { 2023-11-30 13:51:05 -08:00
qu quicktype: 23.0.78 -> 23.0.80 2023-11-30 04:20:00 +00:00
ra treewide/lxc: set lxc team as maintainer 2023-12-04 10:06:50 -05:00
rc rclip: init at 1.7.6 2023-12-06 16:20:02 +08:00
re Merge pull request #270250 from Lukas-Heiligenbrunner/resources-init 2023-12-06 11:05:03 +01:00
ri
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru
sa Merge pull request #265564 from eclairevoyant/salut 2023-11-29 18:32:19 +11:00
sc screenly-cli: init at 0.2.3 2023-11-30 16:41:47 +00:00
sd/sdcc
se seclists: 2023.3 -> 2023.4 2023-12-01 11:39:55 +01:00
sg/sgfutils sgfutils: init at unstable-2017-11-27 2023-12-04 23:40:12 +02:00
sh
si simdutf: 4.0.5 -> 4.0.8 2023-12-05 11:56:56 +00:00
sl
sm smlfut: init at 1.1.0 2023-11-29 08:58:04 +01:00
sn snowmachine: Add sontek as maintainer 2023-12-01 00:34:18 -04:00
so Merge pull request #265289 from eclairevoyant/sov 2023-12-02 09:57:15 +01:00
sp Merge pull request #270468 from pbsds/spadelang 2023-12-05 17:30:51 +01:00
ss/sssnake sshx: split components, unstable-2023-11-04 -> unstable-2023-11-23 2023-12-04 05:33:26 +02:00
st
su
sv/svix-server
sw Merge pull request #269510 from bbenno/sway-new-workspace 2023-11-29 17:18:41 +11:00
sx/sxhkd
sy
ta tailscale-nginx-auth: init at 1.48.2 2023-12-06 20:57:38 +01:00
tc/tcsh
te
th Merge pull request #261960 from eclairevoyant/themix-gui 2023-12-04 00:43:57 +01:00
ti
tk/tkdiff
tl/tlrc tlrc: 1.7.1 -> 1.8.0 2023-11-30 21:04:25 +01:00
tm/tmuxifier
to/torrentstream
tp
tr Merge pull request #271241 from pbsds/finalattrs-docheck 2023-12-05 18:59:02 +01:00
tt/ttop
tu
tx/txr
ty typst: 0.9.0 -> 0.10.0 2023-12-04 17:15:02 +01:00
uc
ud
ui uiua: 0.4.1 -> 0.5.1 2023-12-03 06:25:54 +01:00
un
up
us/usql
ut/ut
uu/uuu uuu: fix updateScript to pass specific version-regexp 2023-11-28 20:06:39 -03:00
ux/uxn
va/valijson
ve vesktop: 0.4.3 -> 0.4.4 2023-12-02 19:36:31 +01:00
vi Merge pull request #266725 from tejing1/update-vieb-10.5.0 2023-12-03 18:57:56 +01:00
wa wannier90: init at 3.1.0 2023-12-04 17:06:47 +01:00
wb/wb32-dfu-updater
we/websecprobe
wh
wi nixos/windmill: init module 2023-12-05 22:54:18 +00:00
wo
wp/wp-cli wp-cli: allow overriding entire config file 2023-11-30 20:44:09 +01:00
ws/wslay
wt/wtfis
xm/xmldiff
xo
xs
ye/yeahwm
yg/yggdrasil yggdrasil: 0.5.2 → 0.5.4 2023-12-06 07:15:16 +00:00
yt/ytui-music
yu/yunfaavatar
zc/zcfan
ze/zesarux
zi/zitadel
zp
zs/zs
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 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 .