Commit Graph

84 Commits

Author SHA1 Message Date
Eman Resu
ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
Stefan Frijters
7a02624664 rust-bindgen-unwrapped: move env variable(s) into env for structuredAttrs 2026-02-09 22:34:45 +01:00
Stefan Frijters
978949a3c8 rust-bindgen: fix for structuredAttrs 2026-01-24 11:23:23 +01:00
jopejoe1
2354b677a4 rust-bindgen: set pname and version 2026-01-22 08:17:13 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
R. Ryantm
417a0b348a rust-bindgen-unwrapped: 0.72.0 -> 0.72.1 2025-08-31 19:06:46 +00:00
Alyssa Ross
0af7df6bd3 rust-bindgen: link directly with libclang
There's not really any reason for bindgen to dlopen libclang at all in
Nixpkgs.  Moving this out of the wrapper means that it will still work
even when we don't want all the standard Nixpkgs cflags behavior, like
in the Linux kernel build.
2025-08-08 11:11:42 +02:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm
38c30290a3 rust-bindgen-unwrapped: 0.71.1 -> 0.72.0 2025-06-08 13:01:50 +00:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Alyssa Ross
c597750454 treewide: migrate to fetchCargoVendor, batch 2
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To generate it, I first
ran:

	xargs sed -i 's/^\(. *\)\(cargoHash =\)/\1useFetchCargoVendor = true;\n\1cargoHash =/'

