Unverified Commit 7117c300 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

models-dev: 0-unstable-2026-01-24 -> 0-unstable-2026-01-30 (#485371)

parents 9ed2338a 2d59b75f
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -9,12 +9,12 @@
}:
let
  pname = "models-dev";
  version = "0-unstable-2026-01-24";
  version = "0-unstable-2026-01-30";
  src = fetchFromGitHub {
    owner = "anomalyco";
    repo = "models.dev";
    rev = "545bf83089a0d0bc4001b14c485270e10161cdd8";
    hash = "sha256-iby02kRswqBqBP1pQS7vMMsRTY7VLiccdd7aoanOURw=";
    rev = "8b2b4b40a1f10a27aa15a4de83a7cee6c2aa9b02";
    hash = "sha256-FtdPmJU3g9KNBDrxbFQR0Tx0cCmlNS48JSD9AUiB+7s=";
  };

  node_modules = stdenvNoCC.mkDerivation {
@@ -109,13 +109,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {

  meta = {
    description = "Comprehensive open-source database of AI model specifications, pricing, and capabilities";
    homepage = "https://github.com/anomalyco/models-dev";
    homepage = "https://github.com/anomalyco/models.dev";
    license = lib.licenses.mit;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ delafthi ];
    badPlatforms = [
      # error: Invalid DNS result order
      "x86_64-darwin"
    ];
  };
})
+10 −12
Original line number Diff line number Diff line
@@ -114,18 +114,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    runHook preInstall

    install -Dm755 dist/opencode-*/bin/opencode $out/bin/opencode
    install -Dm644 schema.json $out/share/opencode/schema.json

    runHook postInstall
  '';

  postInstall = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) ''
    installShellCompletion --cmd opencode \
      --bash <($out/bin/opencode completion) \
      --zsh <(SHELL=/bin/zsh $out/bin/opencode completion)
  '';

  postFixup = ''
    wrapProgram $out/bin/opencode \
     --prefix PATH : ${
       lib.makeBinPath (
@@ -137,6 +125,16 @@ stdenvNoCC.mkDerivation (finalAttrs: {
         ]
       )
     }

    install -Dm644 schema.json $out/share/opencode/schema.json

    runHook postInstall
  '';

  postInstall = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) ''
    installShellCompletion --cmd opencode \
      --bash <($out/bin/opencode completion) \
      --zsh <(SHELL=/bin/zsh $out/bin/opencode completion)
  '';

  nativeInstallCheckInputs = [