Skip to content

Commit

Permalink
nix.shell fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Aug 13, 2020
1 parent 1eb8804 commit 1e2a83c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nix.shell
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ let
setuptools_scm>=3.2.0
setuptools_scm_git_archive
pytest
pytest-cov
hypothesis
tox
'';
};

Expand All @@ -38,5 +40,12 @@ in
git
stdenv
ruststable
stdenv.cc.cc.lib
];

shellHook = ''
# workaround for https://github.com/NixOS/nixpkgs/blob/48dfc9fa97d762bce28cc8372a2dd3805d14c633/doc/languages-frameworks/python.section.md#python-setuppy-bdist_wheel-cannot-create-whl
export SOURCE_DATE_EPOCH=315532800 # 1980
export LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
'';
}

0 comments on commit 1e2a83c

Please sign in to comment.