John Ericson
351a206776
Fix clippy and track in CI
...
`flake check` will run clippy.
2025-12-15 19:48:45 -05:00
Robert Hensing
00fafd48ec
Merge pull request #18 from numinit/shell-hook
...
flake: Add shellHook to mkDerivation
2025-12-09 19:05:51 +01:00
John Ericson
d496ee3539
Work around dead code analysis bug
...
Some tool forgot that `builtins.functionArgs` makes removing seemingly
unused arguments with `@` patterns fraught.
2025-12-06 15:10:49 -05:00
Morgan Jones
388dc735b9
flake: Add shellHook to mkDerivation
...
Otherwise, we don't run the bindgen script while entering a devShell.
2025-12-06 14:00:26 -05:00
Robert Hensing
4a1889fb0c
maint: Move treefmt to dev partition
...
Moves treefmt-nix input and configuration from the main flake to the
dev partition, since it's a development-only dependency. Also switches
pre-commit hooks from individual formatter hooks to the unified treefmt
hook for better consistency.
2025-12-06 12:04:26 +01:00
John Ericson
cfda626614
Format, and keep formatted
2025-12-05 16:55:09 -05:00
Robert Hensing
ae7709def8
doc: Render declarations without the deferredModule indirection
...
deferredModule sets a fake `file` with "via option ...", which
interferes with rendering on flake.parts.
2025-10-27 14:59:29 +01:00
Robert Hensing
26b7cb2116
feat: Expose module for setting up the build and test environment.
2025-10-27 14:52:48 +01:00
Robert Hensing
55eacf43c3
maint: Move to /rust/* to /
...
This makes it easier for tooling to find the Rust stuff.
Rust/non-rust is not a useful distinction in this repo anymore anyway.
2025-10-26 23:29:13 +01:00
Robert Hensing
83dece62b2
chore: Apply nixfmt
...
(cherry picked from commit d11c2029c5a33ec522f46dd3e00fec8db2c3729b)
2025-10-04 02:31:16 +02:00
Robert Hensing
5a6cd50177
maint: Update nix to 2.29pre
...
(cherry picked from commit 81dee2336145d5fb4f32c95ff0319f1f8fdcfd96)
2025-10-04 02:31:16 +02:00
Robert Hensing
d40bbbed88
maint: Update Nix
...
(cherry picked from commit 203f5d519369235097fef2bdaefa6b3d0f5e963b)
2025-10-04 02:31:16 +02:00
Robert Hensing
676120cd6a
doc: Set flake description
...
(cherry picked from commit 6d5f5e5b4cd0f5b5118d619adbeae7bc335c02f3)
2025-10-04 02:31:16 +02:00
Robert Hensing
69d4ccc422
fix: Temporarily revert Nix to recover getFlake
...
https://github.com/NixOS/nix/issues/11399
(cherry picked from commit 0f2ae7d080dda34938517f781b4eb436522e9d65)
2025-10-04 02:31:16 +02:00
Robert Hensing
7918175c24
refact: Move dev-only dependencies into separate lock file
...
(cherry picked from commit ddf306bb9564a43fb42ab4321b390e766254f1c4)
2025-10-04 02:31:16 +02:00
Robert Hensing
cf6bedde14
flake.nix: Unfollow nixpkgs in flake-parts
...
This may speed up autocompletion since the default lib is a small
path.
(It shouldn't matter, but Nix isn't as lazy as it will be yet, so
here we go.)
(cherry picked from commit 90709ff3c690275dfb6b8fce50cb0282a52e1971)
2025-10-04 02:31:16 +02:00
Robert Hensing
65451efd4b
dev: Improve comment check file name regex
...
Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com>
(cherry picked from commit b401e52eba931374b782d83360411b197a8d59da)
2025-10-04 02:31:16 +02:00
Robert Hensing
6b438e5398
dev: Check that we use ///-style doc comments in Rust
...
(cherry picked from commit 395a4d7a46e8489ca98667fca3db8aebf998a9b6)
2025-10-04 02:31:16 +02:00
Robert Hensing
8fcc645c5d
maint: Update nix to master
...
(cherry picked from commit 941dfa89024bde628dc1add30442d1d122a82ffb)
2025-10-04 02:30:46 +02:00
Robert Hensing
1edaffcc09
flake: nix: NixOS/master -> hercules-ci/fix-eval-state-baseEnv-gc-root
...
Flake lock file updates:
• Updated input 'nix':
'github:nixos/nix/1cfc9da472f8dcfa7f521e544531d5e4daf2076c' (2024-04-23)
→ 'github:hercules-ci/nix/38974360102e67aaf2434fd3f920e2cd1bb3fa75' (2024-05-01)
(cherry picked from commit b8001272187137243685870d414df28d1a229e02)
2025-10-04 02:30:46 +02:00
Robert Hensing
9d05ce49e2
dev: Add debug symbols to shell
...
(cherry picked from commit b72191f8c1669bc8df242e8386014363d096fad4)
2025-10-04 02:30:46 +02:00
Erin van der Veen
9d26e36b85
feat: update nix input to latest master
...
The nix c bindings have now merged into master, with some small changes since these bindings were created.
This commit updates the input, and adjusts it to the new API.
(cherry picked from commit aa02380bfcc6221615f65152de60cf4cca3bbbbe)
2025-10-04 02:30:46 +02:00
Robert Hensing
be1c6bef6b
maint: Update pre-commit-hooks-nix
...
(cherry picked from commit dc8985d5bf77c76ee4b2a0816d314e9e2c7f5318)
2025-10-04 02:30:46 +02:00
Robert Hensing
9021f55a53
maint: Remove RUST_NIX_C_RAW_EXTRA_CFLAGS
...
The standard bindgen flag BINDGEN_EXTRA_CLANG_ARGS seems to do the
same thing.
(cherry picked from commit 599eece08bee28d72c4ec20c8578428c158a19c1)
2025-10-04 02:30:46 +02:00
Robert Hensing
08781aeef7
dev: Fix pre-commit check
...
Flake lock file updates:
• Updated input 'pre-commit-hooks-nix':
'github:cachix/pre-commit-hooks.nix/0db2e67ee49910adfa13010e7f012149660af7f0' (2024-02-07)
→ 'github:hercules-ci/pre-commit-hooks.nix/d43e4853f578739ac2264eadcd18faa5aeb41889' (2024-03-19)
(cherry picked from commit 32a59f0f81b70a95ec7fda598b5823e96d3f8270)
2025-10-04 02:30:46 +02:00
Robert Hensing
4f12dc0127
dev: Basic CI config
...
(cherry picked from commit de4a5a82a4fbdcc9bd786c09dc0f40c8b38a498f)
2025-10-04 02:30:07 +02:00
Robert Hensing
15b8ce951a
dev: Add gdb to devshell
...
(cherry picked from commit 159880b57ce5ca8545ee4625deacb17b9dd3b74f)
2025-09-30 19:16:20 +02:00
Robert Hensing
6978e91fa9
feat: Add nix-expr library, update nix
...
(cherry picked from commit bf1ddd1c9137578b86895577d5b80e0c5771b605)
2025-09-30 19:06:17 +02:00
Robert Hensing
0d7146cb39
feat: nix-c-raw: Generate value api bindings
...
(cherry picked from commit 3c75dea63233670863f30547f90dd71498d547b0)
2025-09-30 18:58:26 +02:00
Robert Hensing
290f2654e1
feat: Add manual testing of bindings with Valgrind
...
(cherry picked from commit 12fed067bf230d3258db172afe648ec690ba584c)
2025-09-30 18:45:54 +02:00
Robert Hensing
61975ac8e4
temp: Disable rustfmt pre-commit hook
2025-09-30 18:40:07 +02:00
Robert Hensing
4dca986fe2
feat: Add nix overrides to make bindgen work
...
(cherry picked from commit 7caeec86a016fc7427d71ac3713adb2293c2e1ce)
2025-09-30 18:05:54 +02:00
Robert Hensing
a4bdbe5618
feat: Rust skeleton
...
(cherry picked from commit 41a09289cda3137f96c69c69c924af34f0e64865)
2025-09-30 17:57:50 +02:00
Robert Hensing
bfa3b3a063
feat: README and Flake
2025-09-30 16:10:42 +02:00