1. 8
  1.  

  2. 3

    So I can either copy-paste or run git submodule, or.. install Java to install Facebook Buck (whatever that is) to ‘manage’ my C++ projects?!

    The cottage industry of single-header libraries is actually a good thing; it keeps us C++ programmers from adding too many dependencies.

    1. 3

      Neither git submodule nor copy paste saves you from transitive dependencies on same library but different versions.

      I tried buck, it’s actually quite fast. I’ll experiment more with it and buckaroo and report back in the ‘what are you working on’ thread.

    2. 2

      Isn’t it amazing how little Nix is known in the C++ world, while it’s just the right pill for its dependency management problems…

      1. 9

        Nix makes very little concession towards Windows support. That makes it pretty much DOA for C++ community use.

        1. 1

          I’ve actually never tried nix on Windows (only used it in a web app context, i.e. Linux server), but it works there too in theory right? I can imagine nixpkgs not working on Windows, but can’t you still use nix to manage your own projects?

          1. 4

            As far as I know, it recently gained support for the WSL, but still doesn’t work at all on stock Windows at all.

            http://nixos.org/nix/about.html says

            Nix runs on Linux and Mac OS X.

            1. 3

              I’ve actually never tried nix on Windows (only used it in a web app context, i.e. Linux server), but it works there too in theory right?

              Not really, no. The project doesn’t support Windows at all. You can, apparently, get it to build under cygwin, but that seems to come with a host of caveats of missing or broken functionality.

              1. 1

                Do you know what the restrictions are? Windows 10 in Developer Mode (and with a toggle) supports long paths and symlinks just fine, which are the two major historical stumbling blocks for nix-like tooling.

                1. 1

                  iirc there were issues with determining dependencies w.r.t. installed DLLs (absolute path issue?), reproducibility is broken under stock because Cygwin can’t be reproducibly installed, possibly some issues with address relocations related to Cygwin’s hacky fork()

                  some of this may have changed by now

          2. 2

            It’s unfortunate that Nix does not aim for being super portable, like pkgsrc. As a Nix-lover but not a Linux-lover I would like to use Nix in other OSs but it isn’t supported.