The following manually identified list of files were given as standard
input:

	pkgs/applications/audio/listenbrainz-mpd/default.nix
	pkgs/applications/audio/minidsp/default.nix
	pkgs/applications/audio/muso/default.nix
	pkgs/applications/audio/parrot/default.nix
	pkgs/applications/blockchains/electrs/default.nix
	pkgs/applications/blockchains/snarkos/default.nix
	pkgs/applications/blockchains/teos/default.nix
	pkgs/applications/blockchains/zcash/default.nix
	pkgs/applications/display-managers/greetd/default.nix
	pkgs/applications/display-managers/greetd/regreet.nix
	pkgs/applications/display-managers/greetd/tuigreet.nix
	pkgs/applications/display-managers/greetd/wlgreet.nix
	pkgs/applications/editors/emacs/elisp-packages/manual-packages/lspce/module.nix
	pkgs/applications/editors/neovim/gnvim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/codesnap-nvim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/cord-nvim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/nvim-spectre/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/sg-nvim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/sniprun/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/vim-markdown-composer/default.nix
	pkgs/applications/editors/vscode/extensions/vadimcn.vscode-lldb/adapter.nix
	pkgs/applications/editors/zee/default.nix
	pkgs/applications/gis/whitebox-tools/default.nix
	pkgs/applications/graphics/emulsion/default.nix
	pkgs/applications/graphics/menyoki/default.nix
	pkgs/applications/misc/binocle/default.nix
	pkgs/applications/misc/cobalt/default.nix
	pkgs/applications/misc/eureka-ideas/default.nix
	pkgs/applications/misc/inherd-quake/default.nix
	pkgs/applications/misc/inlyne/default.nix
	pkgs/applications/misc/klipper-estimator/default.nix
	pkgs/applications/misc/mdzk/default.nix
	pkgs/applications/misc/pastel/default.nix
	pkgs/applications/misc/pomodoro/default.nix
	pkgs/applications/misc/pueue/default.nix
	pkgs/applications/misc/reddsaver/default.nix
	pkgs/applications/misc/stork/default.nix
	pkgs/applications/misc/terminal-typeracer/default.nix
	pkgs/applications/networking/browsers/asuka/default.nix
	pkgs/applications/networking/feedreaders/tuifeed/default.nix
	pkgs/applications/networking/geph/default.nix
	pkgs/applications/networking/gopher/phetch/default.nix
	pkgs/applications/networking/instant-messengers/twitch-tui/default.nix
	pkgs/applications/networking/irc/tiny/default.nix
	pkgs/applications/networking/mhost/default.nix
	pkgs/applications/networking/mujmap/default.nix
	pkgs/applications/networking/p2p/synapse-bt/default.nix
	pkgs/applications/office/activitywatch/default.nix
	pkgs/applications/science/machine-learning/finalfrontier/default.nix
	pkgs/applications/science/machine-learning/finalfusion-utils/default.nix
	pkgs/applications/science/misc/rink/default.nix
	pkgs/applications/system/coolercontrol/coolercontrol-gui.nix
	pkgs/applications/version-management/gfold/default.nix
	pkgs/applications/version-management/git-absorb/default.nix
	pkgs/applications/version-management/git-branchless/default.nix
	pkgs/applications/version-management/git-cliff/default.nix
	pkgs/applications/version-management/git-credential-keepassxc/default.nix
	pkgs/applications/version-management/git-gone/default.nix
	pkgs/applications/version-management/git-quickfix/default.nix
	pkgs/applications/version-management/git-stack/default.nix
	pkgs/applications/version-management/git-trim/default.nix
	pkgs/applications/version-management/git-workspace/default.nix
	pkgs/applications/version-management/gitoxide/default.nix
	pkgs/applications/version-management/lucky-commit/default.nix
	pkgs/applications/virtualization/crosvm/default.nix
	pkgs/applications/virtualization/rust-hypervisor-firmware/default.nix
	pkgs/applications/window-managers/dwm/dwm-status.nix
	pkgs/applications/window-managers/i3/auto-layout.nix
	pkgs/applications/window-managers/i3/cycle-focus.nix
	pkgs/applications/window-managers/i3/i3-ratiosplit.nix
	pkgs/applications/window-managers/i3/status-rust.nix
	pkgs/applications/window-managers/i3/wmfocus.nix
	pkgs/applications/window-managers/i3/wsr.nix
	pkgs/build-support/mitm-cache/default.nix
	pkgs/development/compilers/gleam/default.nix
	pkgs/development/compilers/kind2/default.nix
	pkgs/development/embedded/fpga/ecpdap/default.nix
	pkgs/development/interpreters/evcxr/default.nix
	pkgs/development/interpreters/wasmer/default.nix
	pkgs/development/interpreters/wasmtime/default.nix
	pkgs/development/tools/analysis/dotenv-linter/default.nix
	pkgs/development/tools/build-managers/fac/default.nix
	pkgs/development/tools/build-managers/moon/default.nix
	pkgs/development/tools/cocogitto/default.nix
	pkgs/development/tools/continuous-integration/buildkite-test-collector-rust/default.nix
	pkgs/development/tools/database/dynein/default.nix
	pkgs/development/tools/database/indradb/default.nix
	pkgs/development/tools/database/surrealdb-migrations/default.nix
	pkgs/development/tools/dump_syms/default.nix
	pkgs/development/tools/fnm/default.nix
	pkgs/development/tools/geckodriver/default.nix
	pkgs/development/tools/git-ps-rs/default.nix
	pkgs/development/tools/gptcommit/default.nix
	pkgs/development/tools/graphql-client/default.nix
	pkgs/development/tools/hors/default.nix
	pkgs/development/tools/htmlq/default.nix
	pkgs/development/tools/jless/default.nix
	pkgs/development/tools/kdash/default.nix
	pkgs/development/tools/kubie/default.nix
	pkgs/development/tools/misc/dura/default.nix
	pkgs/development/tools/misc/pwninit/default.nix
	pkgs/development/tools/misc/texlab/default.nix
	pkgs/development/tools/misc/tokei/default.nix
	pkgs/development/tools/pactorio/default.nix
	pkgs/development/tools/parsing/tree-sitter/default.nix
	pkgs/development/tools/perseus-cli/default.nix
	pkgs/development/tools/py-spy/default.nix
	pkgs/development/tools/rbspy/default.nix
	pkgs/development/tools/remodel/default.nix
	pkgs/development/tools/rover/default.nix
	pkgs/development/tools/rover/update.sh
	pkgs/development/tools/rubyfmt/default.nix
	pkgs/development/tools/rust/bindgen/unwrapped.nix
	pkgs/development/tools/rust/cargo-audit/default.nix
	pkgs/development/tools/rust/cargo-bazel/default.nix
	pkgs/development/tools/rust/cargo-c/default.nix
	pkgs/development/tools/rust/cargo-cache/default.nix
	pkgs/development/tools/rust/cargo-clone/default.nix
	pkgs/development/tools/rust/cargo-codspeed/default.nix
	pkgs/development/tools/rust/cargo-crev/default.nix
	pkgs/development/tools/rust/cargo-cyclonedx/default.nix
	pkgs/development/tools/rust/cargo-edit/default.nix
	pkgs/development/tools/rust/cargo-flamegraph/default.nix
	pkgs/development/tools/rust/cargo-fund/default.nix
	pkgs/development/tools/rust/cargo-hf2/default.nix
	pkgs/development/tools/rust/cargo-lambda/default.nix
	pkgs/development/tools/rust/cargo-ndk/default.nix
	pkgs/development/tools/rust/cargo-outdated/default.nix
	pkgs/development/tools/rust/cargo-udeps/default.nix
	pkgs/development/tools/rust/cargo-vet/default.nix
	pkgs/development/tools/rust/cargo-watch/default.nix
	pkgs/development/tools/rust/cargo-whatfeatures/default.nix
	pkgs/development/tools/rust/cargo-zigbuild/default.nix
	pkgs/development/tools/rust/duckscript/default.nix
	pkgs/development/tools/rust/rustup/default.nix
	pkgs/development/tools/rust/sqlx-cli/default.nix
	pkgs/development/tools/sentry-cli/default.nix
	pkgs/development/tools/spr/default.nix
	pkgs/development/tools/viceroy/default.nix
	pkgs/development/tools/wrangler_1/default.nix
	pkgs/games/blightmud/default.nix
	pkgs/games/ferium/default.nix
	pkgs/kde/gear/akonadi-search/default.nix
	pkgs/kde/gear/angelfish/default.nix
	pkgs/kde/gear/kdepim-addons/default.nix
	pkgs/misc/cliscord/default.nix
	pkgs/misc/t-rec/default.nix
	pkgs/misc/wiki-tui/default.nix
	pkgs/os-specific/linux/scx/scx_rustscheds.nix
	pkgs/servers/bindle/default.nix
	pkgs/servers/dns/doh-proxy-rust/default.nix
	pkgs/servers/gemini/stargazer/default.nix
	pkgs/servers/geospatial/martin/default.nix
	pkgs/servers/krill/default.nix
	pkgs/servers/monitoring/laurel/default.nix
	pkgs/servers/monitoring/prometheus/wireguard-exporter.nix
	pkgs/servers/oxigraph/default.nix
	pkgs/servers/piping-server-rust/default.nix
	pkgs/servers/rtrtr/default.nix
	pkgs/servers/sql/postgresql/ext/pgvecto-rs/default.nix
	pkgs/servers/sql/postgresql/ext/pgx_ulid.nix
	pkgs/servers/sql/postgresql/ext/timescaledb_toolkit.nix
	pkgs/shells/nushell/default.nix
	pkgs/shells/nushell/plugins/dbus.nix
	pkgs/shells/nushell/plugins/formats.nix
	pkgs/shells/nushell/plugins/gstat.nix
	pkgs/shells/nushell/plugins/highlight.nix
	pkgs/shells/nushell/plugins/net.nix
	pkgs/shells/nushell/plugins/polars.nix
	pkgs/shells/nushell/plugins/query.nix
	pkgs/shells/nushell/plugins/skim.nix
	pkgs/shells/nushell/plugins/units.nix
	pkgs/tools/X11/xidlehook/default.nix
	pkgs/tools/admin/coldsnap/default.nix
	pkgs/tools/admin/procs/default.nix
	pkgs/tools/backup/awsbck/default.nix
	pkgs/tools/backup/bupstash/default.nix
	pkgs/tools/backup/monolith/default.nix
	pkgs/tools/backup/rdedup/default.nix
	pkgs/tools/misc/aoc-cli/default.nix
	pkgs/tools/misc/apkeep/default.nix
	pkgs/tools/misc/didyoumean/default.nix
	pkgs/tools/misc/dijo/default.nix
	pkgs/tools/misc/diskus/default.nix
	pkgs/tools/misc/eludris/default.nix
	pkgs/tools/misc/fclones/default.nix
	pkgs/tools/misc/fclones/gui.nix
	pkgs/tools/misc/ffsend/default.nix
	pkgs/tools/misc/flowgger/default.nix
	pkgs/tools/misc/gh-cal/default.nix
	pkgs/tools/misc/grex/default.nix
	pkgs/tools/misc/hiksink/default.nix
	pkgs/tools/misc/hyperfine/default.nix
	pkgs/tools/misc/iay/default.nix
	pkgs/tools/misc/jsonwatch/default.nix
	pkgs/tools/misc/killport/default.nix
	pkgs/tools/misc/lighthouse-steamvr/default.nix
	pkgs/tools/misc/lorri/default.nix
	pkgs/tools/misc/nvfancontrol/default.nix
	pkgs/tools/misc/octofetch/default.nix
	pkgs/tools/misc/owofetch/default.nix
	pkgs/tools/misc/rust-motd/default.nix
	pkgs/tools/misc/shadowenv/default.nix
	pkgs/tools/misc/sheldon/default.nix
	pkgs/tools/misc/starship/default.nix
	pkgs/tools/misc/synth/default.nix
	pkgs/tools/misc/tab-rs/default.nix
	pkgs/tools/misc/tmux-sessionizer/default.nix
	pkgs/tools/misc/toastify/default.nix
	pkgs/tools/misc/topgrade/default.nix
	pkgs/tools/misc/tremor-rs/default.nix
	pkgs/tools/misc/vrc-get/default.nix
	pkgs/tools/misc/wagyu/default.nix
	pkgs/tools/misc/watchexec/default.nix
	pkgs/tools/networking/bore-cli/default.nix
	pkgs/tools/networking/bore/default.nix
	pkgs/tools/networking/cocom/default.nix
	pkgs/tools/networking/drill/default.nix
	pkgs/tools/networking/fast-ssh/default.nix
	pkgs/tools/networking/ifwifi/default.nix
	pkgs/tools/networking/innernet/default.nix
	pkgs/tools/networking/lychee/default.nix
	pkgs/tools/networking/mozwire/default.nix
	pkgs/tools/networking/ockam/default.nix
	pkgs/tools/networking/onetun/default.nix
	pkgs/tools/networking/rosenpass/default.nix
	pkgs/tools/networking/s3rs/default.nix
	pkgs/tools/networking/shadowsocks-rust/default.nix
	pkgs/tools/networking/suckit/default.nix
	pkgs/tools/networking/wg-netmanager/default.nix
	pkgs/tools/nix/nixci/default.nix
	pkgs/tools/package-management/nix-du/default.nix
	pkgs/tools/package-management/nix-template/default.nix
	pkgs/tools/security/age-plugin-ledger/default.nix
	pkgs/tools/security/feroxbuster/default.nix
	pkgs/tools/security/genpass/default.nix
	pkgs/tools/security/gpg-tui/default.nix
	pkgs/tools/security/kbs2/default.nix
	pkgs/tools/security/lethe/default.nix
	pkgs/tools/security/rblake2sum/default.nix
	pkgs/tools/security/rblake3sum/default.nix
	pkgs/tools/security/rucredstash/default.nix
	pkgs/tools/security/rustscan/default.nix
	pkgs/tools/security/solo2-cli/default.nix
	pkgs/tools/text/amber/default.nix
	pkgs/tools/text/chars/default.nix
	pkgs/tools/text/coloursum/default.nix
	pkgs/tools/text/diffr/default.nix
	pkgs/tools/text/fastmod/default.nix
	pkgs/tools/text/igrep/default.nix
	pkgs/tools/text/languagetool-rust/default.nix
	pkgs/tools/text/mdbook-admonish/default.nix
	pkgs/tools/text/mdbook-epub/default.nix
	pkgs/tools/text/mdbook-footnote/default.nix
	pkgs/tools/text/mdbook-katex/default.nix
	pkgs/tools/text/mdbook-mermaid/default.nix
	pkgs/tools/text/mdbook-pdf/default.nix
	pkgs/tools/text/mdbook-plantuml/default.nix
	pkgs/tools/text/mdbook-toc/default.nix
	pkgs/tools/text/mdcat/default.nix
	pkgs/tools/text/pinyin-tool/default.nix
	pkgs/tools/text/ruplacer/default.nix
	pkgs/tools/typesetting/tex/texpresso/tectonic.nix
	pkgs/tools/video/yaydl/default.nix

