1. 8
  1.  

  2. 3

    One upside to Nix, while it has some drawbacks, is that I’ve found updating packages very straight forward and easy. I just fork the repo, copy the existing package, and install from the fork. You don’t have to learn anything other than that, because the packages describe how to build the package rather than just being binary artifacts.

    1. 3

      Took me 10 seconds to get Pandoc on my PATH with Nix:

      nix-shell -p haskellPackages.pandoc

      Latest released version, no compilation, just 10 seconds of downloading binaries. It gets harder when the package is not in nixpkgs, but cabal2nix might generate a usable Pandoc definition.

      1. 2

        cabal2nix might generate a usable Pandoc definition.

        I’m fond of Nix, but that’s a pretty hopeful might. I got usable nix files out of cabal2nix without modification 0% of the time I tried it for various libraries and binaries.

        1. 1

          Worked for me:

          % cabal2nix --jailbreak cabal://pandoc > pandoc.nix
          % nix-shell -E "(import <nixpkgs> {}).haskellPackages.callPackage ./pandoc.nix {}"
          $ unpackPhase
          $ cd pandoc-1.13.1
          $ eval "$configurePhase"
          $ cabal build
          $ dist/build/pandoc/pandoc --version
          pandoc 1.13.1
          

          Best part was that the dependencies were all binary, compilation was only of Pandoc.

          1. 1

            I have the worst luck with these things :(

    2. 3

      7.0.x is an antediluvian version of GHC. Baffling how anybody can tolerate such ancient packages on CentOS/RHEL.

      I’ve pinged the Cabal elves about getting the binary into the path by default. We’ll see how it shakes out.

      There’s not a lot else here for the Haskell community to address, broken packaging on the part of your distro isn’t something we can fix.

      This is what the instructions usually look like: http://new-www.haskell.org/downloads/linux

      Nix has top-notch support for language-specific dependencies (Python, Scala, Haskell, etc.)

      1. 3

        There’s not a lot else here for the Haskell community to address, broken packaging on the part of your distro isn’t something we can fix.

        That’s basically what I took from this post as well. CentOS is for people who want to run PHP sites on a stable OS version so they don’t have to touch anything ever. Perhaps it has other utility, but I’m dubious.