joshuef / peruse

Extensible Electron Browser. Built with react/redux. With extensions for The SAFE Network
MIT License
29 stars 9 forks source link

NixOs compatibility #92

Open canndrew opened 6 years ago

canndrew commented 6 years ago

I'm unable to run peruse on NixOS. I initially had a bunch of dependency errors, but I was able to fix them by using the following default.nix:

with import <nixpkgs> {};
let
  deps = [
    stdenv
    gnome2.gtk
    gnome2.pango
    atk
    cairo
    gdk_pixbuf
    glib
    fontconfig
    freetype
    dbus
    xlibs.libX11
    xlibs.libxcb
    xlibs.libXi
    xlibs.libXcursor
    xlibs.libXdamage
    xlibs.libXrandr
    xlibs.libXcomposite
    xlibs.libXext
    xlibs.libXfixes
    xlibs.libXrender
    xlibs.libXtst
    xlibs.libXScrnSaver
    gnome2.GConf
    nss
    nspr
    alsaLib
    cups
    expat
    gcc-unwrapped
  ];
in {
  env = stdenv.mkDerivation {
    name = "env";
    buildInputs = deps;
    LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath deps;
  };
}

After this though, peruse fails to run:

$ ./peruse
       Log location: undefined
zsh: trace trap  ./peruse
happybeing commented 6 years ago

The Log location message is normal, so the clue is in the last message but I don't know what it means.