From c99bd00cf9866f9ba65089e271642703f1055c96 Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Fri, 15 May 2026 13:39:18 -0700 Subject: [PATCH 1/7] nix flake --- flake.nix | 76 +++++++++++++++++++++++++++++++++++++++++++ latest_release.json | 79 +++++++++++++++++++++++++++++++++++++++++++++ update.sh | 2 ++ 3 files changed, 157 insertions(+) create mode 100644 flake.nix create mode 100644 latest_release.json create mode 100755 update.sh diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..50d99b9 --- /dev/null +++ b/flake.nix @@ -0,0 +1,76 @@ +{ + description = "llama.cpp CUDA binaries from ai-dock (Patched for NixOS)"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = + { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; # Required for CUDA + }; + latest_release = builtins.fromJSON (builtins.readFile ./latest_release.json); + release_asset = builtins.elemAt latest_release.assets 0; + version = latest_release.tag_name; + url = release_asset.browser_download_url; + sha256 = builtins.convertHash { + hash = release_asset.digest; + toHashFormat = "sri"; + hashAlgo = "sha256"; + }; + in + { + packages.default = pkgs.stdenv.mkDerivation { + pname = "aidock_llama-cpp-cuda"; + inherit version; + src = pkgs.fetchurl { inherit url sha256; }; + nativeBuildInputs = with pkgs; [ autoPatchelfHook ]; + buildInputs = with pkgs; [ + stdenv.cc.cc.lib + cudaPackages.cudatoolkit + cudaPackages.nccl + linuxPackages.nvidia_x11 + ]; + + appendRunpaths = [ + "/run/opengl-driver/lib" + "${pkgs.linuxPackages.nvidia_x11}/lib" + "$out/lib" + ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/bin $out/lib + find . -name "*.so*" -exec cp -vP {} $out/lib/ \; + find . -type f -executable \ + ! -name "*.so*" \ + ! -name "*.txt" \ + ! -name "*.md" \ + -exec cp -v {} $out/bin/ \; + [ "$(ls -A $out/bin)" ] || { echo "Error: No binaries found!"; exit 1; } + ''; + autoPatchelfIgnoreMissingDeps = false; + }; + devShells.default = pkgs.mkShell { + buildInputs = [ self.packages.${system}.default ]; + shellHook = '' + export LD_LIBRARY_PATH="/run/opengl-driver/lib:${pkgs.linuxPackages.nvidia_x11}/lib:$LD_LIBRARY_PATH" + echo "llama.cpp environment loaded." + echo "Available binaries:" + ls -p ${self.packages.${system}.default}/bin | grep -v / + ''; + }; + } + ); +} diff --git a/latest_release.json b/latest_release.json new file mode 100644 index 0000000..4c54dd5 --- /dev/null +++ b/latest_release.json @@ -0,0 +1,79 @@ +{ + "url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/323017361", + "assets_url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/323017361/assets", + "upload_url": "https://uploads.github.com/repos/ai-dock/llama.cpp-cuda/releases/323017361/assets{?name,label}", + "html_url": "https://github.com/ai-dock/llama.cpp-cuda/releases/tag/b9159", + "id": 323017361, + "author": { + "login": "github-actions[bot]", + "id": 41898282, + "node_id": "MDM6Qm90NDE4OTgyODI=", + "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-actions%5Bbot%5D", + "html_url": "https://github.com/apps/github-actions", + "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", + "type": "Bot", + "user_view_type": "public", + "site_admin": false + }, + "node_id": "RE_kwDOQHqNo84TQNqR", + "tag_name": "b9159", + "target_commitish": "main", + "name": "llama.cpp b9159 with CUDA", + "draft": false, + "immutable": false, + "prerelease": false, + "created_at": "2026-01-21T17:25:20Z", + "updated_at": "2026-05-15T04:48:43Z", + "published_at": "2026-05-15T04:48:36Z", + "assets": [ + { + "url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/assets/420740167", + "id": 420740167, + "node_id": "RA_kwDOQHqNo84ZE_xH", + "name": "llama.cpp-b9159-cuda-12.8.tar.gz", + "label": "", + "uploader": { + "login": "github-actions[bot]", + "id": 41898282, + "node_id": "MDM6Qm90NDE4OTgyODI=", + "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-actions%5Bbot%5D", + "html_url": "https://github.com/apps/github-actions", + "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", + "type": "Bot", + "user_view_type": "public", + "site_admin": false + }, + "content_type": "application/gzip", + "state": "uploaded", + "size": 159586401, + "digest": "sha256:66437c18bf7dffaad9ecd8fb1893afea9d8644e436bfbe947ed224b50fc0f2bd", + "download_count": 41, + "created_at": "2026-05-15T04:48:36Z", + "updated_at": "2026-05-15T04:48:43Z", + "browser_download_url": "https://github.com/ai-dock/llama.cpp-cuda/releases/download/b9159/llama.cpp-b9159-cuda-12.8.tar.gz" + } + ], + "tarball_url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/tarball/b9159", + "zipball_url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/zipball/b9159", + "body": "# llama.cpp b9159 with CUDA Support\n\nPre-built binaries of llama.cpp with CUDA support for multiple CUDA versions.\n\n**Source:** https://github.com/ggml-org/llama.cpp/releases/tag/b9159\n**Commit:** 5c0e9468378eba6bf3cc1989ff5d62fbbe4d9e3a\n\n## CUDA Versions\n- CUDA 12.8 - Architectures: 7.5, 8.0, 8.6, 8.9, 9.0, 10.0, 12.0\n\n## Architecture Reference\n- 7.5: Tesla T4, RTX 20xx series, Quadro RTX\n- 8.0: A100\n- 8.6: RTX 3000 series\n- 8.9: RTX 4000 series, L4, L40\n- 9.0: H100, H200\n- 10.0: B200\n- 12.0: RTX Pro series, RTX 50xx\n\n## Usage\nDownload the appropriate tarball for your CUDA version and extract:\n```bash\ntar -xzf llama.cpp-b9159-cuda-12.8.tar.gz\n./llama-cli --help\n```\n" +} diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..5aab1de --- /dev/null +++ b/update.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +curl -s https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/latest > latest_release.json From d8d13d9a69b9f878d509c20a70e90f96caefac11 Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Fri, 15 May 2026 13:42:37 -0700 Subject: [PATCH 2/7] script updates flake and removed printfs --- flake.nix | 3 --- latest_release.json | 2 +- update.sh | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 50d99b9..05a2f87 100644 --- a/flake.nix +++ b/flake.nix @@ -66,9 +66,6 @@ buildInputs = [ self.packages.${system}.default ]; shellHook = '' export LD_LIBRARY_PATH="/run/opengl-driver/lib:${pkgs.linuxPackages.nvidia_x11}/lib:$LD_LIBRARY_PATH" - echo "llama.cpp environment loaded." - echo "Available binaries:" - ls -p ${self.packages.${system}.default}/bin | grep -v / ''; }; } diff --git a/latest_release.json b/latest_release.json index 4c54dd5..c72ed21 100644 --- a/latest_release.json +++ b/latest_release.json @@ -67,7 +67,7 @@ "state": "uploaded", "size": 159586401, "digest": "sha256:66437c18bf7dffaad9ecd8fb1893afea9d8644e436bfbe947ed224b50fc0f2bd", - "download_count": 41, + "download_count": 45, "created_at": "2026-05-15T04:48:36Z", "updated_at": "2026-05-15T04:48:43Z", "browser_download_url": "https://github.com/ai-dock/llama.cpp-cuda/releases/download/b9159/llama.cpp-b9159-cuda-12.8.tar.gz" diff --git a/update.sh b/update.sh index 5aab1de..56e7b63 100755 --- a/update.sh +++ b/update.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash curl -s https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/latest > latest_release.json +nix flake update From 4becaf004890dcbfc26e98160beaad292af5dc21 Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Fri, 15 May 2026 14:12:26 -0700 Subject: [PATCH 3/7] needs lock file for flake referenced from repo --- flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..cd56566 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1778443072, + "narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} From 7c1c5924be39bdc78e5864800846305e41588bd9 Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Fri, 15 May 2026 14:52:26 -0700 Subject: [PATCH 4/7] trimmed release info --- flake.nix | 67 +++++++++++++++++++------------------ latest_release.json | 80 ++------------------------------------------- update.sh | 2 +- 3 files changed, 37 insertions(+), 112 deletions(-) diff --git a/flake.nix b/flake.nix index 05a2f87..0f35403 100644 --- a/flake.nix +++ b/flake.nix @@ -19,49 +19,48 @@ inherit system; config.allowUnfree = true; # Required for CUDA }; - latest_release = builtins.fromJSON (builtins.readFile ./latest_release.json); - release_asset = builtins.elemAt latest_release.assets 0; - version = latest_release.tag_name; - url = release_asset.browser_download_url; + release = builtins.fromJSON (builtins.readFile ./latest_release.json); sha256 = builtins.convertHash { - hash = release_asset.digest; + hash = release.hash; toHashFormat = "sri"; hashAlgo = "sha256"; }; in { - packages.default = pkgs.stdenv.mkDerivation { - pname = "aidock_llama-cpp-cuda"; - inherit version; - src = pkgs.fetchurl { inherit url sha256; }; - nativeBuildInputs = with pkgs; [ autoPatchelfHook ]; - buildInputs = with pkgs; [ - stdenv.cc.cc.lib - cudaPackages.cudatoolkit - cudaPackages.nccl - linuxPackages.nvidia_x11 - ]; + packages.default = + with release; + pkgs.stdenv.mkDerivation { + pname = "aidock_llama-cpp-cuda"; + inherit version; + src = pkgs.fetchurl { inherit url sha256; }; + nativeBuildInputs = with pkgs; [ autoPatchelfHook ]; + buildInputs = with pkgs; [ + stdenv.cc.cc.lib + cudaPackages.cudatoolkit + cudaPackages.nccl + linuxPackages.nvidia_x11 + ]; - appendRunpaths = [ - "/run/opengl-driver/lib" - "${pkgs.linuxPackages.nvidia_x11}/lib" - "$out/lib" - ]; + appendRunpaths = [ + "/run/opengl-driver/lib" + "${pkgs.linuxPackages.nvidia_x11}/lib" + "$out/lib" + ]; - sourceRoot = "."; + sourceRoot = "."; - installPhase = '' - mkdir -p $out/bin $out/lib - find . -name "*.so*" -exec cp -vP {} $out/lib/ \; - find . -type f -executable \ - ! -name "*.so*" \ - ! -name "*.txt" \ - ! -name "*.md" \ - -exec cp -v {} $out/bin/ \; - [ "$(ls -A $out/bin)" ] || { echo "Error: No binaries found!"; exit 1; } - ''; - autoPatchelfIgnoreMissingDeps = false; - }; + installPhase = '' + mkdir -p $out/bin $out/lib + find . -name "*.so*" -exec cp -vP {} $out/lib/ \; + find . -type f -executable \ + ! -name "*.so*" \ + ! -name "*.txt" \ + ! -name "*.md" \ + -exec cp -v {} $out/bin/ \; + [ "$(ls -A $out/bin)" ] || { echo "Error: No binaries found!"; exit 1; } + ''; + autoPatchelfIgnoreMissingDeps = false; + }; devShells.default = pkgs.mkShell { buildInputs = [ self.packages.${system}.default ]; shellHook = '' diff --git a/latest_release.json b/latest_release.json index c72ed21..fb08dce 100644 --- a/latest_release.json +++ b/latest_release.json @@ -1,79 +1,5 @@ { - "url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/323017361", - "assets_url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/323017361/assets", - "upload_url": "https://uploads.github.com/repos/ai-dock/llama.cpp-cuda/releases/323017361/assets{?name,label}", - "html_url": "https://github.com/ai-dock/llama.cpp-cuda/releases/tag/b9159", - "id": 323017361, - "author": { - "login": "github-actions[bot]", - "id": 41898282, - "node_id": "MDM6Qm90NDE4OTgyODI=", - "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/github-actions%5Bbot%5D", - "html_url": "https://github.com/apps/github-actions", - "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", - "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", - "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", - "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", - "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", - "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", - "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", - "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", - "type": "Bot", - "user_view_type": "public", - "site_admin": false - }, - "node_id": "RE_kwDOQHqNo84TQNqR", - "tag_name": "b9159", - "target_commitish": "main", - "name": "llama.cpp b9159 with CUDA", - "draft": false, - "immutable": false, - "prerelease": false, - "created_at": "2026-01-21T17:25:20Z", - "updated_at": "2026-05-15T04:48:43Z", - "published_at": "2026-05-15T04:48:36Z", - "assets": [ - { - "url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/assets/420740167", - "id": 420740167, - "node_id": "RA_kwDOQHqNo84ZE_xH", - "name": "llama.cpp-b9159-cuda-12.8.tar.gz", - "label": "", - "uploader": { - "login": "github-actions[bot]", - "id": 41898282, - "node_id": "MDM6Qm90NDE4OTgyODI=", - "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/github-actions%5Bbot%5D", - "html_url": "https://github.com/apps/github-actions", - "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", - "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", - "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", - "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", - "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", - "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", - "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", - "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", - "type": "Bot", - "user_view_type": "public", - "site_admin": false - }, - "content_type": "application/gzip", - "state": "uploaded", - "size": 159586401, - "digest": "sha256:66437c18bf7dffaad9ecd8fb1893afea9d8644e436bfbe947ed224b50fc0f2bd", - "download_count": 45, - "created_at": "2026-05-15T04:48:36Z", - "updated_at": "2026-05-15T04:48:43Z", - "browser_download_url": "https://github.com/ai-dock/llama.cpp-cuda/releases/download/b9159/llama.cpp-b9159-cuda-12.8.tar.gz" - } - ], - "tarball_url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/tarball/b9159", - "zipball_url": "https://api.github.com/repos/ai-dock/llama.cpp-cuda/zipball/b9159", - "body": "# llama.cpp b9159 with CUDA Support\n\nPre-built binaries of llama.cpp with CUDA support for multiple CUDA versions.\n\n**Source:** https://github.com/ggml-org/llama.cpp/releases/tag/b9159\n**Commit:** 5c0e9468378eba6bf3cc1989ff5d62fbbe4d9e3a\n\n## CUDA Versions\n- CUDA 12.8 - Architectures: 7.5, 8.0, 8.6, 8.9, 9.0, 10.0, 12.0\n\n## Architecture Reference\n- 7.5: Tesla T4, RTX 20xx series, Quadro RTX\n- 8.0: A100\n- 8.6: RTX 3000 series\n- 8.9: RTX 4000 series, L4, L40\n- 9.0: H100, H200\n- 10.0: B200\n- 12.0: RTX Pro series, RTX 50xx\n\n## Usage\nDownload the appropriate tarball for your CUDA version and extract:\n```bash\ntar -xzf llama.cpp-b9159-cuda-12.8.tar.gz\n./llama-cli --help\n```\n" + "version": "b9159", + "hash": "sha256:66437c18bf7dffaad9ecd8fb1893afea9d8644e436bfbe947ed224b50fc0f2bd", + "url": "https://github.com/ai-dock/llama.cpp-cuda/releases/download/b9159/llama.cpp-b9159-cuda-12.8.tar.gz" } diff --git a/update.sh b/update.sh index 56e7b63..2586699 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -curl -s https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/latest > latest_release.json +curl -s https://api.github.com/repos/ai-dock/llama.cpp-cuda/releases/latest | jq '{version:(.tag_name),hash:(.assets[0].digest),url:(.assets[0].browser_download_url)}' > latest_release.json nix flake update From cac8686074a397f75180a6f589643267453333e3 Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Fri, 15 May 2026 15:14:40 -0700 Subject: [PATCH 5/7] github action to update flake assets on release --- .github/workflows/update_release.yaml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/update_release.yaml diff --git a/.github/workflows/update_release.yaml b/.github/workflows/update_release.yaml new file mode 100644 index 0000000..8ddb708 --- /dev/null +++ b/.github/workflows/update_release.yaml @@ -0,0 +1,38 @@ + +name: Update Flake assets on Release + +on: + release: + types: [published] # Triggers when a release is fully published + +permissions: + contents: write # Required to push commits back to the repo + +jobs: + update-sources: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: true + + - name: Run update script + run: | + git checkout ${{github.ref_name}} + chmod +x ./update.sh + ./update.sh + + - name: Commit and push changes + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply" + + # Only commit if sources.json actually changed + if ! git diff --exit-code .; then + git add . + git commit -m "chore: update nix flake assets for ${{ github.event.release.tag_name }}" + git push origin ${{github.ref_name}} + else + echo "No changes detected in sources.json" + fi From 120141ef6a8f97fc81856b7c387e740111609211 Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Fri, 15 May 2026 15:43:51 -0700 Subject: [PATCH 6/7] use pure flake repo for file reference --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0f35403..6b559ad 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ inherit system; config.allowUnfree = true; # Required for CUDA }; - release = builtins.fromJSON (builtins.readFile ./latest_release.json); + release = builtins.fromJSON (builtins.readFile "${self}/latest_release.json"); sha256 = builtins.convertHash { hash = release.hash; toHashFormat = "sri"; From a2d5feaac5e8da6521d09058498c8d514e30fb0b Mon Sep 17 00:00:00 2001 From: JL <2975567+JL2718@users.noreply.github.com> Date: Sat, 16 May 2026 16:35:40 -0700 Subject: [PATCH 7/7] updated latest release --- flake.lock | 6 +++--- latest_release.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index cd56566..62ec88a 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1778443072, - "narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=", + "lastModified": 1778869304, + "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32", + "rev": "d233902339c02a9c334e7e593de68855ad26c4cb", "type": "github" }, "original": { diff --git a/latest_release.json b/latest_release.json index fb08dce..678ae71 100644 --- a/latest_release.json +++ b/latest_release.json @@ -1,5 +1,5 @@ { - "version": "b9159", - "hash": "sha256:66437c18bf7dffaad9ecd8fb1893afea9d8644e436bfbe947ed224b50fc0f2bd", - "url": "https://github.com/ai-dock/llama.cpp-cuda/releases/download/b9159/llama.cpp-b9159-cuda-12.8.tar.gz" + "version": "b9190", + "hash": "sha256:988920b5fb99250861577bd38a5ee639ff051183ce22cab170001208ae8f481b", + "url": "https://github.com/ai-dock/llama.cpp-cuda/releases/download/b9190/llama.cpp-b9190-cuda-12.8.tar.gz" }