Scala project (FIRRTL) failing to build on NixOS

This page summarizes the projects mentioned and recommended in the original post on /r/NixOS

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • firrtl

    Flexible Intermediate Representation for RTL

    I am trying to build an SBT based project called FIRRTL on NixOS in a nix-shell (I've tried with and without --pure). However, the build keeps failing on NixOS, but it successfully builds in a --pure shell on macOS (11.2.1). Since I'm not really a Scala developer (trying to get into chisel for RTL), I have no idea what could be missing from my .nix which is available on macOS by default.

  • firrtl

    Flexible Intermediate Representation for RTL (by TimothyKlim)

    You need replace protoc with something like this: protobufRunProtoc in ProtobufConfig := (args => scala.sys.process.Process("protoc", args).!) in build.sbt and add protobuf3_6 to buildInputs. For example: https://github.com/TimothyKlim/firrtl/commit/be23dbfaeb043e01ea7d293243e5994715d00d2b

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • patchelf

    A small utility to modify the dynamic linker and RPATH of ELF executables

    NixOS doesn't have stable paths to shared libraries like macOS or other linux distributions (and this is the core feature) and always need to patch elf for current paths ( https://github.com/NixOS/patchelf ).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts