Skip to content

Instantly share code, notes, and snippets.

@alexozer
Created March 20, 2017 01:47
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 alexozer/cd8b48b3d5ca70e372a632ebf836cb16 to your computer and use it in GitHub Desktop.
Save alexozer/cd8b48b3d5ca70e372a632ebf836cb16 to your computer and use it in GitHub Desktop.
let nixos = import <nixpkgs> {}; in
let unstable = import <unstable> {}; in
let customPythonPackages = (pythonPackages: [
(let
pname = "nanomsg";
version = "1.0";
in
pythonPackages.buildPythonPackage rec {
name = "${pname}-${version}";
src = nixos.fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "843be41258219d9d319cf434a68cac7669834ab9c993ea4bab5b3d87f62a7a13";
};
buildInputs = [ nixos.pkgs.nanomsg ];
doCheck = false;
meta = {
description = "Python library for nanomsg which does not compromise on usability or performance.";
homepage = "https://github.com/tonysimpson/nanomsg-python";
};
})
]); in
nixos.stdenv.mkDerivation rec {
name = "cuauv-software";
enableParallelBuilding = true;
packageOverrides = pkgs: rec {
opencv3 = pkgs.opencv3.override {
enablePython = true;
};
};
buildInputs =
(with nixos; [
eigen
ncurses
gtest
boost
libdc1394
nanomsg
popt
pkgconfig
glfw
opencv3
libconfig
glm
gnome3.gtk
pkgs.opencv3.override { enablePython = true; }
]) ++ [
(nixos.python35.withPackages (pypkgs: with pypkgs; [
ipython
cython
pyserial
termcolor
watchdog
numpy
scipy
pyyaml
flask
tabulate
paramiko
tornado
opencv3
] ++ customPythonPackages nixos.python35Packages))
(nixos.python27.withPackages (pypkgs: with pypkgs; [
numpy
termcolor
gevent
systemd
redis
pycairo
pygobject3
eventlet
wxPython
eventlet
matplotlib
opencv3
sqlite3
pygame
] ++ customPythonPackages nixos.python27Packages))
(unstable.python27.withPackages (pypkgs: with pypkgs; [
posix_ipc
]))
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment