Skip to content

Instantly share code, notes, and snippets.

@BenSchZA
Created August 18, 2020 08:23
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 BenSchZA/67f2431fa8eb6f5fa01ac2022a33dead to your computer and use it in GitHub Desktop.
Save BenSchZA/67f2431fa8eb6f5fa01ac2022a33dead to your computer and use it in GitHub Desktop.
Nix derivation for Python Jupyter environment
with import <nixpkgs> { };
(let
cadCAD = pkgs.callPackage ./cadCAD.nix { inherit (pkgs) ; };
python = pkgs.python38.override {
packageOverrides = python-self: python-super: {
buildPythonPackage = python-super.buildPythonPackage.overridePythonAttrs
(oldAttrs: { doCheck = !pkgs.stdenv.isDarwin; });
};
};
in python.withPackages
(ps: with ps; [ cadCAD jupyter notebook setuptools ])).env
@BenSchZA
Copy link
Author

error: value is a function while a set was expected, at shell.nix:7:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment