axelf4 / nix-rebar3 Goto Github PK
View Code? Open in Web Editor NEWNix library for building rebar3 projects
License: MIT License
Nix library for building rebar3 projects
License: MIT License
Hello, thanks for nix-rebar3
!
When moving from "nixpkgs/nixos-22.05" to "nixpkgs/nixos-22.11" my build started failing during installPhase
with consumeEntire(): ERROR: Input null bytes, won't process
, due to $out/rel/*/erts-*/bin/erl
now being a binary file (crashing substituteInPlace
here https://github.com/axelf4/nix-rebar3/blob/master/default.nix#L147).
Not running substituteInPlace
for binary files fixes the problem:
if [ -z "$(file $f -b --mime | grep 'charset=binary')" ]; then
substituteInPlace "$f" --replace ${erlang}/lib/erlang "''${f%/erts-*/bin/*}"
fi
however this feels clunky, there's probably a more appropriate solution that I'm not seeing due to my lack of understanding of erlang releases and nix-rebar3 (or maybe my project is mis-configured in some other way).
I haven't managed to find how/why the file is now binary rather than ascii. With nixos-22.11, rebar3 version 3.20.0 is used, whereas nixos 22.05 uses rebar3 3.18.0. Both nixos 22.11 and 22.05 use Erlang/OTP 24 and Erts 12.3.2.5.
I've created a small reproducible example here https://github.com/rskew/nix-rebar3-bug-demo
Cheers :)
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.