Skip to content

nix: add flake - #73

Open
jdek wants to merge 2 commits into
cosmos72:mainfrom
jdek:flake
Open

nix: add flake#73
jdek wants to merge 2 commits into
cosmos72:mainfrom
jdek:flake

Conversation

@jdek

@jdek jdek commented Aug 2, 2026

Copy link
Copy Markdown

Adds a Nix flake providing a package and dev shell for x86_64-linux, aarch64-linux and aarch64-darwin. The derivation lives in package.nix; default.nix and shell.nix are thin wrappers around it, so nix-build/nix-shell still work without flakes.

Fixes #34 correctly on macOS. The incompatible fasl-object version error is not a Chez packaging problem: Nix's fixupPhase strips $out/lib, and Apple's strip truncates the fasl object entirely. Corrected with stripDebugList = [ "bin" ].

test/data3.ss:395 glob-expands the source root, so its expectation now includes flake.nix and flake.lock.

Tested on aarch64-darwin and x86_64-linux.

user@machine:~$ echo '((lambda (n) (+ n n)) 4)' | nix run github:jdek/schemesh/flake
shell user@machine:~:((lambda (n) (+ n n)) 4)
8
shell user@machine:~:
user@machine:~$

@cosmos72

cosmos72 commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution.

Unluckily this has the same problem as the older #13:
I don't know enough about Nix to validate the contributed code

@jdek

jdek commented Aug 3, 2026

Copy link
Copy Markdown
Author

I now additionally added a GitHub Actions workflow to automate exercising of the paths to validate functionality. Hope that helps.

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.

[macOS+Nix] Exception: incompatible fasl-object version

2 participants