Skip to content

Commit

Permalink
Merge pull request #499 from Kitware/nix-dev
Browse files Browse the repository at this point in the history
Add a shell.nix file to enable development on nixos/nix
  • Loading branch information
Roni Choudhury committed May 30, 2017
2 parents 58fa5ad + f91152b commit b3b635c
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{ pkgs ? import <nixpkgs> {} }:

with pkgs;

let libs = [
alsaLib
atk
cairo
cups
dbus
expat
fontconfig.lib
fontconfig.dev
gdk_pixbuf
glib
glibc
gnome3.gconf
gtk2
nspr
nss
pango
freetype
stdenv.cc.cc.lib
zlib
] ++ (with xorg; [
libX11
libxcb
libXcomposite
libXcursor
libXdamage
libXext
libXi
libXfixes
libXrandr
libXrender
libXScrnSaver
libXtst
]);
in stdenv.mkDerivation {
name = "candela";

buildInputs = [
electron
git
nodejs-7_x
pkgconfig
python2
] ++ libs;

C_INCLUDE_PATH = "${fontconfig.dev}/include";
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath libs;

shellHook = ''
echo "Candela nix dev environment"
'';
}

0 comments on commit b3b635c

Please sign in to comment.