2020-04-24 23:36:52 +00:00
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
|
|
self: super:
|
|
|
|
let
|
|
|
|
# This contains updates to the dependencies, without which it would
|
|
|
|
# be even more work to get it to build.
|
|
|
|
# As of 2020-04, there's no new release in sight, which is why we're
|
|
|
|
# pulling from Github.
|
|
|
|
tensorflow-haskell = pkgs.fetchFromGitHub {
|
|
|
|
owner = "tensorflow";
|
|
|
|
repo = "haskell";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "555d90c43202d5a3021893013bfc8e2ffff58c97";
|
|
|
|
sha256 = "uOuIeD4o+pcjvluTqyVU3GJUQ4e1+p3FhINJ9b6oK+k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
setTensorflowSourceRoot = dir: drv:
|
2021-12-06 16:07:01 +00:00
|
|
|
(overrideCabal (drv: { src = tensorflow-haskell; }) drv)
|
2020-04-24 23:36:52 +00:00
|
|
|
.overrideAttrs (_oldAttrs: {sourceRoot = "source/${dir}";});
|
|
|
|
in
|
|
|
|
{
|
2020-06-02 18:00:15 +00:00
|
|
|
tensorflow-proto = doJailbreak (setTensorflowSourceRoot "tensorflow-proto" super.tensorflow-proto);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
tensorflow = overrideCabal
|
|
|
|
(drv: { libraryHaskellDepends = drv.libraryHaskellDepends ++ [self.vector-split]; })
|
|
|
|
(setTensorflowSourceRoot "tensorflow" super.tensorflow);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
tensorflow-core-ops = setTensorflowSourceRoot "tensorflow-core-ops" super.tensorflow-core-ops;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
tensorflow-logging = setTensorflowSourceRoot "tensorflow-logging" super.tensorflow-logging;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
tensorflow-opgen = setTensorflowSourceRoot "tensorflow-opgen" super.tensorflow-opgen;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
tensorflow-ops = setTensorflowSourceRoot "tensorflow-ops" super.tensorflow-ops;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|