ocamlPackages.torch: patch for pytorch 2.0.0 compatibility
This commit is contained in:
parent
9b5fb1838d
commit
91f2495726
|
@ -2,6 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildDunePackage
|
, buildDunePackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, cmdliner
|
, cmdliner
|
||||||
, ctypes
|
, ctypes
|
||||||
, dune-configurator
|
, dune-configurator
|
||||||
|
@ -24,11 +25,19 @@ buildDunePackage rec {
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LaurentMazare";
|
owner = "LaurentMazare";
|
||||||
repo = "ocaml-${pname}";
|
repo = "ocaml-${pname}";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-z/9NUBjeFWE63Z/e8OyzDiy8hrn6qzjaiBH8G9MPeos=";
|
hash = "sha256-z/9NUBjeFWE63Z/e8OyzDiy8hrn6qzjaiBH8G9MPeos=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Pytorch 2.0 support. Drop when it reaches a release
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/LaurentMazare/ocaml-torch/commit/ef7ef30cafecb09e45ec1ed8ce4bedae5947cfa5.patch";
|
||||||
|
hash = "sha256-smdwKy40iIISp/25L2J4az6KmqFS1soeChBElUyhl5A=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ dune-configurator ];
|
buildInputs = [ dune-configurator ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
Loading…
Reference in a new issue