Skip to content

Instantly share code, notes, and snippets.

@tbenst
Last active May 17, 2019 19:35
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 tbenst/47ca22c136795cde28603b673a69d80a to your computer and use it in GitHub Desktop.
Save tbenst/47ca22c136795cde28603b673a69d80a to your computer and use it in GitHub Desktop.
error: undefined variable 'nbdime'
[
/* local pkg (can delete after in upstream)*/
(self: super: {
})
/* configure pkg */
(self: super: {
pythonOverrides = python-self: python-super: {
magma = python-super.callPackage /Computer/packages/magma.nix { };
pytorch = python-super.callPackage /Computer/packages/pytorch.nix { };
jsonschema = python-super.callPackage /Computer/packages/jsonschema.nix { };
nbdime = python-super.callPackage /Computer/packages/nbdime.nix { };
};
firefox = super.firefox.override {
enableAdobeFlash = true;
};
numpy = super.numpy.overridePythonAttrs (old: {
blas = self.mkl;
});
pytorch = super.pytorch.overridePythonAttrs
(old: {
cudaSupport = true;
cudatoolkit = self.cudatoolkit_10;
});
tensorflow = super.tensorflow.overridePythonAttrs
(old: { cudaSupport = true; });
opencv3 = super.opencv3.override {
enableCuda = true;
enableFfmpeg = true;
};
})
]
{pkgs, ...}:
let
python = (pkgs.python37.override {packageOverrides = pkgs.pythonOverrides;}).withPackages (ps: with ps; [
setuptools
click
h5py
ipython
matplotlib
moviepy
nbdime
numpy
opencv3
pandas
pytorch
pyyaml
requests
scikitimage
scikitlearn
scipy
tqdm
tensorflow
wheel
]);
in
{
home.packages = [
python
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment