4 changed files with 54 additions and 11 deletions
			
			
		@ -1,21 +1,25 @@
					 | 
				
			||||
{ config, pkgs, ... }: | 
				
			||||
{ | 
				
			||||
  environment = {  | 
				
			||||
  environment = { | 
				
			||||
    variables = { | 
				
			||||
      EDITOR = "nvim"; | 
				
			||||
    }; | 
				
			||||
 | 
				
			||||
    systemPackages = with pkgs; [ | 
				
			||||
      bar-xft                 # Lightweight xcb based bar | 
				
			||||
      cabal-install           # Haskell package installer | 
				
			||||
      curl                    # Tool for general HTTP, FTP, etc work  | 
				
			||||
      ghc                     # Haskell Compiler | 
				
			||||
      git                     # Source control | 
				
			||||
      neovim                  # Better vim | 
				
			||||
      python3                 # Python 3 | 
				
			||||
      silver-searcher         # Better than grep | 
				
			||||
      vim                     # Regular ole' vim | 
				
			||||
      wget                    # Standard GNU package for HTTP, FTP, etc file retrieval | 
				
			||||
      bar-xft                     # Lightweight xcb based bar | 
				
			||||
      cabal-install               # Haskell package installer | 
				
			||||
      curl                        # Tool for general HTTP, FTP, etc work | 
				
			||||
      freetype                    # Library to render fonts required by some packages | 
				
			||||
      gcc                         # GNU Compiler Collection | 
				
			||||
      ghc                         # Haskell compiler | 
				
			||||
      git                         # Source control | 
				
			||||
      libpng                      # PNG library | 
				
			||||
      neovim                      # Better vim | 
				
			||||
      python3                     # Python 3 | 
				
			||||
      python34Packages.setuptools # Python setuptools | 
				
			||||
      silver-searcher             # Better than grep | 
				
			||||
      vim                         # Regular ole' vim | 
				
			||||
      wget                        # Standard GNU package for HTTP, FTP, etc file retrieval | 
				
			||||
    ]; | 
				
			||||
  }; | 
				
			||||
} | 
				
			||||
					 | 
				
			||||
@ -0,0 +1,37 @@
					 | 
				
			||||
#A quick-and-dirty environment for nix-shell that gets you started with python34, pip, and virtualenv. | 
				
			||||
# Simply run nix-shell with the directory that has this file in it to drop into a shell with everything | 
				
			||||
# you need. | 
				
			||||
 | 
				
			||||
with import <nixpkgs> {}; | 
				
			||||
with pkgs.python3Packages; | 
				
			||||
 | 
				
			||||
buildPythonPackage { | 
				
			||||
  name = "pythonEnv"; | 
				
			||||
  buildInputs = [ | 
				
			||||
      freetype | 
				
			||||
      git                           # Source control | 
				
			||||
      atlas                         # ATLAS | 
				
			||||
      blas                          # BLAS | 
				
			||||
      libxml2                       # XML2 library | 
				
			||||
      libxslt                       # XLST library | 
				
			||||
      libzip                        # Zip library | 
				
			||||
      liblapack                     # Linear Algebra pack library | 
				
			||||
      libpng                        # PNG library | 
				
			||||
      pkgconfig | 
				
			||||
      python3 | 
				
			||||
      python3Packages.virtualenv | 
				
			||||
      python3Packages.setuptools | 
				
			||||
      stdenv | 
				
			||||
      zlib ]; | 
				
			||||
  src = null; | 
				
			||||
  # When used as `nix-shell --pure` | 
				
			||||
  shellHook = '' | 
				
			||||
  unset http_proxy | 
				
			||||
  export GIT_SSL_CAINFO=/etc/ssl/certs/ca-bundle.crt | 
				
			||||
  ''; | 
				
			||||
  # used when building environments | 
				
			||||
  extraCmds = '' | 
				
			||||
  unset http_proxy # otherwise downloads will fail ("nodtd.invalid") | 
				
			||||
  export GIT_SSL_CAINFO=/etc/ssl/certs/ca-bundle.crt | 
				
			||||
  ''; | 
				
			||||
} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue