Git Product home page Git Product logo

Comments (4)

kosmikus avatar kosmikus commented on July 19, 2024

I don't really understand what the bug is, in your opinion.

from cabal2nix.

Davorak avatar Davorak commented on July 19, 2024

I would call it unexpected behavior, from a native point of view, over a bug.

After running nix-env -iA nixos.pkgs.haskellPackages.cabalInstall, I expected to be able to run normal cabal install <package>, cabal build, ect commands. Instead it failed complaining about a lack of ar. I do not remember having this problem when installing cabal on Ubuntu through nix or on my mac and I believe this is what made it stand out to me.

It may be that the best solution is to make sure it is documented somewhere that a the above environment is needed to use cabal normally.

from cabal2nix.

peti avatar peti commented on July 19, 2024

Cabal-install searches for numerous binaries at run-time -- not just ar, but also haddock, alex, and even GHC. The versions of those tools that are found in $PATH determine the nature of the build cabali-install is going to do, so this is a choice that the user/developer must make somewhat consciously. On some platforms, like Ubuntu, there is just one version of each of those tools available. That makes it simple to provide a simple default installation, because there is nothing to choose! With Nix, however, the situation is different, because we have almost a dozen different versions of the GHC development environment available, which can be installed simultaneously on the same machine. In that setup, it's your responsibility to ensure that the development environment is sane -- Nix cannot do that for you the same way Ubuntu can.

Generally speaking, developers working on Nix probably want to install 'stdenv' into their profile.

from cabal2nix.

Davorak avatar Davorak commented on July 19, 2024

Thank you for the explanation, I still want a wrapped cabal but it should probably not happen at the cabal2nix level. Give that I have added some notes to the Haskell wiki page on nixos.org/wiki.

from cabal2nix.

Related Issues (20)

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.