nixpkgs/pkgs/by-name
2024-04-28 07:04:40 +02:00
..
_0/_0xpropo
_4 4d-minesweeper: fix package name 2024-04-25 13:52:41 +02:00
_6/_64gram _64gram: 1.1.18 -> 1.1.19 2024-04-20 23:01:29 +05:30
_9/_9base
a4/a4
a5/a52dec
aa
ab maintainers: drop marsam 2024-04-24 04:20:00 +00:00
ac
ad Merge pull request #305495 from Daru-san/add-adbtuifm 2024-04-23 17:41:42 +10:00
ae aeron, aeron-cpp: 1.43.0 -> 1.44.1 2024-04-18 11:05:56 +01:00
af
ag/ags
ai airlift: 0.3.1 -> 0.4.0 2024-04-27 05:11:42 +00:00
al altdns: refactor 2024-04-26 09:41:41 +02:00
am am2rlauncher: fix error with missing GSettings schemas 2024-04-18 23:11:48 -07:00
an anytype: 0.39.0 -> 0.40.2 2024-04-25 14:57:59 -04:00
ao/aocl-utils
ap api-linter: 1.65.1 -> 1.65.2 2024-04-24 12:08:26 +00:00
ar Merge pull request #306817 from DontEatOreo/update-arc-browser 2024-04-27 01:43:46 -04:00
as ast-grep: 0.20.5 -> 0.21.0 2024-04-24 12:25:46 +00:00
at atac: 0.12.0 -> 0.13.0 2024-04-23 16:37:39 +00:00
au Merge pull request #306033 from adamcstephens/abs/2.9.0 2024-04-23 07:08:07 -04:00
av
aw
ax/axmldec
ay
ba
bc/bc-ur
be bee: 2.0.0 -> 2.0.1 2024-04-25 12:28:14 +00:00
bi biglybt: 3.5.0.0 -> 3.6.0.0 2024-04-24 19:26:07 +02:00
bk/bk
bl maintainers: thehedgeh0g -> pyrox0 2024-04-24 12:53:58 -04:00
bm/bmake
bn/bngblaster bngblaster: 0.8.47 -> 0.8.49 2024-04-27 10:17:53 +00:00
bo
bp/bpftop bpftop: 0.4.1 -> 0.4.2 2024-04-27 12:24:01 +00:00
br bruno: 1.13.1 -> 1.14.0 2024-04-23 03:39:24 +00:00
bs
bt btrfs-assistant: pkgs/tools/misc -> pkgs/by-name 2024-04-23 15:41:11 -05:00
bu butt: set meta.platforms 2024-04-27 05:38:12 +02:00
by
c-
c2
ca Merge pull request #271071 from pbsds/wrapAppImage-pname-redux 2024-04-24 21:48:19 +02:00
cb
cc
cd
ce cert-viewer: fix cross-compilation 2024-04-26 19:22:27 +02:00
cg
ch chezmoi: 2.47.4 -> 2.48.0 2024-04-26 22:22:37 -03:00
ci circom: 2.1.8 -> 2.1.9 2024-04-24 12:31:12 +00:00
cl Merge pull request #305706 from xrelkd/update/clipcat 2024-04-21 20:05:03 -05:00
cm
cn/cntb
co Merge pull request #305642 from wegank/lib-version-fix 2024-04-26 10:55:51 +02:00
cp
cr crunchy-cli: 3.5.0 -> 3.5.2 2024-04-27 04:45:50 +00:00
cs
ct/ctx
cu maintainers: drop danderson 2024-04-26 11:36:50 -07:00
cv/cvemap
cy
cz/czkawka
da
db/dbus-cpp
dc/dc3dd
dd
de delfin: 0.4.2 -> 0.4.4 2024-04-24 14:56:20 -04:00
dg/dgoss
dh/dhcpig
di dissent: 0.0.23 -> 0.0.24 2024-04-24 12:52:05 +00:00
dj/djent
dm
dn/dns2tcp
do Merge pull request #306378 from khaneliman/dooit 2024-04-23 18:51:52 -05:00
dp/dpp
dr/drone-scp
ds
dt
du dumbpipe: init at 0.6.0 2024-04-27 23:16:03 +10:00
dv/dvb-apps
dx dxvk: switch to Win32 thread model and cleanups 2024-04-25 01:36:01 -04:00
dy dynamodb-local: 2.3.0 -> 2.4.0 2024-04-23 02:25:08 +00:00
ea earlyoom: 1.7 -> 1.8 2024-04-19 09:58:40 -03:00
eb
ec
ed
ei eigenlayer: 0.7.2 -> 0.7.3 2024-04-19 22:37:04 +00:00
ek/eksctl eksctl: 0.175.0 -> 0.176.0 2024-04-25 12:40:51 +00:00
el
em
en
ep/epub-thumbnailer
er
es
et etlegacy: 2.82.0 -> 2.82.1 2024-04-21 20:12:44 +02:00
eu
ex
ez/eza eza: 0.18.11 -> 0.18.13 2024-04-25 17:49:09 +02:00
fa maintainers: remove federicoschonborn 2024-04-26 17:32:54 -03:00
fb/fbset
fc
fe feather: fix trezor support 2024-04-20 15:56:47 +02:00
ff fflogs: init at 8.3.42 2024-04-25 23:33:33 +01:00
fg/fgqcanvas fgqcanvas: Init at 0-unstable-2024-02-11 2024-04-23 01:22:23 +02:00
fi files-cli: 2.13.7 -> 2.13.14 2024-04-27 12:45:43 +00:00
fl
fm fmtoy: 0.0.0-unstable-2023-05-21 -> 0-unstable-2024-04-18 2024-04-27 04:00:17 +02:00
fn/fnott
fo forgejo: 7.0.0 -> 7.0.1 2024-04-27 12:26:40 +00:00
fr frankenphp: 1.1.2 -> 1.1.4 2024-04-26 00:55:50 +00:00
fs
fu/fuchsia-cursor
fv
fw/fwupd fwupd: 1.9.16 -> 1.9.18 2024-04-24 00:04:54 +02:00
fy/fypp
fz/fzf-make
g3/g3kb-switch
ga garnet: 1.0.5 -> 1.0.6 2024-04-26 14:57:46 +00:00
gb/gbar
gc
ge
gf
gg/gg
gh gh-notify: 0-unstable-2024-03-19 -> 0-unstable-2024-04-24 2024-04-24 14:51:18 +00:00
gi gitu: 0.17.1 -> 0.19.2 2024-04-27 19:37:50 +00:00
gl glasskube: 0.1.0 -> 0.2.0 2024-04-22 10:14:53 +02:00
gm
gn
go go-camo: 2.4.12 -> 2.4.13 2024-04-26 11:11:11 +00:00
gp
gr Merge pull request #303035 from r-ryantm/auto-update/graphite-cli 2024-04-27 03:00:59 +02:00
gt Merge pull request #305361 from Aleksanaa/gtklock 2024-04-27 15:00:08 +08:00
gu
gv/gvisor maintainers: remove andrew-d as a maintainer 2024-04-27 14:05:07 -04:00
gx/gxml
h8/h8mail
ha Merge pull request #288654 from D3vil0p3r/patch-20 2024-04-25 16:13:57 +10:00
hb/hb-honeypot hb-honeypot: init at 0-unstable-2024-02-13 2024-04-25 09:40:34 +02:00
hd/hdrop
he
hi treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
hj/hjson-go
ho Merge pull request #271071 from pbsds/wrapAppImage-pname-redux 2024-04-24 21:48:19 +02:00
ht htb-toolkit: unstable-2024-01-17 -> 0-unstable-2024-04-22 2024-04-25 10:35:24 +02:00
hu hugo: 0.125.3 -> 0.125.4 2024-04-26 13:16:25 +02:00
hy hyprland-activewindow: 1.0.1 -> 1.0.2 2024-04-27 13:03:40 +00:00
i2/i2p
i3 i3bar-river: 0.1.6 -> 0.1.7 2024-04-23 18:15:46 +00:00
ia
ic
id
if/ifrextractor-rs
ig
ii
im treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
in maintainers: drop marsam 2024-04-24 04:20:00 +00:00
io/ioq3-scion
ip
ir maintainers: drop marsam 2024-04-24 04:20:00 +00:00
is/iscc iscc: init at 6.2.2 2024-04-24 20:58:41 +03:00
it
ja jan: 0.4.11 -> 0.4.12 2024-04-25 13:09:53 +00:00
jd/jdt-language-server
je treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
ji maintainers: drop marsam 2024-04-24 04:20:00 +00:00
jj/jj
jn jnv: 0.2.1 -> 0.2.2 2024-04-21 13:08:35 +00:00
jo
jr/jrl-cmakemodules
js/jsoncons jsoncons: 0.173.4 -> 0.174.0 2024-04-22 16:44:24 +00:00
ju
ka Merge pull request #297572 from quantenzitrone/katawa-shoujo-re-engineered 2024-04-19 07:04:04 +02:00
kc treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
kd/kdsingleapplication
ke
kg/kgeotag
ki
kl/klog-time-tracker
km treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
kn/knossosnet
ko koodo-reader: init at 1.6.6 2024-04-21 22:34:35 +02:00
kp/kplex
kr
ks
kt ktfmt: make deterministic 2024-04-21 20:56:00 +02:00
ku
kx/kxstitch
ky/kyverno-chainsaw
la Merge pull request #289374 from D3vil0p3r/patch-4 2024-04-25 19:49:32 +10:00
lb Merge pull request #289525 from D3vil0p3r/patch-22 2024-04-21 19:24:52 +02:00
lc/lcab
ld/ldproxy
le Merge pull request #306702 from marsam/goodbye 2024-04-25 13:51:10 +02:00
li livekit: 1.6.0 -> 1.6.1 2024-04-27 01:37:00 +00:00
ll llama-cpp: 2700 -> 2746 2024-04-26 18:14:07 +00:00
lm/lmstudio lmstudio: 0.2.18 -> 0.2.20 2024-04-27 23:27:09 +00:00
ln/lngen
lo
lp
ls
lt/ltris
lu Merge pull request #271071 from pbsds/wrapAppImage-pname-redux 2024-04-24 21:48:19 +02:00
lw/lwgrp
lx lxgw-neoxihei: 1.120.2 -> 1.121 2024-04-27 13:45:06 +00:00
lz
m2
ma maa-cli: 0.4.6 -> 0.4.7 2024-04-27 07:10:23 +00:00
mb
mc
md
me melonDS: 0.9.5-unstable-2024-01-17 -> 0.9.5-unstable-2024-04-18 2024-04-26 10:30:23 -03:00
mf
mg mgba: migrate to by-name 2024-04-26 20:18:02 -03:00
mi mixxc: init at 0.2.2 (#305497) 2024-04-27 20:43:07 +08:00
mk mkjson: init at 0.4.0 2024-04-19 17:30:52 +02:00
ml/mlx42
mo Merge pull request #305721 from r-ryantm/auto-update/monophony 2024-04-27 04:34:25 +02:00
mp
mq treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
ms
mu
my maintainers: drop marsam 2024-04-24 04:20:00 +00:00
n2/n2
na Merge pull request #301259 from TomaSajt/nanoboyadvance 2024-04-28 01:48:18 +02:00
nb/nbtscan
nc
nd/ndstrim
ne Merge pull request #304948 from r-ryantm/auto-update/netclient 2024-04-27 03:39:50 +02:00
nf/nfft
ng nginx-sso: move to 'pkgs/by-name' 2024-04-27 23:11:38 +10:00
nh nh: 3.5.10 -> 3.5.13 2024-04-21 11:31:47 +00:00
ni Merge pull request #307044 from liclac/nix-web-v0.3.0 2024-04-26 21:42:41 +00:00
nl
nm/nmap-parse
nn/nncp
no Merge pull request #271071 from pbsds/wrapAppImage-pname-redux 2024-04-24 21:48:19 +02:00
np
nr nray: init at 1.1.0 2024-04-24 09:58:54 +02:00
ns
nt/ntfs2btrfs
nu nuclei-templates: 9.8.1 -> 9.8.5 2024-04-22 13:25:04 +00:00
nv
nw nwg-hello: 0.1.9 -> 0.1.10 2024-04-20 03:09:04 +00:00
oa
ob
oc treewide: fix version in changelog 2024-04-21 19:33:05 +02:00
oe/oelint-adv oelint-adv: 5.1.3 -> 5.3.0 2024-04-23 01:29:16 +00:00
of offat: 0.17.0 -> 0.17.2 2024-04-20 02:51:25 +00:00
oh/oh-my-fish
oi
ol/olvid
om omnictl: 0.33.2 -> 0.34.0 2024-04-26 11:12:58 +00:00
on treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
op Merge pull request #297566 from TomaSajt/use-strip-java-archives 2024-04-27 15:43:08 +08:00
or
os
ot oterm: 0.2.6 -> 0.2.7 2024-04-25 20:19:59 +00:00
ou
ov Merge pull request #297475 from astro/ovmf-chv 2024-04-19 13:27:37 -04:00
ow
pa Merge pull request #307346 from nh2/parallel-hashmap 2024-04-28 04:01:54 +02:00
pd pdns-recursor: move to by-name 2024-04-24 16:19:33 +02:00
pe Merge pull request #306940 from avdv/bazel_6.5.0-aftermath 2024-04-26 22:49:45 -04:00
pf/pfft
pg maintainers: drop marsam 2024-04-24 04:20:00 +00:00
ph maintainers: remove patka 2024-04-26 21:52:53 +02:00
pi Merge pull request #305948 from aaronjheng/pixi 2024-04-27 22:21:54 +02:00
pk
pl
pm
pn
po Merge pull request #305642 from wegank/lib-version-fix 2024-04-26 10:55:51 +02:00
pp/ppsspp
pq
pr protoc-gen-js: Update hash after bazel_6 upgrade 2024-04-26 20:57:54 +02:00
pt
pu
pv/pvsneslib
pw pwru: 1.0.5 -> 1.0.6 2024-04-25 02:00:06 +00:00
px/pxder
py pyprland: 2.2.10 -> 2.2.12 2024-04-25 21:02:58 +00:00
pz/pzip
qa/qadwaitadecorations
qc/qcm
qd/qdirstat
qg/qgrep
qp/qpoases
qr qrtool: 0.10.8 -> 0.10.9 2024-04-22 20:30:18 +00:00
qs
qt/qtractor
qu quarkus: 3.9.4 -> 3.9.5 2024-04-27 14:54:56 +00:00
r1/r10k
ra maintainers: drop marsam 2024-04-24 04:20:00 +00:00
rc
rd/rdwatool
re Merge pull request #307177 from thiagokokada/bump-retool 2024-04-27 10:33:12 -04:00
ri ripsecrets: 0.1.7 -> 0.1.8 2024-04-26 11:22:18 +00:00
rk rkbin: set platforms to lib.platforms.all 2024-04-20 20:55:36 +01:00
rl/rl_json
rm
rn/rnd-name
ro
rp/rpcs3 rpcs3: 0.0.31-16364-dff7352e2 -> 0.0.31-16377-08c3a38b6 2024-04-25 16:31:57 +00:00
rq/rqbit maintainers: drop marsam 2024-04-24 04:20:00 +00:00
rs
rt/rtg-tools
ru
rw/rwpspread
ry
s3
sa sandbar: init at 0.1 2024-04-19 12:49:42 +02:00
sb/sbom-utility
sc scalingo: 1.31.0 -> 1.32.0 2024-04-27 02:47:01 +00:00
sd
se
sg/sgfutils
sh shopware-cli: 0.4.36 -> 0.4.40 2024-04-26 21:19:23 +00:00
si simdutf: 5.2.5 -> 5.2.6 2024-04-28 03:38:55 +00:00
sk Merge pull request #277052 from YvesStraten/init-skimpdf 2024-04-27 01:32:20 -04:00
sl slimserver: update name and homepage, format 2024-04-22 12:16:21 -04:00
sm smpq: refactor 2024-04-22 23:12:54 -03:00
sn Merge pull request #305642 from wegank/lib-version-fix 2024-04-26 10:55:51 +02:00
so soupault: 4.9.0 → 4.10.0 2024-04-26 15:26:55 +02:00
sp treewide: unbreak appimageTools.wrapType2 builds 2024-04-24 15:26:52 +02:00
sq
sr
ss ssh-tpm-agent: Fix homepage link 2024-04-19 22:04:13 +02:00
st Merge pull request #305954 from TomaSajt/stirling-pdf 2024-04-27 22:05:38 +02:00
su Merge pull request #305974 from onny/rocksdb-update 2024-04-25 01:38:37 +00:00
sv
sw Merge pull request #305642 from wegank/lib-version-fix 2024-04-26 10:55:51 +02:00
sx
sy syslogng: 4.6.0 -> 4.7.1 2024-04-24 10:33:41 +00:00
t-/t-rex
ta Merge pull request #307166 from wegank/taler-by-name 2024-04-28 04:44:25 +02:00
tc/tcsh
td/tdl
te Merge pull request #305859 from huantianad/tetrio-plus-update 2024-04-27 22:10:12 +02:00
tg/tgpt
th
ti Merge pull request #305642 from wegank/lib-version-fix 2024-04-26 10:55:51 +02:00
tk tkey-ssh-agent: init at 1.0.0 2024-04-20 01:37:58 -04:00
tl
tm/tmuxifier
to tootik: 0.10.2 -> 0.10.3 2024-04-27 14:55:47 +00:00
tp Merge pull request #300578 from colemickens/colemickens/tplay-0.5.0 2024-04-22 22:41:27 +02:00
tr troubadix: 24.4.0 -> 24.4.1 2024-04-22 03:28:14 +00:00
tt/ttop
tu tuifimanager: 3.3.5 -> 4.0.0 2024-04-20 21:44:41 +02:00
tw/twitch-dl maintainers: drop marsam 2024-04-24 04:20:00 +00:00
tx/txr
ty
uc
ud
ue
ug ugrep-indexer: 0.9.6 -> 1.0.0 2024-04-19 02:53:58 +00:00
ui
um/umpire
un unciv: 4.11.4 -> 4.11.8 2024-04-25 18:02:02 +00:00
up
us/usql
ut
uu/uuu
uv/uv uv: add GaetanLepage as maintainer 2024-04-27 20:30:06 +02:00
uw/uwhoisd
ux/uxn uxn: unstable-2024-04-05 -> unstable-2024-04-15 2024-04-19 00:12:37 +00:00
va Merge pull request #302935 from Rucadi/valkey 2024-04-28 00:03:43 +02:00
vc
ve vesktop: IME with NIXOS_OZONE_WL 2024-04-24 15:17:34 +02:00
vg/vgm2x
vi
vl vlc-bittorrent: fix version 2024-04-21 18:56:13 +10:00
vo/voidmap
vu
vv/vvvvvv
wa Merge pull request #307054 from FedericoSchonborn/maintainers-remove-federicoschonborn 2024-04-27 02:07:25 +02:00
wb/wb32-dfu-updater
we wehat-uos: link license to prevent being garbage collected 2024-04-24 00:06:44 +08:00
wh Merge pull request #306502 from r-ryantm/auto-update/whatsapp-emoji-font 2024-04-25 09:46:55 -04:00
wi wiremock: 3.5.3 -> 3.5.4 2024-04-25 06:08:47 +00:00
wl Merge pull request #281746 from jtrees/init-wljoywake 2024-04-27 15:45:11 +08:00
wo workout-tracker: 0.13.4 -> 0.14.1 2024-04-23 23:27:30 +00:00
wp/wp-cli
ws
wt Merge pull request #306382 from khaneliman/wttrbar 2024-04-23 18:52:45 -05:00
wy/wyoming-satellite
x1/x16
x5/x509-limbo
xa/xarcan
xc
xd
xe xeol: 0.9.14 -> 0.9.15 2024-04-27 03:01:20 +00:00
xf/xfs-undelete
xi maintainers: drop marsam 2024-04-24 04:20:00 +00:00
xm
xo
xp/xplr maintainers: thehedgeh0g -> pyrox0 2024-04-24 12:53:58 -04:00
xr/xr-hardware
xs
xw/xwayland-run
ya Merge pull request #306385 from khaneliman/yabai 2024-04-27 01:38:00 +02:00
yc/ycmd
ye
yg/yggdrasil
yj/yj
yo youtrack: 2024.1.27971 -> 2024.1.28928 2024-04-23 17:56:39 +00:00
ys/ysfx
yt ytdownloader: 3.17.3 -> 3.17.4 2024-04-21 11:47:06 +01:00
yu
za
zb/zbus-xmlgen
zc/zcfan
ze zed-editor: 0.131.6 -> 0.132.2 2024-04-25 01:30:01 +02:00
zi
zl/zluda
zo/zola
zp zpaqfranz: 59.2 -> 59.3 2024-04-19 17:45:36 +00:00
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;
}