1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/pkgs/by-name
2023-11-08 19:49:04 -05:00
..
_4/_4th
_9/_9base
a4/a4
aa/aarch64-esr-decoder
ab/aba aba: 0.7.0 -> 0.7.1 2023-11-02 23:46:54 -03:00
ac/action-validator
af/afterstep
ai airlift: init at 0.3.0 2023-10-30 05:46:38 -06:00
al
am/amazon-ssm-agent amazon-ssm-agent: 3.2.1630.0 -> 3.2.1705.0 2023-10-25 11:30:48 +02:00
ao/aocl-utils
ar argtable: 3.2.1 -> 3.2.2 2023-10-21 10:50:31 -03:00
as Merge pull request #262602 from NotAShelf/master 2023-11-01 17:44:06 +01:00
aw/aws-azure-login
ax/axmldec axmldec: init at 1.2.0 2023-10-31 20:30:27 -03:00
ba bashly: init at 1.1.1 2023-10-20 18:59:06 +02:00
be
bi
bm/bmake
bo Merge pull request #256799 from argrat/borealis-cursors 2023-11-04 20:05:54 +01:00
br/bruno bruno: 0.27.0 -> 0.27.2 2023-10-27 01:50:56 +00:00
c2/c2fmzq c2fmzq: 0.4.8 -> 0.4.9 2023-10-27 13:45:00 +00:00
ca cargo-xwin: 0.14.8 -> 0.14.9 2023-10-31 12:20:07 +00:00
cb/cbmbasic
cd
ce celeste-classic: init at unstable-2020-12-08 2023-11-01 17:52:06 +02:00
ci circom: init at 2.1.6 2023-10-30 16:12:01 +01:00
cl clamtk: init at 6.16 2023-11-06 14:45:25 +01:00
cn/cntb
co cosmic-greeter: init at unstable-2023-11-08 2023-11-08 19:49:04 -05:00
cp/cpu-x
cr/create-react-app
ct/ctx
cy/cyme cyme: add darwin support 2023-10-25 08:49:01 +02:00
da/dark-mode-notify dark-mode-notify: add meta.mainProgram 2023-11-04 08:40:36 +01:00
db/dbus-cpp
de Merge pull request #265456 from foo-dogsquared/update-decker 2023-11-05 07:02:49 -05:00
di disarchive: rename from guile-disarchive, fix program 2023-10-28 18:07:35 +02:00
dj/djent
dm/dmenu-bluetooth
do dotbot: init at 1.20.1 2023-11-03 01:21:12 -03:00
dx
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.161.0 -> 0.163.0 2023-10-26 18:26:43 +00:00
el/elvish
en/engage
es/esbuild-config
eu/eudev
ez/eza eza: 0.15.1 -> 0.15.2 2023-11-02 12:21:04 +01:00
fa/fantomas fantomas: 6.2.2 -> 6.2.3 2023-11-03 16:08:46 +01:00
fc fcitx5-nord: init at unstable-2021-07-27 2023-10-26 10:16:55 +08:00
fi/firewalk firewalk: init at 5.0 2023-10-20 17:08:27 +02:00
fl flip: init at 1.2 2023-10-20 08:00:10 -06:00
fm/fm-tune
fo/fortune-kind fortune-kind: 0.1.6 -> 0.1.7 2023-11-02 10:03:13 +01:00
fr/freecell-solver
ga gato: init at 1.5 2023-11-04 21:50:14 +01:00
gb/gbar
ge Merge pull request #260642 from Madouura/pr/geticons 2023-10-20 13:08:45 +02:00
gh
gi gickup: 0.10.21 -> 0.10.22 2023-11-04 12:25:55 -04:00
gm/gmic
go go-camo: 2.4.4 -> 2.4.5 2023-10-24 11:46:45 +00:00
gr
gu guile-aspell: init at 0.5.0 2023-11-03 07:49:18 +08:00
ha
he
hi/hifile hifile: init at 0.9.9.5 2023-10-20 18:35:32 +02:00
ho hottext: reinit at 20231003 2023-10-31 18:34:48 +00:00
hy
i3/i3bar-river
ic/icewm icewm: 3.4.3 -> 3.4.4 2023-11-03 10:48:27 -03:00
if/ifrextractor-rs
im
in nixos/incus: init module and tests 2023-11-02 19:54:02 -04:00
ir/ironbar
ja/jasper jasper: mark broken if cross 2023-11-05 00:55:16 +00:00
ji jitterentropy-rngd: init at 1.2.8 2023-10-20 10:04:11 +02:00
ju/justbuild
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/kermit-terminal
km/kmsvnc
ko konbucase: init at 4.1.1 2023-10-21 07:35:34 +08:00
kt/ktfmt
ku/kubectl-neat
la lanzaboote-tool: init at 0.3.0 2023-10-28 21:49:04 +02:00
le
li Merge pull request #264675 from chayleaf/libaribcaption 2023-11-01 11:01:14 +01:00
ll Merge pull request #263320 from jfvillablanca/llm-ls 2023-11-06 11:09:01 +01:00
lu lunarvim: init at 1.3.0 2023-11-06 22:41:10 +01:00
lx/lxd-to-incus lxd-to-incus: 0.1 -> 0.2 2023-10-27 23:21:18 -04:00
m2 m2-mesoplanet: init at 1.11.0 2023-11-02 18:30:32 -07:00
ma
me Merge pull request #264436 from anthonyroussel/updatess/meritous 2023-11-05 07:11:08 -05:00
mf/mfoc-hardnested
mi
mk/mksh
ml/mlx42
mo mommy: migrate to by-name 2023-11-07 18:33:43 +02:00
my/mystmd mystmd: 1.1.23 -> 1.1.26 2023-11-05 04:20:00 +00:00
n2/n2
na namespace-cli: 0.0.301 -> 0.0.302 2023-10-24 18:16:30 +00:00
ne Merge pull request #262904 from jakuzure/netnewswire 2023-10-28 18:52:41 +02:00
nf/nfft
ni nixos-firewall-tool: init at 0.0.1 2023-11-05 22:16:53 +01:00
nl/nls
no/notion
ns/nsxiv
nu Merge pull request #264619 from mdarocha/nuget-arm 2023-11-06 15:09:39 +01:00
oc ocsinventory-agent: init at 2.10.1 2023-10-30 17:57:52 +01:00
oe/oelint-adv oelint-adv: 3.26.1 -> 3.26.2 2023-11-02 22:40:49 +00:00
on onedrivegui: init at 1.0.3 2023-10-23 16:31:30 +00:00
op/openpgl
or/orchard orchard: 0.14.1 -> 0.14.3 2023-11-03 02:51:44 +00:00
ou/outputcheck
ow/owncloud-client owncloud-client: 4.2.0 -> 5.0.0 2023-10-28 12:07:42 +03:00
pa paper-age: 1.1.4 -> 1.2.0 2023-10-22 04:20:00 +00:00
pd/pdepend
pe
pg/pgmoneta pgmoneta: 0.7.0 -> 0.7.1 2023-10-23 12:57:35 +00:00
ph phel: add postCheckInstall step 2023-11-01 12:13:04 +01:00
pi
pl/platformsh
po/poethepoet poethepoet: 0.24.1 -> 0.24.2 2023-11-06 15:07:43 -05:00
pp/ppsspp
pr prox: init at 0.5.2 2023-10-26 13:09:42 -07:00
px/pxder
py pyspread: 2.0.2 -> 2.2.2 2023-10-30 16:34:26 -03:00
pz/pzip pzip: init at 0.2.0 2023-10-24 08:18:00 +02:00
qu
ra nixos/incus: init module and tests 2023-11-02 19:54:02 -04:00
rc/rc
re
ri Merge pull request #260445 from adamcstephens/river-bnf/init 2023-10-23 06:38:26 -05:00
ro
rs
ru
sa/samrewritten
sc Remove unused dists binary post install 2023-10-25 11:09:31 +02:00
se
sh
si
sl
sm/smallwm
so/sound-of-sorting
sp spigot: add a simple test 2023-10-31 20:29:23 -03:00
ss/sssnake
st steamguard-cli: 0.12.2 -> 0.12.3 2023-10-25 19:12:12 +02:00
su supersonic: Add MediaPlayer framework on Darwin 2023-10-24 20:24:00 +02:00
sv/svix-server svix-server: init at 1.13.0 2023-10-21 22:40:49 -04:00
sw/swipe-guess
sx/sxhkd sxhkd: refactor 2023-11-06 07:20:49 -03:00
sy Merge pull request #262822 from siph/systemctl-tui 2023-10-24 14:15:30 +02:00
ta tailwindcss-language-server: init at 0.0.14 2023-11-02 09:59:42 +00:00
tc/tcsh
te terraform-plugin-docs: ensure go is in the PATH 2023-11-01 08:21:17 +01:00
th thud: add passthru.updateScript 2023-10-31 11:18:31 -04:00
ti
tk/tkdiff tkdiff: patch to trigger recursive inline diffs 2023-10-31 11:01:37 -07:00
tm/tmuxifier
tp/tpm2-totp tpm2-totp: init at 0.3.0 2023-10-21 13:36:52 +02:00
tr Merge pull request #262676 from ProminentRetail/tradingview-2 2023-10-28 17:47:17 +02:00
tu Merge pull request #264858 from EdenEast/tuxmux-update 2023-11-04 12:10:35 +09:00
tx/txr
uc
ud
ui uiua: 0.0.25 -> 0.1.0 2023-11-05 18:33:56 +01:00
un unsilence: init at 1.0.9 2023-11-03 01:43:28 +02:00
up
uu/uuu uuu: init at 1.5.125 2023-10-31 15:09:00 -03:00
ux/uxn uxn: unstable-2023-09-29 -> unstable-2023-10-23 2023-11-05 18:28:24 -03:00
ve vesktop: add pluiedev as maintainer 2023-11-03 14:42:34 +01:00
vi/virtio-win
wa waybar-mpris: init at unstable-2022-01-27 2023-10-22 19:18:41 -05:00
wb/wb32-dfu-updater
wh whatsapp-emoji-font: move to by-name 2023-10-22 20:37:35 -03:00
wi wiremock: 3.2.0 -> 3.3.1 2023-11-07 12:48:24 +00:00
wo/wonderdraft
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
xo xosview2: 2.3.2 -> 2.3.3 2023-11-06 07:23:09 -03:00
xs
ye/yeahwm
yg/yggdrasil yggdrasil: 0.4.7 -> 0.5.1 2023-10-30 22:23:34 +00: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
zp zpix-pixel-font: init at 3.1.8 2023-10-31 23:54:54 +01:00
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/zxpy
README.md

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 .