Skip to content

Instantly share code, notes, and snippets.

@jluttine
Last active January 28, 2020 19:27
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 jluttine/11e582f5f9d626254f17e726f7ccdd1f to your computer and use it in GitHub Desktop.
Save jluttine/11e582f5f9d626254f17e726f7ccdd1f to your computer and use it in GitHub Desktop.
my shell.nix for haskpy
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
];
}
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