Then I ran:

	xargs -n 1 nix-update --version=skip

With this list of attributes corresponding to the changed files given
as standard input:

	listenbrainz-mpd
	minidsp
	muso
	parrot
	electrs
	snarkos
	teos
	teos-watchtower-plugin
	zcash
	greetd.greetd
	greetd.regreet
	greetd.tuigreet
	greetd.wlgreet
	emacsPackages.lspce.lspce-module
	gnvim.unwrapped
	vimPlugins.LanguageClient-neovim.LanguageClient-neovim-bin
	vimPlugins.avante-nvim.avante-nvim-lib
	vimPlugins.codesnap-nvim.codesnap-lib
	vimPlugins.cord-nvim.cord-nvim-rust
	vimPlugins.nvim-spectre.spectre_oxi
	vimPlugins.sg-nvim.sg-nvim-rust
	vimPlugins.sniprun.sniprun-bin
	vimPlugins.vim-markdown-composer.vim-markdown-composer-bin
	vscode-extensions.vadimcn.vscode-lldb.adapter
	zee
	whitebox-tools
	emulsion
	menyoki
	binocle
	cobalt
	eureka-ideas
	inherd-quake
	inlyne
	klipper-estimator
	mdzk
	pastel
	pomodoro
	pueue
	reddsaver
	stork
	terminal-typeracer
	asuka
	tuifeed
	geph.cli
	phetch
	twitch-tui
	tiny
	mhost
	mujmap
	synapse-bt
	aw-server-rust
	finalfrontier
	finalfusion-utils
	rink
	coolercontrol.coolercontrol-gui
	gfold
	git-absorb
	git-branchless
	git-cliff
	git-credential-keepassxc
	git-gone
	git-quickfix
	git-stack
	git-trim
	git-workspace
	gitoxide
	lucky-commit
	crosvm
	rust-hypervisor-firmware
	dwm-status
	i3status-rust
	i3-auto-layout
	i3-cycle-focus
	i3-ratiosplit
	wmfocus
	i3wsr
	mitm-cache
	gleam
	kind2
	ecpdap
	evcxr
	wasmer
	wasmtime
	dotenv-linter
	fac-build
	moon
	cocogitto
	buildkite-test-collector-rust
	dynein
	indradb-client
	indradb-server
	surrealdb-migrations
	dump_syms
	fnm
	geckodriver
	git-ps-rs
	gptcommit
	graphql-client
	hors
	htmlq
	jless
	kdash
	kubie
	dura
	pwninit
	texlab
	tokei
	pactorio
	tree-sitter
	perseus-cli
	py-spy
	rbspy
	remodel
	rover
	rover
	rubyfmt
	rust-bindgen-unwrapped
	cargo-audit
	cargo-bazel
	cargo-c
	cargo-cache
	cargo-clone
	cargo-codspeed
	cargo-crev
	cargo-cyclonedx
	cargo-edit
	cargo-flamegraph
	cargo-fund
	cargo-hf2
	cargo-lambda
	cargo-ndk
	cargo-outdated
	cargo-udeps
	cargo-vet
	cargo-watch
	cargo-whatfeatures
	cargo-zigbuild
	duckscript
	rustup
	sqlx-cli
	sentry-cli
	spr
	viceroy
	wrangler_1
	blightmud
	ferium
	kdePackages.akonadi-search
	kdePackages.angelfish
	kdePackages.kdepim-addons
	cliscord
	t-rec
	wiki-tui
	scx.rustscheds
	bindle
	doh-proxy-rust
	stargazer
	martin
	krill
	laurel
	prometheus-wireguard-exporter
	oxigraph
	piping-server-rust
	rtrtr
	postgresql16Packages.pgvecto-rs
	postgresql16Packages.pgx_ulid
	postgresql16Packages.timescaledb_toolkit
	nushell
	nushellPlugins.dbus
	nushellPlugins.formats
	nushellPlugins.gstat
	nushellPlugins.highlight
	nushellPlugins.net
	nushellPlugins.polars
	nushellPlugins.query
	nushellPlugins.skim
	nushellPlugins.units
	xidlehook
	coldsnap
	procs
	awsbck
	bupstash
	monolith
	rdedup
	aoc-cli
	apkeep
	didyoumean
	dijo
	diskus
	eludris
	fclones
	fclones-gui
	ffsend
	flowgger
	gh-cal
	grex
	hiksink
	hyperfine
	iay
	jsonwatch
	killport
	lighthouse-steamvr
	lorri
	nvfancontrol
	octofetch
	owofetch
	rust-motd
	shadowenv
	sheldon
	starship
	synth
	tab-rs
	tmux-sessionizer
	toastify
	topgrade
	tremor-rs
	vrc-get
	wagyu
	watchexec
	bore-cli
	bore
	cocom
	drill
	fast-ssh
	ifwifi
	innernet
	lychee
	mozwire
	ockam
	onetun
	rosenpass
	s3rs
	shadowsocks-rust
	suckit
	wg-netmanager
	nixci
	nix-du
	nix-template
	age-plugin-ledger
	feroxbuster
	genpass
	gpg-tui
	kbs2
	lethe
	rblake2sum
	rblake3sum
	rucredstash
	rustscan
	solo2-cli
	amber
	chars
	coloursum
	diffr
	fastmod
	igrep
	languagetool-rust
	mdbook-admonish
	mdbook-epub
	mdbook-footnote
	mdbook-katex
	mdbook-mermaid
	mdbook-pdf
	mdbook-plantuml
	mdbook-toc
	mdcat
	pinyin-tool
	ruplacer
	texpresso.tectonic
	yaydl

