Created
November 19, 2015 19:04
-
-
Save fooblahblah/0ec3f214e127b7bf01d2 to your computer and use it in GitHub Desktop.
Nix JS shell template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; let | |
runtimeLibs = [ dbus glib gnome.gtk gnome.pango atk cairo freetype fontconfig gdk_pixbuf | |
xorg.libX11 xorg.libXrandr xorg.libXext xorg.libXi xorg.libXcursor xorg.libXfixes | |
xorg.libXrender xorg.libXcomposite xorg.libXdamage xorg.libXtst | |
gnome.GConf nss nspr alsaLib cups expat libcap systemd ]; | |
libPaths = map (x: ":${x}/lib") runtimeLibs; | |
in rec { | |
N1Env = stdenv.mkDerivation { | |
name = "N1"; | |
buildInputs = [ stdenv cmake pkgconfig libgnome_keyring nodejs python ]; | |
LD_LIBRARY_PATH="${stdenv.cc.cc}/lib" + lib.foldl (x: y: x + y) "" libPaths; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment