···2424in buildPythonPackage {
2525 inherit version;
26262727- pname = "pytorch";
2828- # Don't forget to update pytorch to the same version.
2727+ pname = "torch";
2828+ # Don't forget to update torch to the same version.
29293030 format = "wheel";
3131
···11-# Warning: use the same CUDA version as pytorch-bin.
11+# Warning: use the same CUDA version as torch-bin.
22#
33# Precompiled wheels can be found at:
44# https://download.pytorch.org/whl/torch_stable.html
···120120 "LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH ";
121121122122in buildPythonPackage rec {
123123- pname = "pytorch";
124124- # Don't forget to update pytorch-bin to the same version.
123123+ pname = "torch";
124124+ # Don't forget to update torch-bin to the same version.
125125 version = "1.11.0";
126126 format = "setuptools";
127127
···77, isPy39
88, isPy310
99, python
1010-, pytorch-bin
1010+, torch-bin
1111, pythonOlder
1212, pythonAtLeast
1313}:
···2626 disabled = !(isPy37 || isPy38 || isPy39 || isPy310);
27272828 propagatedBuildInputs = [
2929- pytorch-bin
2929+ torch-bin
3030 ];
31313232 # The wheel-binary is not stripped to avoid the error of `ImportError: libtorch_cuda_cpp.so: ELF load command address/offset not properly aligned.`.
···3838 # Note: after patchelf'ing, libcudart can still not be found. However, this should
3939 # not be an issue, because PyTorch is loaded before torchvision and brings
4040 # in the necessary symbols.
4141- patchelf --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:${pytorch-bin}/${python.sitePackages}/torch/lib:" \
4141+ patchelf --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:${torch-bin}/${python.sitePackages}/torch/lib:" \
4242 "$out/${python.sitePackages}/torchaudio/_torchaudio.so"
4343 '';
4444
···11-# Warning: Need to update at the same time as pytorch-bin
11+# Warning: Need to update at the same time as torch-bin
22#
33# Precompiled wheels can be found at:
44# https://download.pytorch.org/whl/torch_stable.html
···99, patchelf
1010, pillow
1111, python
1212-, pytorch-bin
1212+, torch-bin
1313}:
14141515let
···34343535 propagatedBuildInputs = [
3636 pillow
3737- pytorch-bin
3737+ torch-bin
3838 ];
39394040 # The wheel-binary is not stripped to avoid the error of `ImportError: libtorch_cuda_cpp.so: ELF load command address/offset not properly aligned.`.
···4848 # Note: after patchelf'ing, libcudart can still not be found. However, this should
4949 # not be an issue, because PyTorch is loaded before torchvision and brings
5050 # in the necessary symbols.
5151- patchelf --set-rpath "${rpath}:${pytorch-bin}/${python.sitePackages}/torch/lib:" \
5151+ patchelf --set-rpath "${rpath}:${torch-bin}/${python.sitePackages}/torch/lib:" \
5252 "$out/${python.sitePackages}/torchvision/_C.so"
5353 '';
5454
···11-# Warning: use the same CUDA version as pytorch-bin.
11+# Warning: use the same CUDA version as torch-bin.
22#
33# Precompiled wheels can be found at:
44# https://download.pytorch.org/whl/torch_stable.html
···7788stdenv.mkDerivation rec {
99 pname = "adguardhome";
1010- version = "0.107.9";
1010+ version = "0.107.11";
1111 src = sources.${system} or (throw "Source for ${pname} is not available for ${system}");
12121313 installPhase = ''