Skip to content

Instantly share code, notes, and snippets.

@fooblahblah
Created November 19, 2015 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fooblahblah/0ec3f214e127b7bf01d2 to your computer and use it in GitHub Desktop.
Save fooblahblah/0ec3f214e127b7bf01d2 to your computer and use it in GitHub Desktop.
Nix JS shell template
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