Last active
January 28, 2020 19:27
-
-
Save jluttine/11e582f5f9d626254f17e726f7ccdd1f to your computer and use it in GitHub Desktop.
my shell.nix for haskpy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
haskpy = ps: ps.buildPythonPackage rec { | |
name = "haskpy"; | |
doCheck = false; | |
src = ./.; | |
propagatedBuildInputs = with ps; [ | |
attrs | |
]; | |
}; | |
pythonEnv = pkgs.python3.withPackages (ps: with ps; [ | |
(haskpy ps) | |
ipython | |
pytest | |
pip | |
versioneer | |
twine | |
sphinx | |
attrs | |
hypothesis | |
toolz | |
cytoolz | |
]); | |
in pkgs.mkShell { | |
buildInputs = [ | |
pythonEnv | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
pythonPackages = pkgs.python3Packages; | |
in pythonPackages.buildPythonPackage rec { | |
name = "haskpy"; | |
doCheck = false; | |
src = ./.; | |
propagatedBuildInputs = with pythonPackages; [ | |
ipython | |
pytest | |
pip | |
versioneer | |
twine | |
sphinx | |
]; | |
buildInputs = with pythonPackages; [ | |
attrs | |
hypothesis | |
toolz | |
cytoolz | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment