Skip to content

feat: add sensenet Buck2 build infrastructure - #2

Open
b7r6 wants to merge 1 commit into
b7r6/dev-0x01from
sensenet-buck2
Open

feat: add sensenet Buck2 build infrastructure#2
b7r6 wants to merge 1 commit into
b7r6/dev-0x01from
sensenet-buck2

Conversation

@b7r6

@b7r6 b7r6 commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Import sensenet's Buck2 module for build infrastructure, enabling Buck2 builds.

Changes

  • Add BUILD.dhall with haskell_ffi_binary target for slide
  • Import dhall prelude and toolchains from sensenet
  • Configure flake to use sensenet.flakeModules.buck2
  • Add GHC 9.12 package resolution workaround (ghc-pkg-id wrapper)

Usage

nix develop .#buck2-default
buck2 build //:slide
buck2 run //:slide -- --help

Technical Details

The flake imports sensenet as an input and uses its flakeModules.buck2 module
which provides the Buck2 project infrastructure including:

  • Toolchain configuration
  • Shell hooks for .buckconfig.local generation
  • Package ID mappings for GHC 9.12 workaround

Import sensenet's Buck2 module for build infrastructure:
- Add BUILD.dhall with haskell_ffi_binary target
- Import dhall prelude and toolchains from sensenet
- Configure flake to use sensenet.flakeModules.buck2

Build: nix develop .#buck2-default && buck2 build //:slide

GHC 9.12 package resolution uses ghc-pkg-id wrapper script to
translate -package flags to -package-id flags (workaround for
ghcWithPackages bug).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant