Skip to content

Update Nix integration #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,11 @@ After running the script to install system dependencies, build the project with

## Build on NixOS

The `shell.nix` provides an environment containing the necessary
The `stack.yaml` file describes a NixOS environment containing the necessary
dependencies. To build, run:

$ stack --nix build

or alternatively you can run

$ nix-shell

to enter the environment and build the project. Note, that it is an emulation
of common Linux environment rather than full-featured Nix package expression.
No exportable Nix package will appear, but local development is possible.

## Installation on CentOS

[Xiaokui Shu (@subbyte)](https://github.com/subbyte) maintains [separate instructions for installation on CentOS](https://github.com/subbyte/haskell-learn/blob/master/tensorflow_setup.md).
Expand Down
6 changes: 0 additions & 6 deletions nix/src.json

This file was deleted.

26 changes: 0 additions & 26 deletions nix/update

This file was deleted.

19 changes: 0 additions & 19 deletions shell.nix

This file was deleted.

4 changes: 3 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ extra-include-dirs:

nix:
enable: false
shell-file: shell.nix
# nixos-21.05 with libtensorflow 2.3.0
path: ["nixpkgs=https://github.com/NixOS/nixpkgs/archive/c7cb72b0cae397d311236d6773338efb4bd4f2d1.tar.gz"]
packages: [snappy, zlib, protobuf, python3Packages.tensorflow_2.libtensorflow]