The list of files for the first command and the list of attributes for
the second command are in the same order, so it should be easy enough
to check their correspondence by putting them side by side.

It might be possible to parallelize the nix-update operations using
xargs' -P option.  I haven't tested it.
2025-01-23 12:23:46 +01:00
R. Ryantm
98b12ee1f4 rust-bindgen-unwrapped: 0.70.1 -> 0.71.1 2024-12-18 04:44:04 +00:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
github-actions[bot]
3533282a88 Merge master into staging-next 2024-11-07 20:49:24 +00:00
Reno Dakota
52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
R. Ryantm
0f589144a1 rust-bindgen-unwrapped: 0.69.4 -> 0.70.1 2024-08-24 13:37:39 +00:00
Anderson Torres
0b66fb05d6 rust-bindgen: remove ralith from meta.maintainers [inactivity] [no orphans] 2024-08-05 00:51:30 -03:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Pyrox
0b8eaf081f fetchCrate: sha256 -> hash
Should cause no rebuilds, as this is just updating attributes.
2024-07-14 13:48:13 -04:00
R. Ryantm
06901f313d rust-bindgen-unwrapped: 0.69.2 -> 0.69.4 2024-02-11 03:16:25 +00:00
R. Ryantm
77d29a6dfc rust-bindgen-unwrapped: 0.69.1 -> 0.69.2 2024-01-23 00:32:04 +00:00
R. Ryantm
b9dbec0279 rust-bindgen-unwrapped: 0.66.1 -> 0.69.1 2023-12-01 19:21:14 +01:00
Alyssa Ross
212a283707 rust-bindgen: 0.66.0 -> 0.66.1 2023-06-26 22:33:00 +00:00
R. Ryantm
0b8f6f86d3 rust-bindgen-unwrapped: 0.65.1 -> 0.66.0 2023-06-17 16:56:16 +00:00
Daniel Nagy
ca2cb9f644 treewide: "libary" -> "library" 2023-06-10 14:54:08 +01:00
Alyssa Ross
2d5c19598a rust-bindgen: 0.64.0 -> 0.65.1 (#228307) 2023-04-26 23:02:09 +02:00
Alyssa Ross
d607d078e2 rust-bindgen: 0.63.0 -> 0.64.0
Changelog[1] and my testing suggests generated bindings aren't going
to change much or at all.

[1]: ae6817256a/CHANGELOG.md
2023-02-10 10:32:55 +00:00
Alex Martens
4888f60568 rust-bindgen: 0.61.0 -> 0.63.0 2023-01-28 10:14:28 -08:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Alex Martens
bea58512db rust-bindgen: 0.59.2 -> 0.61.0 2022-11-11 09:47:12 +00:00
Malo Bourgon
16e15fa68f treewide: add meta.mainProgram to many packages 2022-05-04 18:08:19 -07:00
K900
af7c34be0b rustfmt: drop separate nightly alias
If you really want it, override it.
2022-04-07 19:42:14 +03:00
K900
e5f5ad71ac rust-bindgen: use rustfmt-nightly
bindgen's tests rely on specific output from rustfmt that uses
unstable features, so breaks when we build rustfmt as stable.

Also, use a better way to specify the rustfmt executable.
2022-04-06 13:03:23 +03:00
Guillaume Girol
bedabfbcef rustPlatform.bindgenHook: init 2022-02-22 19:37:07 +01:00
Guillaume Girol
d1d0d1184e rust-bindgen: fix meta 2022-02-03 12:00:00 +00:00
Guillaume Girol
653d5a265b rust-bindgen: add tests 2022-02-03 14:53:17 +01:00
Guillaume Girol
703bbde201 rust-bindgen: separate into unwrapped and wrapped 2022-02-03 14:53:17 +01:00
Guillaume Girol
7283e2dd06 rust-bindgen: fix c++ includes
NIX_CXXSTDLIB_COMPILE has been removed in https://github.com/NixOS/nixpkgs/pull/85189
and https://github.com/NixOS/nixpkgs/pull/85189#commitcomment-40987154
remommends using the files in ${clang}/nix-support to find the correct
flags to pass to libclang.
2022-02-03 12:00:00 +00:00
R. Ryantm
d9d632ebfc rust-bindgen: 0.59.1 -> 0.59.2 2021-12-07 01:12:35 +00:00
R. RyanTM
b206d6afc1 rust-bindgen: 0.57.0 -> 0.59.1 2021-09-14 09:13:00 +00:00
Alyssa Ross
5fc7992364 rust-bindgen: use a better drv name for fakeRustup
I saw a derivation called "rustup" building and was concerned why
rust-bindgen would depend on rustup.  If it had been called
"fake-rustup", I wouldn't have had to check the package source to see
what was going on. :)
2021-08-13 12:38:32 +00:00
Arthur Gautier
61a9aafda6 rust-bindgen: some features of bindgen require a recent version of llvm
Features likes 'asm goto' are only available if compiled with llvm >= 11.

This is required for rust-in-linux development for example. I believe
binding to llvmPackages_latest is an acceptable tradeoff.

```
  RUSTC L rust/build_error.o
error: unknown argument: '-fmacro-prefix-map=./='
error: unknown argument: '-fno-stack-clash-protection'
error: unknown warning option '-Wno-frame-address'; did you mean '-Wno-address'? [-Wunknown-warning-option]
error: unknown warning option '-Wno-pointer-to-enum-cast' [-Wunknown-warning-option]
./arch/x86/include/asm/bitops.h:138:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/bitops.h:162:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/bitops.h:201:9: error: 'asm goto' constructs are not supported yet
./include/linux/list.h:282:9: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
./include/linux/list.h:318:27: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
./include/linux/list.h:821:10: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
./include/linux/list.h:830:10: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
./arch/x86/include/asm/atomic.h:83:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic.h:123:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic.h:137:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic.h:152:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic64_64.h:76:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic64_64.h:118:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic64_64.h:132:9: error: 'asm goto' constructs are not supported yet
./arch/x86/include/asm/atomic64_64.h:147:9: error: 'asm goto' constructs are not supported yet
./include/linux/jump_label.h:278:2: error: expected '(' after 'asm'
./include/linux/jump_label.h:284:2: error: expected '(' after 'asm'
./include/linux/jump_label.h:306:2: error: expected '(' after 'asm'
./include/linux/jump_label.h:309:3: error: expected '(' after 'asm'
./include/linux/jump_label.h:317:2: error: expected '(' after 'asm'
./include/linux/jump_label.h:320:3: error: expected '(' after 'asm'
./include/linux/llist.h:189:9: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
error: unknown argument: '-fmacro-prefix-map=./=', err: true
error: unknown argument: '-fno-stack-clash-protection', err: true
error: unknown warning option '-Wno-frame-address'; did you mean '-Wno-address'? [-Wunknown-warning-option], err: true
error: unknown warning option '-Wno-pointer-to-enum-cast' [-Wunknown-warning-option], err: true
./arch/x86/include/asm/bitops.h:138:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/bitops.h:162:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/bitops.h:201:9: error: 'asm goto' constructs are not supported yet, err: true
./include/linux/list.h:282:9: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier], err: false
./include/linux/list.h:318:27: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier], err: false
./include/linux/list.h:821:10: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier], err: false
./include/linux/list.h:830:10: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier], err: false
./arch/x86/include/asm/atomic.h:83:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic.h:123:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic.h:137:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic.h:152:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic64_64.h:76:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic64_64.h:118:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic64_64.h:132:9: error: 'asm goto' constructs are not supported yet, err: true
./arch/x86/include/asm/atomic64_64.h:147:9: error: 'asm goto' constructs are not supported yet, err: true
./include/linux/jump_label.h:278:2: error: expected '(' after 'asm', err: true
./include/linux/jump_label.h:284:2: error: expected '(' after 'asm', err: true
./include/linux/jump_label.h:306:2: error: expected '(' after 'asm', err: true
./include/linux/jump_label.h:309:3: error: expected '(' after 'asm', err: true
./include/linux/jump_label.h:317:2: error: expected '(' after 'asm', err: true
./include/linux/jump_label.h:320:3: error: expected '(' after 'asm', err: true
./include/linux/llist.h:189:9: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier], err: false
fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true
thread 'main' panicked at 'Unable to generate bindings: ()', src/main.rs:54:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[1]: *** [rust/Makefile:141: rust/bindings_generated.rs] Error 1
make[1]: *** Deleting file 'rust/bindings_generated.rs'
```

Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
2021-06-16 18:52:09 +00:00
Joachim Breitner
570d58be31 rust-bindgen: Update cargoSha256 (#123349)
Co-authored-by: fortune <lythe1107@gmail.com>
2021-05-18 02:06:41 +02:00
Andrew Childs
7869d16545 llvmPackages: Multuple outputs for everythting
Also begin to start work on cross compilation, though that will have to
be finished later.

The patches are based on the first version of
https://reviews.llvm.org/D99484. It's very annoying to do the
back-porting but the review has uncovered nothing super major so I'm
fine sticking with what I've got.

Beyond making the outputs work, I also strove to re-sync the packages,
as they have been drifting pointlessly apart for some time.

----

Other misc notes, highly incomplete

- lvm-config-native and llvm-config are put in `dev` because they are
  tools just for build time.

- Clang no longer has an lld dep. That was introduced in
  db29857eb3, but if clang needs help
  finding lld when it is used we should just pass it flags / put in the
  resource dir. Providing it at build time increases critical path
  length for no good reason.

----

A note on `nativeCC`:

`stdenv` takes tools from the previous stage, so:

1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.stdenv.cc`: `(?0, ?1, x)`

while:

1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.targetPackages`: `(x, x, ?2)`
3. `pkgsBuildBuild.targetPackages.stdenv.cc`: `(?1, x, x)`
2021-04-30 05:41:00 +00:00
R. RyanTM
abf7ed76bc rust-bindgen: 0.55.1 -> 0.57.0 2021-03-09 13:28:21 +00:00
Pavol Rusnak
a6ce00c50c treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Christian Kögler
23b0a88572 rust-bindgen: Resolve "/usr/bin/env bash" to fix usage in Nix build 2021-01-21 20:16:58 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Yuki Okushi
afc8027dde rust-bindgen: 0.54.1 -> 0.55.1 2020-10-20 09:09:13 -07:00