Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ~/nix-expressions/nixpkgs has a clone from nixpkgs github
- { pkgs ? (import /home/lfish/nix-expressions/nixpkgs {} ) }:
- with pkgs;
- let
- wrapped-opencv = python-packages: with python-packages;
- toPythonModule (opencv3.override {
- enablePython = true;
- pythonPackages = python-packages;
- });
- my-python-packages = python-packages: with python-packages; [
- requests
- imutils
- numpy
- scipy
- matplotlib
- pyserial
- flask
- (wrapped-opencv python-packages)
- virtualenvwrapper
- ];
- python-with-my-packages = python35.withPackages my-python-packages;
- in stdenv.mkDerivation rec {
- name = "env";
- # Mandatory boilerplate for buildable env
- env = buildEnv { name = name; paths = buildInputs; };
- builder = builtins.toFile "builder.sh" ''
- source $stdenv/setup; ln -s $env $out
- '';
- # Customizable development requirements
- buildInputs = [
- python-with-my-packages
- #my emacs configuration
- (import /home/lfish/.emacs.d/emacs.nix {})
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement