Git Product home page Git Product logo

nix-rebar3's Issues

Builds fail with nixpkgs/nixos-22.11

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.