-
Notifications
You must be signed in to change notification settings - Fork 196
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
Nix build #277
base: master
Are you sure you want to change the base?
Nix build #277
Conversation
fix permissions
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
cp -r $src/* . | ||
|
||
chmod -R +rwx ./third_party | ||
cp -r ${tensorflowSubModule} ./third_party/tensorflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I don't see a good option to get Nix accepting the submodules, it would be nice to use prev.libtensorflow.src
instead tensorflowSubModule
, so that the correct version also used in nixpkgs is provided. libtensorflow-2.9.1 from current nixpkgs gives compilation errors, however.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no opinion about this as I don't understand Nix enough and we have no CI around that. Fix it to your liking?
@sheepforce While I support this work, note that the Tensorflow Haskell bindings have had regular Nix packages for a long time. The current version has a blocking issue though: |
Yes, I am aware :) However, it is marked broken since a long time and does not actually build. I saw your PR attempting to fix it NixOS/nixpkgs#119411
Could this also be caused by the Tensorflow version mismatch between nixpkgs and the tensorflow submodule here with |
That's incorrect. It refers to github revision 568c9b6, which is pretty close to HEAD. Updating to HEAD is "just" a matter of resolving the above PR.
It's not out of the question, and that's what I looked for, too. However in testing I was pretty careful making sure the versions match. |
You are completely right, saw it in the PR. I've got confused by the version in nixpkgs being labelled 0.1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(approving to launch kokoro)
@sheepforce The |
Currently the Haskell bindings are a little bit difficult to access with Nix. This is some work to build the tensorflow bindings with Nix and provide an overlay via a Nix flake that allows to use the Haskell packages of this repo via an overlay in other Nix projects.
shell.nix
default.nix
In the tensorflow-core-ops build I am getting:
and I assume this is caused by having tensorflow-2.9.1 in nixpkgs but using some 2.3ish version as the submodule from which
c_api.h
is imported.Using tensorflow-2.9.1 as a submodule makes things worse, unfortunately.