Compare commits

..

21 Commits

Author SHA1 Message Date
George Thomas
346e558e0a debug wip 2026-04-14 01:46:24 +01:00
George Thomas
ce742e4763 bump to hs-bindgen and libclang to latest...
had hoped this might solve the weird field naming but alas - should just report issue
2026-04-14 01:46:24 +01:00
George Thomas
15187cd760 file dependency reload stuff 2026-04-14 01:46:24 +01:00
George Thomas
16f75fef9b basic enum example 2026-04-14 01:46:24 +01:00
George Thomas
2d2d29b7a5 Use lambdas in all wrappers for consistency
This is partly with a view to eventually abstracting away much of the boilerplate.
2026-04-14 01:46:24 +01:00
George Thomas
8ec85e8192 Add maybe/optional example 2026-04-14 01:46:24 +01:00
George Thomas
d9ae85e18c Add vector/slice example 2026-04-14 01:46:24 +01:00
George Thomas
51b23f6b38 Remove unnecessary Rust unit return type annotations 2026-04-14 01:46:24 +01:00
George Thomas
adc542fd21 Pass all non-primitive types by (immutable) reference 2026-04-14 01:46:24 +01:00
George Thomas
6430724da3 Deduplicate base dependency 2026-04-14 01:46:24 +01:00
George Thomas
89cbbcb2e8 Get Rust Analyzer from overlay instead of directly from Nixpkgs
Right now, the latter invokes `cargo metadata --lockfile-path`,
which this Cargo nightly doesn't support.
2026-04-14 01:46:24 +01:00
George Thomas
96049682b2 Reformat 2026-04-14 01:46:24 +01:00
George Thomas
b01f37791f Remove unnecessary library linking 2026-04-14 01:46:24 +01:00
George Thomas
b8eb0d01b7 Specify include directories via environment variable 2026-04-14 01:46:24 +01:00
George Thomas
4c9a9e4ef2 Minor refactor to avoid long line 2026-04-14 01:46:24 +01:00
George Thomas
58f3aa80b6 Combine overrides 2026-04-14 01:46:24 +01:00
George Thomas
759d375a49 Inline project Nix file 2026-04-14 01:46:24 +01:00
George Thomas
80afc3b9d4 Remove unused binding 2026-04-14 01:46:24 +01:00
George Thomas
ec6af8133b Simplify build script
Seeing as we now no longer need to modify generated header files.
2026-04-14 01:46:24 +01:00
George Thomas
53142f902e Bump hs-bindgen to avoid header patching hack 2026-04-14 01:46:24 +01:00
George Thomas
d3cee99e92 stuff from Yuri
things I've changed from the PR:
- dropped legacy (i.e. non-flake) compat stuff, which turns out to account for most of the diff
- dropped `packages.garnet` since it doesn't work with `nix build .#garnet`
- back to using Rust-extended packages everywhere, which isn't very important but seems fine anyway
the rest is just re-inlining things and other refactors

final question:
it does seems a bit weird that `garnet-rs` arg to `project.nix` was always the same
might be a mistake, and we're supposed to be using local for local build?

"improve nix-haskell use"

there are a few things going on here but the main ones are ...
note that changes we keep are essentially:
- bumping `nix-haskell` to avoid shell hook workaround
- various changes in how we call `nix-haskell`
- using `libCgarnet_rs` name, which Cabal expects
- adding proper non-dev-shell targets, so that e.g. `nix run` works

should add co-author attribution
2026-04-14 01:45:35 +01:00

Diff Content Not Available