Unverified Commit 72296a5f authored by Pavol Rusnak's avatar Pavol Rusnak Committed by GitHub
Browse files

ollama: 0.5.11 -> 0.5.12 (#385055)

parents fea63d44 667e5f32
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -44,17 +44,17 @@ assert builtins.elem acceleration [
let
  pname = "ollama";
  # don't forget to invalidate all hashes each update
  version = "0.5.11";
  version = "0.5.12";

  src = fetchFromGitHub {
    owner = "ollama";
    repo = "ollama";
    tag = "v${version}";
    hash = "sha256-Yc/FwIoPvzYSxlrhjkc6xFL5iCunDYmZkG16MiWVZck=";
    hash = "sha256-le3OeGC/rddY9NNgmO7YcFthsZSQiO+gGSkpcV+TNXo=";
    fetchSubmodules = true;
  };

  vendorHash = "sha256-wtmtuwuu+rcfXsyte1C4YLQA4pnjqqxFmH1H18Fw75g=";
  vendorHash = "sha256-ON9ow9/KglBy+RKNhw1n3E5AJtpjPQvJwNAQTaWzEFA=";

  validateFallback = lib.warnIf (config.rocmSupport && config.cudaSupport) (lib.concatStrings [
    "both `nixpkgs.config.rocmSupport` and `nixpkgs.config.cudaSupport` are enabled, "
@@ -173,15 +173,6 @@ goBuild {
    ++ lib.optionals enableCuda cudaLibs
    ++ lib.optionals stdenv.hostPlatform.isDarwin metalFrameworks;

  patches = [
    # don't try to build x86_64 architectures on linux-aarch64
    # NOTE: should be removed after 0.5.11
    (fetchpatch {
      url = "https://github.com/ollama/ollama/commit/08a299e1d0636056b09d669f9aa347139cde6ec0.patch";
      hash = "sha256-PC9jQklPAN/ZdHlQEQ6/RweGGBiUPDehHyaboX0tRZk=";
    })
  ];

  # replace inaccurate version number with actual release version
  postPatch = ''
    substituteInPlace version/version.go \