1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/by-name
2023-12-05 17:00:45 +01:00
..
_4/_4th
_9/_9base
a4/a4 a4term: rename package to a4 2023-10-06 21:56:23 -03:00
aa/aarch64-esr-decoder
ab/aba aba: 0.7.1 -> 0.8.0 2023-12-02 21:48:35 -03:00
ac acc: init at 1.60 2023-11-26 16:56:53 +02:00
ad/adafruit-nrfutil python3Packages.adafruit-nrfutil: fix tests 2023-11-20 21:19:25 +01:00
af/afterstep
ai airlift: init at 0.3.0 2023-10-30 05:46:38 -06:00
al alp: init at 1.1.17 2023-11-25 09:48:57 +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 aocl-utils: init at 4.1 2023-10-06 10:34:01 +02:00
ap apt: 2.7.6 -> 2.7.7 2023-11-24 15:26:43 -03:00
ar Merge staging-next into staging 2023-10-21 18:01:53 +00:00
as ast-grep: fix build with clang 12+ 2023-11-21 15:14:53 +08:00
at/athens athens: init at 0.12.1 2023-11-07 14:43:07 +01:00
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 axmldec: init at 1.2.0 2023-10-31 20:30:27 -03:00
ay/ayatana-indicator-messages nixos/tests: Add ayatana-indicators test 2023-10-20 14:10:48 +02:00
ba base45: migrate from nimPackages 2023-11-28 16:48:10 +02:00
be Merge pull request #269921 from GoldsteinE/init/betula 2023-11-29 16:59:05 +11:00
bi Merge pull request #259645 from otavio/bb-lsp 2023-10-11 16:46:11 +01:00
bk/bk bk: init at 0.6.0 2023-11-13 13:53:57 +01:00
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
bn/bngblaster bngblaster: init at 0.8.29 2023-12-03 11:14:11 +01:00
bo boogie: 3.0.5 -> 3.0.6 2023-11-22 08:51:32 -08:00
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 c2nim: move out of nimPackages 2023-11-28 16:48:10 +02:00
ca cargo-vibe: init at unstable 2022-12-29 2023-12-01 14:41:41 +01:00
cb/cbmbasic cbmbasic: init at unstable-2022-12-18 2023-10-16 06:17:35 +02:00
cd cdk: 5.0-20221025 -> 5.0-20230201 2023-10-09 23:50:05 -03:00
ce certmgr: 1.6.4 -> 3.0.3, migrate to buildGoModule and by-name 2023-11-30 23:32:54 +01:00
ch/changelog-d changelog-d: Add shell completions 2023-11-19 13:17:23 +01:00
ci cimg: 3.3.1 -> 3.3.2 2023-11-11 08:14:03 +00:00
cl maintainers: rename jgarcia to chewblacka 2023-11-27 17:38:13 +00:00
cm/cmake cmake: fix risc-v build failure 2023-11-22 16:10:35 -03:00
cn/cntb
co cosmic-edit: unstable-2023-11-02 -> unstable-2023-11-29 2023-12-01 08:30:38 -07:00
cp/cpu-x cpu-x: 5.0.0 -> 5.0.1 2023-11-12 01:23:54 +00:00
cr crossplane-cli: init at 1.14.3 2023-11-30 02:34:04 +02:00
ct/ctx ctx: migrate to by-name 2023-10-05 17:53:27 -03:00
cy cyme: add passthru.tests.version 2023-11-26 23:23:17 +01:00
da/dark-mode-notify dark-mode-notify: add meta.mainProgram 2023-11-04 08:40:36 +01:00
db/dbus-cpp dbus-cpp: Fix pkg-config file 2023-10-18 23:48:22 +02:00
de Merge pull request #262336 from h7x4/init-devdash 2023-11-18 19:14:23 +01:00
di disarchive: rename from guile-disarchive, fix program 2023-10-28 18:07:35 +02:00
dj/djent
dm/dmenu-bluetooth
do doge: patch adding small doge 2023-12-01 15:07:52 +01:00
dt/dtcmp dtcmp: init at 1.1.5 2023-11-10 10:39:51 +01:00
du/dublin-traceroute dublin-traceroute: init at 0.4.2-unstable-2023-04-12 2023-11-27 09:58:52 -08:00
dv/dvb-apps dvb-apps: init at 1.1.1-unstable-2014-03-21 2023-11-08 19:18:13 +01:00
dx dxvk: rely on the cross support in nixpkgs 2023-11-13 17:53:09 -05:00
dy/dyalog
ec ecc: 1.0.11 -> 1.0.12 2023-11-03 16:10:04 +00:00
ei/eiwd eiwd: init at 2.8-1 (#208844) 2023-11-03 09:26:41 +02:00
ek/eksctl eksctl: 0.163.0 -> 0.164.0 2023-11-19 03:35:38 +11:00
el/elvish
em Merge pull request #266658 from snf1k/emojify 2023-12-02 15:09:51 +01:00
en/engage
er/eriscmd eriscmd: migrate from nimPackages.eris 2023-11-28 16:48:10 +02:00
es/esbuild-config
eu/eudev eudev: refactor 2023-10-09 00:46:25 -03:00
ez/eza eza: 0.16.1 -> 0.16.2 2023-11-30 06:00:14 +01:00
fa fangfrisch: init at 1.6.1 2023-11-22 03:04:20 +00:00
fc fcitx5-nord: init at unstable-2021-07-27 2023-10-26 10:16:55 +08:00
fe/feather feather: init at 2.5.2 2023-11-08 21:43:25 +01:00
fi/firewalk firewalk: init at 5.0 2023-10-20 17:08:27 +02:00
fl flarectl: 0.80.0 -> 0.82.0 2023-12-02 12:43:00 +00:00
fm/fm-tune fm-tune: migrate to by-name 2023-10-17 15:10:39 +11:00
fn/fnott fnott: move to pkgs/by-name 2023-11-26 11:15:17 -05:00
fo/fortune-kind fortune-kind: 0.1.10 -> 0.1.11 2023-11-30 05:41:24 +01:00
fr framework-system-tools: init at unstable-2023-11-14 (#267507) 2023-12-03 11:15:10 +01:00
ga gatus: init at 5.7.0 2023-11-25 01:01:44 +08:00
gb/gbar gbar: init at unstable-2023-09-21 2023-10-05 18:17:38 +08:00
gc gcli: init at 2.0.0 2023-11-25 19:48:48 +01:00
ge get-google-fonts: init at unstable-2020-06-30 2023-12-02 17:02:01 +01:00
gh
gi Merge pull request #266595 from snf1k/gifgen 2023-12-02 15:12:45 +01:00
gl/glycin-loaders glycin-loaders: 0.1.1 → 0.1.2 2023-11-21 08:42:48 +01:00
gm/gmic gmic: 3.2.6 -> 3.3.1 2023-10-09 19:01:25 -03:00
go goredo: 2.4.0 -> 2.5.0 2023-11-28 10:55:09 +01:00
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 handlr-regex: 0.8.5 -> 0.9.0 2023-12-03 21:21:29 -05:00
he headphones-toolbox: 0.0.4 -> 0.0.5 2023-10-18 10:17:54 -04:00
hi/hifile hifile: 0.9.9.5 -> 0.9.9.6 2023-11-19 00:00:01 +01:00
ho buildNimPackage: load lockfiles and overrides 2023-11-28 16:48:10 +02:00
hy hyprshot: init at 1.2.3 2023-11-19 02:00:43 +08:00
i3/i3bar-river i3bar-river: 0.1.3 -> 0.1.5 2023-11-13 06:33:58 +00:00
ia/ia-writer-quattro ia-writer-quattro: init at unstable-2023-06-16 2023-12-04 00:29:33 +01:00
ic/icewm icewm: 3.4.3 -> 3.4.4 2023-11-03 10:48:27 -03:00
if/ifrextractor-rs
im impression: 2.1 -> 3.0.1 2023-11-23 13:13:38 -08:00
in Merge pull request #270410 from rettetdemdativ/invidtui 2023-12-01 15:40:12 +11:00
ir/ironbar
ja jazz2: 2.2.2 -> 2.3.0 2023-11-29 21:39:22 +01:00
ji jitterentropy-rngd: init at 1.2.8 2023-10-20 10:04:11 +02:00
jo/joycond-cemuhook joycond-cemuhook: init at unstable-2023-08-09 2023-11-10 18:09:55 -08:00
ju/justbuild protobuf: use new package definition only 2023-10-11 13:20:31 +00:00
ka/katriawm
kc/kconfig-frontends kconfig-frontends: update expression 2023-10-22 07:38:40 -03:00
kd/kdsingleapplication kdsingleapplication: init at 1.0.0 2023-10-28 12:07:24 +03:00
ke Merge pull request #267741 from mdarocha/keepass-refactor 2023-11-28 05:56:43 -05:00
kg/kgeotag kgeotag: init at 1.4.0 2023-11-27 10:26:27 +01:00
ki/kikit kikit: init at 1.3.0 2023-11-16 21:24:04 +07:00
km/kmsvnc kmsvnc: init at 0.0.5 2023-10-19 10:03:51 -04:00
ko kor: initial at 0.3.0 2023-12-04 10:17:38 +02:00
kt/ktfmt ktfmt: fix meta.license 2023-11-27 15:43:19 +01:00
ku/kubectl-neat kubectl-neat: init at 2.0.3 2023-10-03 16:48:56 +02:00
la lanraragi: remove dependency version patch 2023-12-01 16:18:07 +01:00
lc/lcab lcab: init at 1.0b12 2023-11-16 14:18:52 -03:00
le Merge pull request #269266 from IogaMaster/leaf 2023-11-29 20:26:30 +01:00
li Merge pull request #262174 from OPNA2608/init/lomiri/librda 2023-12-03 18:26:23 +01:00
ll llama-cpp: 1538 -> 1573 2023-11-28 07:26:02 +00:00
ln/lngen lngen: init at unstable-2023-10-17 2023-11-15 18:44:11 +01:00
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 lwgrp: init at 1.0.5 2023-11-10 10:39:47 +01:00
lx/lxd-to-incus lxd-to-incus: 0.2 -> 0.3 2023-11-27 08:26:29 -05:00
m2 m2-mesoplanet: init at 1.11.0 2023-11-02 18:30:32 -07:00
ma Merge pull request #269405 from ufUNnxagpM/init-majima 2023-12-03 20:45:28 +01:00
mc/mcuboot-imgtool mcuboot-imgtool: fix pname 2023-11-19 16:14:55 -03:00
me mercure: 0.15.5 -> 0.15.6 2023-12-05 17:00:45 +01:00
mf/mfoc-hardnested
mi Merge pull request #261705 from gepbird/minecraftia-init 2023-10-18 21:12:49 +02:00
mk/mksh
ml/mlx42 mlx42: add meta.changelog and simplify src.rev 2023-11-27 21:16:07 +01:00
mo monophony: 2.3.1 -> 2.4.0 2023-12-04 03:32:24 +00:00
mp/mpifileutils mpifileutils: 0.11.1 2023-11-10 10:39:55 +01:00
ms/msolve msolve: init at 0.6.1 2023-11-10 19:23:50 +01:00
mu/mus mus: change upstream src; migrate to by-name 2023-11-28 23:27:35 +02:00
my/mystmd mystmd: 1.1.29 -> 1.1.31 2023-11-24 04:20:00 +00:00
n2/n2 n2: init at unstable-2023-10-10 2023-10-18 12:45:52 +02:00
na namespace-cli: 0.0.302 -> 0.0.307 2023-11-18 22:30:34 -05:00
ne Merge pull request #260869 from OPNA2608/init/lomiri/net-cpp 2023-11-30 18:49:10 +01:00
nf/nfft nfft: init at 3.5.3 2023-10-03 09:18:14 +02:00
ni nimmm: 0.2.0 -> 0.3.0 2023-12-03 13:32:47 +01:00
nl/nls nls: delete Cargo.lock 2023-10-11 22:20:32 -03:00
nn/nncp nncp: 8.9.0 -> 8.10.0 2023-11-10 11:57:39 +00:00
no normcap: refactor, wrap with runtime inputs, enable checks, add maintainer pbsds 2023-12-01 00:17:48 +01:00
nr/nrpl nrpl: use new buildNimPackage 2023-11-28 16:48:10 +02:00
ns nsf-ordlista: init at unstable-2023-08-20 2023-11-09 09:50:05 +01:00
nu numbat: add myself as maintainer 2023-11-13 14:58:19 +01:00
nw/nwg-drawer nwg-drawer: 0.3.9 -> 0.4.1 2023-11-18 23:46:18 -03:00
oa/oauth2l oauth2l: init at 1.3.0 2023-11-09 21:07:09 +01:00
oc nixosTests.ocsinventory-agent: init 2023-11-02 14:20:46 +01:00
oe/oelint-adv oelint-adv: 3.26.2 -> 3.26.4 2023-11-28 22:42:50 +00:00
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 maintainers: rename jgarcia to chewblacka 2023-11-27 17:38:13 +00:00
op openobserve: init at 0.7.2 2023-12-04 23:40:54 +00:00
or/orchard orchard: 0.14.1 -> 0.14.3 2023-11-03 02:51:44 +00:00
ot Merge pull request #265436 from gaelreyrol/otel-desktop-viewer-init 2023-11-29 18:36:14 +11:00
ou/outputcheck
ow/owncloud-client owncloud-client: 4.2.0 -> 5.0.0 2023-10-28 12:07:42 +03:00
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
pg/pgmoneta pgmoneta: 0.7.0 -> 0.7.1 2023-10-23 12:57:35 +00:00
ph phpunit: 10.5.0 -> 10.5.1 2023-12-01 18:30:39 +01:00
pi pianotrans: add missing resampy dependency 2023-11-25 10:07:52 +08:00
pl/platformsh
po polybar: 3.7.0 -> 3.7.1 2023-12-01 20:37:42 +01:00
pp/ppsspp ppsspp: 1.16.5 -> 1.16.6 2023-10-13 12:31:01 -03:00
pr preserves-tools: init at 4.992.2 2023-12-01 08:52:41 +00:00
pt/pterm pterm: mark as broken on Darwin 2023-11-13 04:43:58 +00:00
pw/pw3270 pw3270: init at 5.4 2023-11-23 19:44:36 +01:00
px/pxder
py pywalfox-native: fixup indentation 2023-12-03 15:47:56 +01:00
pz/pzip pzip: init at 0.2.0 2023-10-24 08:18:00 +02:00
qa/qadwaitadecorations qadwaitadecorations: init at 0.1.3 2023-11-26 15:33:27 +08:00
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 rancid: init at 3.13 2023-12-01 12:21:42 +01:00
rc/rc
re revup: init at 0.2.1 2023-12-02 17:33:02 -03:00
ri Merge pull request #260445 from adamcstephens/river-bnf/init 2023-10-23 06:38:26 -05:00
ro rockyou: iniat at unstable-2023-05-12 2023-10-29 18:52:20 +01:00
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 rst2html5: migrate to by-name 2023-10-11 23:42:04 -03:00
rt/rtl-sdr-osmocom osmo-rtl-sdr: init at 2.0.1 2023-11-15 04:44:50 +00:00
ru rustplayer: init at unstable-2022-12-29 2023-10-17 10:24:30 +08:00
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 sdcc: refactor 2023-11-11 16:48:40 -03:00
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 shopware-cli: 0.3.6 -> 0.3.12 2023-11-13 21:10:00 +00:00
si simdutf: init at 4.0.5 2023-11-30 10:50:35 +08: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 spacedrive: init at 0.1.4 2023-11-30 21:20:07 +01:00
ss/sssnake sshx: split components, unstable-2023-11-04 -> unstable-2023-11-23 2023-12-04 05:33:26 +02:00
st stats: init at 2.9.11 2023-11-13 14:41:46 +11:00
su supersonic: 0.7.0 -> 0.8.0 2023-11-16 21:31:49 +10:00
sv/svix-server svix-server: init at 1.13.0 2023-10-21 22:40:49 -04:00
sw Merge pull request #269510 from bbenno/sway-new-workspace 2023-11-29 17:18:41 +11:00
sx/sxhkd sxhkd: refactor 2023-11-06 07:20:49 -03:00
sy symbolicator: 23.11.0 -> 23.11.2 2023-11-27 15:32:33 -05:00
ta tailwindcss-language-server: init at 0.0.14 2023-11-02 09:59:42 +00:00
tc/tcsh
te Merge pull request #267852 from 365tuwe/add-tera-cli 2023-11-22 10:34:12 +01:00
th Merge pull request #261960 from eclairevoyant/themix-gui 2023-12-04 00:43:57 +01:00
ti tinycompress: migrate to by-name 2023-11-14 20:20:57 -03:00
tk/tkdiff tkdiff: update maintainers 2023-11-11 13:07:28 -08:00
tl/tlrc tlrc: 1.7.1 -> 1.8.0 2023-11-30 21:04:25 +01:00
tm/tmuxifier
to/torrentstream torrentstream: init at 1.0.1.6 2023-11-26 16:36:48 +02:00
tp tplay: init at 0.4.5 (#266300) 2023-11-13 18:57:48 +04:00
tr Merge pull request #271340 from azuwis/trigger-control 2023-12-02 03:14:29 +11:00
tt/ttop ttop: build with lockfile 2023-11-28 16:48:10 +02:00
tu tuxmux: fix meta.license 2023-11-27 15:43:27 +01:00
tx/txr txr: 291 -> 292 2023-11-22 09:26:50 -03:00
ty/typst-preview typst-preview: 0.9.1 -> 0.9.2 2023-11-27 20:40:24 +01:00
uc uclibc-ng: refactor 2023-10-11 23:42:04 -03:00
ud Merge pull request #259844 from haruki7049/udev-gothic-nf 2023-10-10 19:04:32 +02:00
ui uiua: 0.4.1 -> 0.5.1 2023-12-03 06:25:54 +01:00
un Merge pull request #218441 from tomfitzhenry/unl0kr 2023-11-28 16:10:11 -05:00
up uplosi: 0.1.1 -> 0.1.2 2023-10-13 20:36:34 +02:00
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 uuu: fix updateScript to pass specific version-regexp 2023-11-28 20:06:39 -03:00
ux/uxn uxn: unstable-2023-10-23 -> unstable-2023-11-12 2023-11-16 19:12:07 +00:00
va/valijson valijson: init at 1.0.1 2023-10-24 23:30:44 +03:00
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 wash-cli: init at 0.24.0 2023-12-01 20:13:07 -08:00
wb/wb32-dfu-updater wb32-dfu-updater: apply suggestions from code review 2023-10-18 17:10:13 +02:00
we/websecprobe websecprobe: init at 0.0.10 2023-11-07 23:23:06 +01:00
wh whistle: 2.9.58 -> 2.9.59 2023-11-10 04:20:00 +00:00
wi windmill: 1.210.1 -> 1.219.1; cleanup 2023-12-05 01:17:25 +00:00
wo wordlists: refactor 2023-11-17 17:58:09 +01:00
wp/wp-cli wp-cli: allow overriding entire config file 2023-11-30 20:44:09 +01:00
ws/wslay swlay: actually enable tests 2023-10-28 18:16:59 +02:00
wt/wtfis wtfis: 0.6.1 -> 0.7.1 2023-11-04 22:18:32 -03:00
xm/xmldiff xmldiff: 2.4 -> 2.6.3 2023-10-04 21:56:31 -03:00
xo xosview2: 2.3.2 -> 2.3.3 2023-11-06 07:23:09 -03:00
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 yunfaavatar: init at 0.2.0 2023-10-28 13:39:52 +03:00
zc/zcfan
ze/zesarux zesarux: 10.0 -> unstable-2023-10-31 2023-11-04 22:18:10 -03:00
zi/zitadel zitadel: 2.37.2 -> 2.40.3 2023-11-04 13:23:56 +11:00
zp zpaqfranz: 58.10 -> 58.11 2023-11-11 13:47:44 -03:00
zs/zs zs: init at 0.4.1 2023-11-24 23:06:35 +05:30
zw/zwave-js-server zwave-js: module init, zwave-js-server: init at 1.33.0 2023-11-02 08:21:09 +00:00
zx zxtune: init at r5055 2023-11-22 13:57:24 -08:00
README.md by-name: make the way of adding packages clearer 2023-10-09 19:12:29 +02: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 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 .