manveru / crystal-flake Goto Github PK
View Code? Open in Web Editor NEWFlake to build Crystal
Flake to build Crystal
Hi, would it be hard to add support for aarch64-darwin
? I'm trying to get into nix on a new computer and also use crystal. I figure flakes are The Way To Go and found this project.
This pr worked for me for nix-shell
on arm mac for what it's worth https://github.com/crystal-lang/crystal/pull/12591/files Not sure if that helps make it easier to add support or not though.
It would be nice if crystalline
was a part of nixpkgs, see: NixOS/nixpkgs#129002
I tried to package it myself, however I get this error:
$ nix build .#crystalline
error: builder for '/nix/store/6ha2chgnsjxjjrbrclk2kkpdqd46pybn-crystalline-0.9.0.drv' failed with exit code 1;
last 10 log lines:
> llvm_ext.cc:(.text+0x142a): undefined reference to `llvm::AttributeList::addAttributeAtIndex(llvm::LLVMContext&, unsigned int, llvm::Attribute::AttrKind) const'
> /nix/store/shw0b6wv2xdvyj71b1fj147i83awrqfz-binutils-2.40/bin/ld: /nix/store/7cbwi2vs81vy9706z3qaz0lalw2kgszy-crystal-1.8.1-lib/crystal/llvm/ext/llvm_ext.o: in function `LLVMExtBuildInvoke2':
> llvm_ext.cc:(.text+0x16ba): undefined reference to `llvm::AttributeList::addAttributeAtIndex(llvm::LLVMContext&, unsigned int, llvm::Attribute::AttrKind) const'
> /nix/store/shw0b6wv2xdvyj71b1fj147i83awrqfz-binutils-2.40/bin/ld: /nix/store/7cbwi2vs81vy9706z3qaz0lalw2kgszy-crystal-1.8.1-lib/crystal/llvm/ext/llvm_ext.o: in function `LLVMExtCreateMCJITCompilerForModule':
> llvm_ext.cc:(.text+0x1913): undefined reference to `llvm::AttributeList::addAttributeAtIndex(llvm::LLVMContext&, unsigned int, llvm::StringRef, llvm::StringRef) const'
> /nix/store/shw0b6wv2xdvyj71b1fj147i83awrqfz-binutils-2.40/bin/ld: /nix/store/7cbwi2vs81vy9706z3qaz0lalw2kgszy-crystal-1.8.1-lib/crystal/llvm/ext/llvm_ext.o: in function `LLVMExtDIBuilderCreateEnumerator':
> llvm_ext.cc:(.text+0xa80): undefined reference to `llvm::DIBuilder::createEnumerator(llvm::StringRef, unsigned long, bool)'
> collect2: error: ld returned 1 exit status
> Error: execution of command failed with exit status 1: gcc "${@}" -o /build/source/crystalline -rdynamic -L/nix/store/s9bg2k5pcqg9jfydv73qz1ks0904ayfz-boehm-gc-8.2.2/lib -L/nix/store/77v35v9ww1bqpzywgrg88w98zhhajiw6-pcre2-10.42/lib -L/nix/store/qzd89gp4sdmwwvd79hnws1l13fwpb3sp-libevent-2.1.12/lib -L/nix/store/5p42x6w5n98541wg55bxpxpfawi6fldr-libyaml-0.2.5/lib -L/nix/store/37a5krk4a1a8vhl93q2bm9nbv8hymyii-zlib-1.2.13/lib -L/nix/store/z55ppjgy91k644h4xv4mbiksm33ji2w9-libxml2-2.10.4/lib -L/nix/store/8dxriyfzj2nycr6wlmk5zs0xpczbz7an-openssl-3.0.8/lib -lyaml /nix/store/7cbwi2vs81vy9706z3qaz0lalw2kgszy-crystal-1.8.1-lib/crystal/llvm/ext/llvm_ext.o `"/nix/store/37dw98yiz05pr8xfy6qgn2y2zc6yh277-llvm-11.1.0-dev/bin/llvm-config" --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre2-8 -lm -lgc -lpthread -levent_pthreads -levent -lrt -lpthread -ldl
> [14/13] Codegen (linking)
Any help would be appreciated. My branch is available here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.