2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-18 10:04:08 +00:00
nixpkgs/pkgs/by-name
2024-02-08 21:53:09 +01:00
..
_4/_4th
_9/_9base
a4/a4
aa
ab/aba
ac
ad
ae
af/afterstep
ai
al Merge pull request from r-ryantm/auto-update/alsa-tools 2024-02-03 00:40:22 +04:00
am
an
ao/aocl-utils
ap Merge pull request from Luflosi/update/apfsprogs 2024-02-07 17:35:40 +01:00
ar
as
at Merge pull request from atorres1985-contrib/atari-emulators 2024-02-05 16:39:16 +01:00
au
av/avr-sim
aw aws-gate: fix missing and outdated requirements 2024-02-04 19:05:56 +01:00
ax/axmldec
ay ayatana-indicator-session: init at 23.10.3 2024-02-04 15:42:21 +01:00
ba Merge pull request from GetPsyched/banana-cursor 2024-02-05 01:08:08 +01:00
bc/bc-ur
be
bi bitmagnet: 0.5.1 -> 0.6.2 2024-02-07 18:38:15 +00:00
bk/bk
bl bluetuith: 0.2.0 -> 0.2.1 2024-02-04 06:04:34 +00:00
bm/bmake
bn/bngblaster bngblaster: 0.8.34 -> 0.8.35 () 2024-02-03 12:45:16 +01:00
bo Merge pull request from christoph-heiss/init/boinctui 2024-02-06 16:54:00 +01:00
br
bs/bsync
bu
by/bytecode-viewer
c2
c-
ca cadzinho: init at 0.4.1 2024-02-05 02:40:56 +04:00
cb/cbmbasic
cd
ce celeste64: 0-unstable-2024-02-02 -> 1.1.1 2024-02-06 22:05:07 +01:00
cg/cgl
ch
ci Merge pull request from katexochen/ci-edit/init 2024-02-05 00:35:34 +01:00
cl Merge pull request from r-ryantm/auto-update/clzip 2024-02-04 20:23:32 +01:00
cm
cn/cntb
co codeium: 1.6.28 -> 1.6.30 2024-02-04 16:17:07 +00:00
cp
cr Merge pull request from katexochen/cronutils/init 2024-02-05 12:19:03 +01:00
cs Merge pull request from DontEatOreo/pkgs-csharprepl 2024-02-06 18:01:30 +01:00
ct/ctx
cy
cz/czkawka
da/dark-mode-notify
db/dbus-cpp
dc/dc3dd
de Merge pull request from uninsane/pr-delfin-init 2024-02-05 18:07:12 +01:00
di
dj/djent
dm
do dorion: 4.1.1 -> 4.1.2 2024-02-08 06:57:48 +00:00
dp/dpp
dr/drone-scp
ds/dsda-doom dsda-doom: init at 0.27.5 2024-02-05 18:36:02 +01:00
dt/dtcmp
du
dv/dvb-apps
dx
dy
ea/easyeasm
eb
ec
ed/eduvpn-client
ei eigenlayer: 0.5.1 -> 0.5.2 2024-02-01 18:31:22 +00:00
ek/eksctl eksctl: 0.169.0 -> 0.170.0 2024-02-03 09:30:32 +00:00
el
em emulationstation: refactor 2024-02-04 21:34:21 -03:00
en
er
es
eu
ex
ez/eza eza: 0.18.0 -> 0.18.1 2024-02-08 07:12:31 +01:00
fa Merge pull request from jtbx/farge-style 2024-02-05 01:11:34 +01:00
fb/fbset
fc
fe
ff
fi Merge pull request from r-ryantm/auto-update/files-cli 2024-02-05 11:12:06 -05:00
fl
fm
fn/fnott
fo Merge pull request from panicgh/foonathan-memory 2024-02-07 14:23:40 +01:00
fr freefilesync: add disable update patch 2024-02-05 14:05:12 +03:00
fu/fuchsia-cursor
fw/fwupd
ga
gb/gbar
gc Merge pull request from wegank/gcli-platforms 2024-02-08 01:26:32 +01:00
ge
gh
gi
gl
gm/gmic
go Merge pull request from katexochen/go-critic/inint 2024-02-09 06:12:27 +11:00
gp gpt4all: init at 2.6.2 2024-02-02 14:31:08 +01:00
gr graphite-cli: add fish completion 2024-02-06 17:30:32 -05:00
gt
gu
h8/h8mail
ha hare: unstable-2023-11-27 -> 0-unstable-2024-02-01 2024-02-05 08:26:47 -03:00
hd/hdrop
he helix-gpt: 0.15 -> 0.25 2024-02-03 09:26:16 -05:00
hi/hifile
hj/hjson-go
ho
ht
hu/hugo
hy
i3
ia
ic
id/idsk
if/ifrextractor-rs
ig ignite-cli: 28.1.1 -> 28.2.0 2024-02-07 05:39:58 +00:00
ii
im
in inotify-info: init at unstable-2024-01-05 2024-02-08 09:21:41 +02:00
ir/ironbar
ja
jd/jdt-language-server
ji
jj/jj
jn/jnr-posix jnr-posix: init at 3.1.18 2024-02-02 10:00:33 +13:00
jo/joycond-cemuhook
ju/justbuild
ka
kc/kconfig-frontends
kd/kdsingleapplication
ke
kg/kgeotag
ki
kl/klog-time-tracker
km/kmsvnc kmsvnc: 0.0.5 -> 0.0.6 2024-02-06 05:06:18 +00:00
ko
kp/kplex
ks/kseexpr
kt
ku
kx/kxstitch
la
lc/lcab
le Merge pull request from r-ryantm/auto-update/lefthook 2024-02-05 21:02:58 +01:00
li Merge pull request from r-ryantm/auto-update/libpkgconf 2024-02-06 17:04:55 +01:00
ll llama-cpp: 2050 -> 2074 2024-02-06 00:29:01 +00:00
ln/lngen
lo
ls/lshw
lu
lw/lwgrp
lz/lzsa
m2
ma Merge pull request from IogaMaster/manix-nix-community-edition 2024-02-07 17:45:35 +01:00
mc mcomix: 3.0.0 -> 3.1.0 2024-02-04 18:00:25 -05:00
md/md4c
me
mf/mfoc-hardnested
mg/mgitstatus
mi microsoft-identity-broker: 1.6.1 -> 1.7.0 2024-02-06 04:17:04 +00:00
mk
ml/mlx42
mo monophony: 2.5.2 -> 2.6.0 2024-02-06 01:08:42 +00:00
mp/mpifileutils
mq/mqttx
ms msalsdk-dbusclient: init at 1.0.1 2024-02-02 10:00:33 +13:00
mu
my/mystmd
n2/n2
na namespace-cli: 0.0.332 -> 0.0.333 2024-02-06 07:27:06 +00:00
nc/ncdc
ne Merge pull request from Aleksanaa/netease-cloud-music-gtk 2024-02-08 20:35:15 +01:00
nf/nfft
nh/nh
ni
nl
nm/nmap-parse nmap-parse: init at 0-unstable-2022-09-26 2024-02-03 23:51:00 +01:00
nn/nncp
no noto-fonts: 24.1.1 -> 24.2.1 2024-02-03 04:04:20 +00:00
np np: init at 0.11.0 2024-02-03 23:19:06 +01:00
nr
ns
nu
nv nixosTests.nvmetcfg: init 2024-02-02 17:10:25 -05:00
nw nwg-hello: init at 0.1.6 2024-02-01 08:11:03 -06:00
oa
ob
oc
oe/oelint-adv oelint-adv: 4.1.0 -> 4.1.1 2024-02-03 11:57:20 +00:00
of/offpunk
oh/oh-my-fish
on
op Merge pull request from TomaSajt/openrocket 2024-02-05 00:33:25 +01:00
or orchard: 0.15.0 -> 0.15.1 2024-02-06 06:02:59 +00:00
ot oterm: 0.1.21 -> 0.1.22 2024-02-01 23:38:27 +00:00
ou/outputcheck
ov
ow/owncloud-client
pa parallel-disk-usage: ignore broken test 2024-02-07 07:56:09 +00:00
pd pdf-sign: fix version name, simplify installPhase, move to pkgs/by-name 2024-02-07 20:12:13 +01:00
pe Merge pull request from raspher/peergos 2024-02-08 01:29:32 +00:00
pf/pfft
pg
ph phpunit: 10.5.1 -> 11.0.2 2024-02-08 08:21:42 +01:00
pi Merge pull request from Liassica/add-pio 2024-02-03 10:55:43 +01:00
pk/pkcrack
pl
pm pmtiles: 1.14.0 -> 1.14.1 2024-02-08 07:19:52 +00:00
pn/pnfft
po posterazor: minor improvements 2024-02-06 16:41:33 +01:00
pp/ppsspp ppsspp: 1.17 -> 1.17.1 2024-02-05 07:12:45 +00:00
pr Merge pull request from r-ryantm/auto-update/prr 2024-02-04 23:58:04 +01:00
pt/pterm
pu pupdate: 3.2.0 -> 3.2.1 2024-02-04 05:04:52 +00:00
pw
px/pxder
py pysqlrecon: 0.1.3 -> 0.1.4 2024-02-07 12:00:00 +00:00
pz/pzip
qa/qadwaitadecorations
qg/qgrep
qr
qs
qt/qtractor
qu
ra rage: migrate to by-name 2024-02-04 04:20:00 +00:00
rc Merge pull request from iynaix/bump-rclip 2024-02-06 18:02:11 +01:00
re renode-dts2repl: unstable-2024-01-20 -> unstable-2024-02-02 2024-02-03 18:15:14 +00:00
ri
rm/rmg
ro
rp/rpcs3
rq/rqbit
rs
rt/rtl-sdr-osmocom
ru rustdesk-flutter: init at unstable-2024-02-03 2024-02-05 12:23:22 +01:00
s3/s3scanner
sa
sc
sd
se Merge pull request from StarGate01/nrfconnect 2024-02-06 21:20:50 +01:00
sg/sgfutils
sh
si signal-export: 1.8.0 -> 1.8.1 2024-02-06 17:24:09 +00:00
sl
sm smuview: init at 0.0.5-unstable-2023-04-12 2024-02-08 21:53:09 +01:00
sn snicat: set ldflags 2024-02-06 23:17:47 +08:00
so
sp spicetify-cli: 2.30.0 -> 2.31.0 2024-02-03 08:10:32 +00:00
sq/sqlite-vss
sr
ss
st
su
sv
sw Merge pull request from michaelgrahamevans/switcheroo 2024-02-03 17:26:55 +01:00
sx
sy
ta
tc/tcsh
td/tdl tdl: init at 0.15.1 2024-02-07 13:12:30 +04:00
te Merge pull request from gangaram-tii/pr/tetragon 2024-02-06 15:29:05 +01:00
th
ti tigerbeetle: 0.14.177 -> 0.14.178 2024-02-06 18:54:07 +00:00
tk/tkdiff
tl tlmi-auth: enable cross-compliation by correctly classifying dependencies 2024-02-03 12:13:37 +01:00
tm/tmuxifier
to
tp
tr
tt/ttop
tu
tx/txr
ty
uc
ud
ue/uemacs
ui
um/umpire
un
up
us/usql
ut/ut
uu/uuu
ux/uxn
va/valijson
vc
ve
vg/vgm2x
vi
vu/vulkan-volk
wa
wb/wb32-dfu-updater
we
wh
wi
wl
wo
wp/wp-cli
ws/wslay
wt/wtfis
x1/x16
xa/xarcan
xd
xf/xfs-undelete
xi/xib2nib
xm
xo xonsh: 0.14.0 -> 0.14.4 () 2024-02-04 23:06:22 +01:00
xp/xplr
xs
xw/xwayland-run
ya/yanic
ye
yg/yggdrasil
yj/yj
yo Merge pull request from purcell/youplot 2024-02-01 18:16:22 -05:00
yt
yu/yunfaavatar
za/zapzap
zb/zbus-xmlgen
zc/zcfan
ze/zesarux
zi Merge pull request from Sorixelle/zitadel-fixes 2024-02-02 16:38:05 +00:00
zo/zola
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. 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

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

See here for more info.