nixpkgs/pkgs/by-name
Silvan Mosberger 02b3c06b1c
Merge pull request #274591 from tweag/by-name-reproducible
`pkgs/by-name`: Enable gradual migration checks and add `run-local.sh`
2023-12-22 00:17:37 +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 aba: 0.7.1 -> 0.8.0 2023-12-02 21:48:35 -03:00
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 amphetype: init at 1.0.0 2023-12-21 09:40:52 +01:00
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 treewide: don't use pname for mainProgram where pname is static 2023-12-20 14:25:55 +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 treewide: don't use pname for mainProgram where pname is static 2023-12-20 14:25:55 +01:00
ax/axmldec
ay/ayatana-indicator-messages
ba
bc/bc-ur bc-ur: init at 0.3.0 2023-12-17 20:28:59 +01:00
be
bi
bk/bk
bl/bluetility
bm/bmake
bn/bngblaster bngblaster: init at 0.8.29 2023-12-03 11:14:11 +01:00
bo boogie: 3.0.6 -> 3.0.9 2023-12-13 08:18:51 +00:00
br bruno: 1.4.0 -> 1.5.0 2023-12-18 10:37:08 +10:00
bu
c2 c2fmzq: 0.4.9 -> 0.4.15 2023-12-13 11:54:15 +00:00
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 cloudlogoffline: init at 1.1.4 2023-12-21 04:04:44 +01:00
cm Merge master into staging-next 2023-12-08 06:00:55 +00:00
cn/cntb
co composer-require-checker: init at 4.8.0 2023-12-20 14:39:33 +01:00
cp/cpu-x cpu-x: 5.0.1 -> 5.0.2 2023-12-07 01:38:56 +00:00
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 dependabot-cli: 1.39.0 -> 1.41.0 2023-12-17 09:06:06 +00:00
di didder: 1.2.0 -> 1.3.0 2023-12-21 09:18:08 +00:00
dj/djent
dm/dmenu-bluetooth
do doublecmd: 1.1.5 -> 1.1.7 2023-12-15 07:02:17 +00:00
dr/drone-scp
dt/dtcmp
du durden: unstable-2023-08-11 -> unstable-2023-10-23 2023-12-05 23:04:47 -03:00
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 Merge pull request #266658 from snf1k/emojify 2023-12-02 15:09:51 +01:00
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 feather: 2.5.2 -> 2.6.1 2023-12-17 20:31:43 +01:00
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 fmtoy: Move to pkgs/by-name 2023-12-03 20:34:25 +01:00
fn/fnott
fo footswitch: unstable-2022-04-12 -> unstable-2023-10-10 2023-12-11 15:03:56 -05:00
fr Merge pull request #274430 from shyim/frankenphp-fix-colision 2023-12-20 18:10:00 +01:00
ga
gb/gbar
gc gcli: 2.0.0 -> 2.1.0 2023-12-11 05:19:17 +00:00
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 goredo: 2.5.0 -> 2.6.0 2023-12-20 05:49:26 +00:00
gr gruvbox-plus-icon-pack: init at unstable-2023-11-07 2023-12-07 16:53:21 +03:00
gu guile-lzma: don't strip on darwin 2023-12-05 00:47:20 +01:00
ha hare: unstable-2023-10-23 -> unstable-2023-11-27 2023-12-14 19:27:37 -03:00
hd/hdrop hdrop: init at 0.2.4 2023-12-06 04:09:38 +01:00
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 ia-writer-quattro: init at unstable-2023-06-16 2023-12-04 00:29:33 +01:00
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 python3Packages.shapely: rename shapely18 to shapely_1_8 2023-12-07 09:45:59 +01:00
km/kmsvnc
ko koodousfinder: init at 0.1.0 2023-12-14 08:36:55 +01:00
ks/kseexpr
kt ktls-utils: init at 0.10 2023-12-18 16:36:43 -03:00
ku kubo: 0.24.0 -> 0.25.0 2023-12-14 23:21:54 +01:00
la Merge master into staging-next 2023-12-07 12:01:24 +00:00
lc/lcab
le lefthook: 1.5.3 -> 1.5.5 2023-12-16 06:53:29 +00:00
li Merge pull request #265182 from dunxen/update-liana 2023-12-20 11:08:51 +01:00
ll llama-cpp: 1573 -> 1671 2023-12-21 21:37:24 +03:00
ln/lngen
lo Merge pull request #269247 from 2xsaiko/outgoing/louvre 2023-12-21 03:51:43 +01:00
lu
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 memtree: deduplicate pytestCheckHook 2023-12-12 19:49:19 +01:00
mf/mfoc-hardnested
mi Revert "maintainer-list: drop gm6k" 2023-12-19 13:10:44 +01:00
mk/mksh
ml/mlx42
mo mommy: 1.2.4 -> 1.2.6 2023-12-17 01:49:34 +00:00
mp/mpifileutils
ms/msolve msolve: 0.6.1 -> 0.6.3 2023-12-17 16:31:47 +01:00
mu/mus
my/mystmd mystmd: 1.1.31 -> 1.1.36 2023-12-17 04:59:23 +00:00
n2/n2
na Merge pull request #274894 from r-ryantm/auto-update/namespace-cli 2023-12-19 15:51:51 +09:00
ne netclient: 0.21.1 -> 0.21.2 2023-12-17 06:06:19 +00:00
nf/nfft
nh/nh nh: init at 3.4.12 2023-12-05 19:48:24 +01:00
ni nitter: unstable-2023-10-31 -> unstable-2023-12-03 2023-12-19 23:53:17 +08:00
nl/nls
nn/nncp
no treewide: don't use pname for mainProgram where pname is static 2023-12-20 14:25:55 +01:00
nr/nrpl
ns
nu numbat: 1.8.0 -> 1.9.0 2023-12-19 14:40:03 +01:00
nw/nwg-drawer nwg-drawer: 0.4.1 -> 0.4.3 2023-12-05 19:09:26 +00:00
oa Merge pull request #199993 from wentasah/oauth2ms 2023-12-11 09:31:07 -05:00
oc
oe/oelint-adv oelint-adv: 3.26.4 -> 3.26.5 2023-12-17 09:52:53 +00:00
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 oterm: init at 0.1.17 2023-12-19 18:41:54 +03:00
ou/outputcheck
ow/owncloud-client
pa passes: 0.8 -> 0.9 2023-12-17 15:00:13 +00:00
pd
pe Merge pull request #259393 from OPNA2608/init/persistent-cache-cpp 2023-12-18 14:07:24 +01:00
pg/pgmoneta pgmoneta: 0.7.1 -> 0.7.2 2023-12-17 15:43:02 +00:00
ph phpunit: add meta.mainProgram 2023-12-05 16:40:44 +01:00
pi pipeworld: unstable-2023-03-02 -> unstable-2023-02-05 2023-12-05 23:04:47 -03:00
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 Merge pull request #270708 from lucperkins/protoc-gen-rust-grpc 2023-12-19 12:25:38 +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
qu
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 regex2json: init at 0.11.0 2023-12-18 22:30:00 +01:00
ri rita: init at 4.8.0 2023-12-07 11:17:39 +01:00
ro
rp/rpcs3
rq/rqbit rqbit: 4.0.1 -> 5.4.0 2023-12-17 04:20:00 +00:00
rs
rt/rtl-sdr-osmocom
ru
sa satty: 0.7.0 -> 0.8.0 2023-12-04 15:02:34 +01:00
sc
sd/sdcc
se seabios: migrate to by-name 2023-12-11 08:22:52 -03:00
sg/sgfutils sgfutils: init at unstable-2017-11-27 2023-12-04 23:40:12 +02:00
sh shopware-cli: 0.3.12 -> 0.4.4 2023-12-19 22:01:42 +01:00
si simdutf: 4.0.5 -> 4.0.8 2023-12-05 11:56:56 +00:00
sl
sm
sn Merge pull request #269750 from ianmjones/snippetexpander-1.0.1 2023-12-18 13:55:01 +01:00
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
sr/srm-cuarzo srm-cuarzo: init at 0.4.0-1 2023-12-20 20:01:54 +01:00
ss/sssnake sshx: split components, unstable-2023-11-04 -> unstable-2023-11-23 2023-12-04 05:33:26 +02:00
st steamguard-cli: 0.12.3 -> 0.12.5 2023-12-09 11:28:05 +00:00
su supersonic: 0.8.0 -> 0.8.1 2023-12-07 11:26:11 +10:00
sv/svix-server
sw swayfx: wrap like sway 2023-12-17 09:30:31 +00:00
sx/sxhkd
sy syn2mas: init at 0.7.0 2023-12-18 18:29:58 +01:00
ta tailscale-nginx-auth: init at 1.48.2 2023-12-06 20:57:38 +01:00
tc/tcsh
te terrapin-scanner: 1.0.3 -> 1.1.0 2023-12-20 22:16:20 +01:00
th Merge pull request #261960 from eclairevoyant/themix-gui 2023-12-04 00:43:57 +01:00
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 typst: 0.9.0 -> 0.10.0 2023-12-04 17:15:02 +01:00
uc
ud
ui uiua: 0.7.0 -> 0.7.1 2023-12-19 07:10:13 +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 vcpkg: init at 2023.08.09 2023-12-07 10:01:01 -03:00
ve vesktop: add missing libnotify 2023-12-13 21:11:50 -05:00
vg/vgm2x vgm2x: 0.0.0-unstable-2023-05-10 -> 0.0.0-unstable-2023-08-27 2023-12-03 20:34:25 +01:00
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 xarcan: unstable-2022-06-14 -> unstable-2023-11-03 2023-12-05 23:04:47 -03:00
xd xdg-terminal-exec: init at unstable-2023-12-08 2023-12-11 13:01:33 +01:00
xm/xmldiff
xo xorriso: update hash 2023-12-06 14:06:36 +01:00
xs
xw/xwayland-run xwayland-run: init at 0.0.2 2023-12-18 16:44:05 -03:00
ye/yeahwm
yg/yggdrasil yggdrasil: 0.5.2 → 0.5.4 2023-12-06 07:15:16 +00:00
yt
yu/yunfaavatar
za/zapzap zapzap: fix double wrapping, install icon in correct directory 2023-12-17 21:35:45 +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 tests.nixpkgs-check-by-name: Create script to run locally 2023-12-20 17:38:03 +01:00

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.

You can locally emulate the CI check using

$ ./pkgs/test/nixpkgs-check-by-name/scripts/run-local.sh master

See here for more info.