File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ use nix
Original file line number Diff line number Diff line change 1+ with import <nixpkgs> { } ;
2+ let
3+ mozillaOverlay = fetchFromGitHub {
4+ owner = "mozilla" ;
5+ repo = "nixpkgs-mozilla" ;
6+ rev = "9f35c4b09fd44a77227e79ff0c1b4b6a69dff533" ;
7+ sha256 = "18h0nvh55b5an4gmlgfbvwbyqj91bklf1zymis6lbdh75571qaz0" ;
8+ } ;
9+ rustNightly =
10+ with import "${ mozillaOverlay . out } /rust-overlay.nix" pkgs pkgs ;
11+ ( rustChannelOf { date = "2019-02-07" ; channel = "nightly" ; } ) . rust ;
12+ in stdenv . mkDerivation rec {
13+ name = "toponn-env" ;
14+ env = buildEnv { name = name ; paths = buildInputs ; } ;
15+
16+ nativeBuildInputs = [
17+ pkgconfig
18+ pyo3-pack
19+ python3
20+ rustNightly
21+ ] ;
22+
23+ propagatedBuildInputs = [
24+ python3Packages . numpy
25+ ] ;
26+
27+ buildInputs = [
28+ curl
29+ libtensorflow
30+ openssl
31+ ] ++ lib . optional stdenv . isDarwin darwin . apple_sdk . frameworks . Security ;
32+
33+ shellHook = ''
34+ ${ python3 } /bin/python -m venv venv
35+ source venv/bin/activate
36+ '' ;
37+ }
You can’t perform that action at this time.
0 commit comments