nixpkgs/pkgs/by-name
2024-07-15 14:52:51 -04:00
..
_0/_0xpropo
_2/_2ship2harkinian
_4
_6/_64gram
_9/_9base
a4/a4
a5/a52dec
aa
ab ab-av1: 0.7.15 -> 0.7.16 2024-07-13 09:34:59 +00:00
ac
ad
ae
af
ag
ai
al treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
am
an treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
ao/aocl-utils
ap
ar Merge pull request #327081 from DontEatOreo/update-arc-browser 2024-07-15 22:03:31 +05:30
as ascii-draw: 0.3.4 -> 0.4.0 2024-07-15 17:26:00 +08:00
at
au autotools-language-server: fix evaluation by using python311 2024-07-11 12:21:24 +03:00
av
aw Merge pull request #326572 from devusb/aws-sso 2024-07-14 18:28:37 +02:00
ax
ay
az azure-cli: add stridtech team as maintainer 2024-07-12 12:16:22 +02:00
ba treewide: fix uses of finalAttrs.pname in source urls 2024-07-12 20:23:39 -04:00
bc
bd
be Merge pull request #327080 from Aleksanaa/fetchgit-sha256-fix 2024-07-14 20:56:04 +08:00
bi bicep: add stridtech team as maintainer 2024-07-12 12:16:22 +02:00
bk/bk
bl Merge pull request #325811 from Naxdy/work/blackmagic 2024-07-15 16:41:11 +02:00
bm/bmake
bn/bngblaster
bo
bp Merge pull request #319836 from martinetd/bpftrace_headers 2024-07-14 05:58:31 +02:00
bq/bqn
br Merge pull request #326040 from alienman5k/fix-bruno-css-tabs 2024-07-15 14:16:21 +02:00
bs treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
bt
bu budgie-desktop: passthru nixosTests.budgie 2024-07-14 15:38:11 -04:00
by
c-
c2 treewide: fix uses of repo = finalAttrs.pname 2024-07-12 20:18:43 -04:00
ca fetchCrate: sha256 -> hash 2024-07-14 13:48:13 -04:00
cb treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
cc
cd
ce
cg
ch treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
ci
cl Merge pull request #326965 from r-ryantm/auto-update/clipse 2024-07-14 10:40:57 -04:00
cm
cn/cntb
co treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
cp cpuinfo: 0-unstable-2024-06-02 -> 0-unstable-2024-07-10 2024-07-12 01:09:55 +00:00
cq/cq
cr
cs
ct/ctx
cu
cv/cvemap
cy
cz/czkawka
da Merge pull request #323877 from Luflosi/update/darling-dmg 2024-07-15 22:40:06 +05:30
db
dc
dd
de
dg/dgoss
dh/dhcpig
di Merge pull request #326263 from katexochen/distribution/3-beta 2024-07-16 00:06:42 +08:00
dj/djent
dm
dn
do dotenvx: 1.5.0 -> 1.6.1 2024-07-12 15:05:25 +00:00
dp
dr
ds
dt
du dub: 1.38.0 -> 1.38.1 2024-07-14 06:41:58 +00:00
dv/dvb-apps
dx
dy
e1/e1s treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
ea
eb
ec treewide: sha256 -> hash attribute for gitlab.com fetchers 2024-07-13 22:28:37 +08:00
ed
ee/eepers
ef/efibootmgr
ei
ej/ejsonkms
ek/eksctl eksctl: 0.184.0 -> 0.186.0 2024-07-14 07:44:36 +00:00
el
em
en
eo/eog
ep
er
es
et
eu
ev
ew/eww
ex Merge pull request #324022 from r-ryantm/auto-update/python311Packages.f3d 2024-07-12 15:02:23 +09:00
ey/eyewitness
ez/eza
f2/f2fs-tools
fa fastfetch: 2.17.2-> 2.18.1 2024-07-12 09:17:09 +02:00
fb/fbset
fc
fe
ff fflogs: 8.5.25 -> 8.6.0 2024-07-13 09:06:05 +00:00
fg/fgqcanvas
fi
fj/fjo
fl Merge pull request #325782 from r-ryantm/auto-update/flake-checker 2024-07-11 19:59:30 -04:00
fm treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
fn/fnott
fo
fr Merge pull request #326743 from r-ryantm/auto-update/frankenphp 2024-07-15 20:09:36 +08:00
fs
ft/fte
fu
fv
fw/fwupd
fx/fx
fy/fypp
fz
g3/g3kb-switch
ga Merge pull request #326868 from devusb/gamescopereaper 2024-07-13 22:26:28 +03:00
gb
gc
gd
ge geographiclib: migrate to by-name 2024-07-15 13:43:24 +04:00
gf
gg/gg
gh
gi Merge pull request #326274 from flandweber/gittuf-update 2024-07-15 17:16:55 +03:00
gl
gm
gn
go Merge pull request #322600 from afh/got-openssh 2024-07-12 19:49:20 +00:00
gp
gr grafana-alloy: 1.2.0 -> 1.2.1 2024-07-13 22:44:09 +03:00
gt
gu
gv/gvisor
gx/gxml
h5/h5utils h5utils: remove more 'with lib' 2024-07-14 14:09:56 +02:00
h8/h8mail
ha treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
hb/hb-honeypot
hd
he Merge pull request #324795 from AkechiShiro/init-hextazy 2024-07-13 21:07:49 +02:00
hi
hj/hjson-go
hn/hn-text
ho
hp/hpp2plantuml
ht
hu humioctl: 0.35.0 -> 0.35.1 2024-07-12 07:32:44 +00:00
hv/hvm
hy treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
i2/i2p
i3
ia
ic treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
id treewide: fix uses of finalAttrs.pname in source urls 2024-07-12 20:23:39 -04:00
if/ifrextractor-rs
ig
ii
ij/ijhttp
im Merge pull request #325095 from emilazy/push-puzpnylvpmuw 2024-07-15 15:29:02 +02:00
in invidtui: 0.4.5 -> 0.4.6 2024-07-14 12:24:28 +00:00
io ios-webkit-debug-proxy: 1.9.0 -> 1.9.1 2024-07-13 23:11:17 +03:00
ip
ir
is
it itsycal: rfc format; itsycal: add meta.changelog; ityscal: 0.15.3 -> 0.15.4 (#326327) 2024-07-13 00:08:13 +05:30
iw/iw
iz/izrss
ja
jd/jdt-language-server
je jextract-21: convert to gradle setup hook 2024-07-12 21:36:18 +07:00
ji
jj/jj
jn
jo
jq/jq-zsh-plugin
jr/jrl-cmakemodules
js
jt/jtdx
ju just: 1.29.1 -> 1.30.1 2024-07-11 09:03:16 +05:30
jw/jwasm
ka
kc
kd
ke Merge pull request #321743 from getchoo/pkgs/key-rack/init 2024-07-12 10:08:50 +08:00
kg/kgeotag
ki
kl/klog-time-tracker
km treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
kn treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
ko Merge pull request #325540 from DontEatOreo/fix-cuda-koboldcppp 2024-07-14 15:58:28 +03:00
kp/kplex
kr
ks
kt
ku
kv/kvmarwaita
kx
ky kyverno-chainsaw: 0.2.5 -> 0.2.6 2024-07-13 07:48:09 +00:00
la Merge pull request #326580 from fabaff/playwrightcapture-bump 2024-07-14 15:36:42 +02:00
lb
lc
ld
le treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
lg/lgogdownloader
li Merge pull request #326836 from linj-fork/pr/librime-lua 2024-07-15 10:58:13 +08:00
lk/lk-jwt-service
ll
lm
ln/lngen
lo Merge pull request #327080 from Aleksanaa/fetchgit-sha256-fix 2024-07-14 20:56:04 +08:00
lp
ls
lt/ltris
lu lubelogger: 1.3.1 -> 1.3.5 and switch license to MIT 2024-07-11 16:05:29 -06:00
lv/lv_font_conv
lw/lwgrp
lx lxd-ui: 0.10 -> 0.11 2024-07-13 23:48:52 +00:00
lz
m1/m1ddc
m2
ma magpie: modernize 2024-07-14 15:33:02 -04:00
mb
mc
md Merge pull request #315942 from anas-contribs/by-name/md-tui 2024-07-15 16:09:23 +08:00
me treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
mf treewide: remove unused finalAttrs arg 2024-07-12 21:59:02 -04:00
mg
mi misconfig-mapper: 1.6.0 -> 1.7.0 2024-07-12 21:26:50 +00:00
mk
ml/mlx42
mo treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
mp
mq
ms
mu {tor,mullvad}-browser: migrate to pkgs/by-name 2024-07-12 10:20:37 +02:00
my
n2/n2
n8/n8n
na namespace-cli: 0.0.381 -> 0.0.386 2024-07-14 06:13:50 +00:00
nb
nc Revert "nc4nix: 0-unstable-2024-03-01 -> 0-unstable-2024-05-24; nextcloudPackages: update" 2024-07-13 13:39:53 -07:00
nd/ndstrim
ne neovide: 0.13.1 -> 0.13.2 2024-07-13 14:27:32 +02:00
nf
ng
nh
ni treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
nl
nm/nmap-parse
nn
no
np
nr
ns
nt
nu Merge pull request #324767 from Sigmanificient/remove-unused-stdenv-arguments 2024-07-14 19:42:52 +08:00
nv
nw
nx/nxengine-evo
oa
ob Merge pull request #327090 from SFrijters/obconf-cleanup 2024-07-15 15:38:43 +08:00
oc ocis-bin: support more architectures and add update script 2024-07-13 14:39:29 +02:00
od treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
oe/oelint-adv
of
oh
oi
ok/okolors
ol Merge pull request #326860 from redyf/update-ollama 2024-07-14 14:37:07 +00:00
om
on
oo
op treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
or Merge pull request #325973 from kirillrdy/unpin-go 2024-07-11 22:48:10 -07:00
os ossia-score: 3.2.3-3 -> 3.2.4 2024-07-13 12:45:45 +02:00
ot
ou
ov
ow
pa Merge pull request #325973 from kirillrdy/unpin-go 2024-07-11 22:48:10 -07:00
pc
pd
pe Merge pull request #325138 from r-ryantm/auto-update/petsc 2024-07-15 16:47:31 +02:00
pf/pfft
pg
ph
pi pinta: add meta.changelog 2024-07-15 14:44:39 +01:00
pk
pl plasmusic-toolbar: 1.2.2 -> 1.3.0 2024-07-13 12:49:09 +00:00
pm
pn
po Merge pull request #318015 from doronbehar/pkg/yarnConfigHook 2024-07-12 09:45:26 +03:00
pp/ppsspp
pq
pr Merge pull request #327054 from r-ryantm/auto-update/proton-pass 2024-07-15 15:02:29 +08:00
ps pshs: 0.3.4 -> 0.4.3 2024-07-12 00:33:38 +01:00
pt ptyxis: 46.4 -> 46.5 2024-07-13 15:13:44 +08:00
pu
pv/pvsneslib
pw pwru: 1.0.6 -> 1.0.7, fix build 2024-07-12 18:38:38 +02:00
px/pxder
py pysqlrecon: 0.1.4 -> 0.2.0 2024-07-15 11:23:02 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd
qg/qgrep
qo/qodem qodem: add patches 2024-07-12 00:33:38 +01:00
qp/qpoases
qr treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
qs
qt/qtractor
qu
r0/r0vm r0vm: 1.0.1 -> 1.0.2 2024-07-13 06:18:59 +00:00
r1/r10k
ra
rc
rd/rdwatool
re Merge pull request #326461 from JamieMagee/retrospy-6.5 2024-07-15 14:23:24 +02:00
rh/rHttp
ri ringing-lib: init at 0-unstable-2024-05-31 (#210560) 2024-07-13 23:49:00 +05:30
rk
rl/rl_json
rm
rn/rnd-name
ro Merge pull request #327000 from r-ryantm/auto-update/roddhjav-apparmor-rules 2024-07-14 19:54:04 +05:30
rp/rpcs3
rq
rs treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
rt
ru
rw/rwpspread
ry
s0/s0ix-selftest-tool
s3
sa sarif-fmt: add updateScript 2024-07-15 14:52:51 -04:00
sb
sc scip-go: 0.1.14 -> 0.1.15 2024-07-12 19:00:01 +00:00
sd SDL2_image_2_6: migrate to by-name 2024-07-13 07:22:09 -03:00
se Merge pull request #326683 from eclairevoyant/pname-misuse-pt-1 2024-07-13 09:23:16 +02:00
sf/sfwbar
sg/sgfutils
sh Merge pull request #324811 from fd/init/shopify-cli_3 2024-07-14 16:18:30 +02:00
si siyuan: 3.0.11 -> 3.1.0 2024-07-14 20:11:37 +02:00
sk Merge pull request #326128 from andresilva/spotify-skype-snap-yaml 2024-07-13 18:01:58 +02:00
sl
sm
sn Merge pull request #327379 from thiagokokada/snes9x-bump 2024-07-15 18:07:51 +01:00
so
sp Merge pull request #322529 from getchoo/pkgs/spot/adopt 2024-07-15 15:53:14 +08:00
sq
sr
ss
st Merge pull request #327148 from DontEatOreo/update-stats 2024-07-15 22:05:05 +05:30
su surrealdb: 1.5.3 -> 1.5.4 2024-07-12 23:12:04 +02:00
sv
sw Merge pull request #326827 from Aleksanaa/trivial-sha256-fix 2024-07-14 22:40:25 +08:00
sx
sy syft: 1.8.0 -> 1.9.0 2024-07-13 07:09:37 +00:00
t-/t-rex
ta treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
tb/tbump
tc/tcsh
td
te terragrunt: 0.59.6 -> 0.62.0 2024-07-13 20:15:46 +00:00
tg
th
ti tinymist: 0.11.14 -> 0.11.15 2024-07-15 07:44:19 +02:00
tk
tl
tm
to {tor,mullvad}-browser: migrate to pkgs/by-name 2024-07-12 10:20:37 +02:00
tp
tr trealla: 2.53.10 -> 2.53.48 2024-07-14 02:32:06 +00:00
ts/tsm-client
tt
tu tuifimanager: 4.0.6 -> 4.1.7 (#326616) 2024-07-15 11:35:50 +05:30
tw fetchCrate: sha256 -> hash 2024-07-14 13:48:13 -04:00
tx/txr
ty typstyle: 0.11.28 -> 0.11.29 2024-07-13 11:05:46 +02:00
uc
ud
ue
ug
uh/uhttpmock_1_0
ui
um/umpire
un
up
us treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
ut
uu/uuu
uv/uv
uw/uwhoisd
ux
va
vc
vd/vdhcoapp
ve vencord: 1.9.3 -> 1.9.4 2024-07-14 09:01:26 +00:00
vg/vgm2x
vi Merge pull request #326996 from r-ryantm/auto-update/vinegar 2024-07-14 10:47:54 -04:00
vk/vkd3d
vl
vm
vn vnote: 3.18.0 -> 3.18.1 2024-07-14 23:57:59 +02:00
vo
vp
vs/vscode-js-debug
vu Merge pull request #325635 from r-ryantm/auto-update/vue-language-server 2024-07-11 20:00:32 +02:00
vv/vvvvvv treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
vz/vzic
wa warp-terminal: 0.2024.06.25.08.02.stable_01 -> 0.2024.07.09.08.01.stable_00 2024-07-15 04:51:59 +00:00
wb Merge pull request #326827 from Aleksanaa/trivial-sha256-fix 2024-07-14 22:40:25 +08:00
we
wf/wf-touch
wg/wg-access-server
wh where-is-my-sddm-theme: 1.9.2 -> 1.10.0 2024-07-12 12:43:30 +00:00
wi treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
wl
wo workout-tracker: 1.15.2 -> 1.16.1 2024-07-15 11:55:34 +00:00
wp
wr/wrangler
ws
wt
wx/wxc
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc xcbeautify: 1.4.0 -> 2.4.1 2024-07-13 12:52:30 +05:30
xd
xe
xf/xfs-undelete
xh/xhosts
xi
xl xlights: 2024.12 -> 2024.13 2024-07-14 16:37:27 +00:00
xm treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
xn/xnlinkfinder
xo
xp
xr/xr-hardware
xs
xu/xunit-viewer
xw
ya yaml-filter: init at 0.2.0 2024-07-14 19:05:57 +01:00
yc/ycmd
yd/ydotool
ye
yg/yggdrasil
yj/yj
yo
ys/ysfx
yt treewide: remove unused occurence of stdenv (and other) arguments 2024-07-14 04:32:56 +02:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zenity: 4.0.1 → 4.0.2 2024-07-13 20:31:56 +08:00
zf/zfind
zi
zl/zluda
zm/zmkBATx
zo
zp
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

$ ./maintainers/scripts/check-by-name.sh master

See here for more info.

Recommendation for new packages with multiple versions

These checks of the pkgs/by-name structure can cause problems in combination:

  1. New top-level packages using callPackage must be defined via pkgs/by-name.
  2. Packages in pkgs/by-name cannot refer to files outside their own directory.

This means that outside pkgs/by-name, multiple already-present top-level packages can refer to some common file. If you open a PR to another instance of such a package, CI will fail check 1, but if you try to move the package to pkgs/by-name, it will fail check 2.

This is often the case for packages with multiple versions, such as

{
  foo_1 = callPackage ../tools/foo/1.nix { };
  foo_2 = callPackage ../tools/foo/2.nix { };
}

The best way to resolve this is to not use callPackage directly, such that check 1 doesn't trigger. This can be done by using inherit on a local package set:

{
  inherit
    ({
      foo_1 = callPackage ../tools/foo/1.nix { };
      foo_2 = callPackage ../tools/foo/2.nix { };
    })
    foo_1
    foo_2
    ;
}

While this may seem pointless, this can in fact help with future package set refactorings, because it establishes a clear connection between related attributes.

Further possible refactorings

This is not required, but the above solution also allows refactoring the definitions into a separate file:

{
  inherit (import ../tools/foo pkgs)
    foo_1 foo_2;
}
# pkgs/tools/foo/default.nix
pkgs: {
  foo_1 = callPackage ./1.nix { };
  foo_2 = callPackage ./2.nix { };
}

Alternatively using callPackages if callPackage isn't used underneath and you want the same .override arguments for all attributes:

{
  inherit (callPackages ../tools/foo { })
    foo_1 foo_2;
}
# pkgs/tools/foo/default.nix
{
  stdenv
}: {
  foo_1 = stdenv.mkDerivation { /* ... */ };
  foo_2 = stdenv.mkDerivation { /* ... */ };
}

Exposing the package set

This is not required, but the above solution also allows exposing the package set as an attribute:

{
  foo-versions = import ../tools/foo pkgs;
  # Or using callPackages
  # foo-versions = callPackages ../tools/foo { };

  inherit (foo-versions) foo_1 foo_2;
}