From 9afb9a9a32b4af259ccfbff3f06d217d3292bde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Mon, 28 Jul 2025 18:50:56 +0200 Subject: [PATCH 1/3] Added GitHub action step to build the Nix derivation --- .github/workflows/build.yml | 16 ++++++++++++++-- .gitignore | 3 +++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06464af..871e86d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,11 @@ -name: debug_build +name: build on: workflow_run: workflows: ["Test Workflow"] types: - completed jobs: - debug_build: + build: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest @@ -29,3 +29,15 @@ jobs: name: fastanime_debug_build path: | dist + + - name: Install nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Use GitHub Action built-in cache + uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Nix Flake check (evaluation + tests) + run: nix flake check + + - name: Build the nix derivation + run: nix build diff --git a/.gitignore b/.gitignore index 2660c5d..f9af1fd 100644 --- a/.gitignore +++ b/.gitignore @@ -209,3 +209,6 @@ __marimo__/ # custom repomix-output.xml .project/ + +# Nix artifact +result From 7bd7ddecae5fcf31b46bac5fed819981222e8370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Mon, 28 Jul 2025 19:06:51 +0200 Subject: [PATCH 2/3] Added a envrc file to use nix via direnv --- .envrc | 1 + .gitignore | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index f9af1fd..1c100d2 100644 --- a/.gitignore +++ b/.gitignore @@ -136,7 +136,6 @@ celerybeat.pid # Environments .env -.envrc .venv env/ venv/ @@ -209,6 +208,5 @@ __marimo__/ # custom repomix-output.xml .project/ - -# Nix artifact result +.direnv From 985e7fee18afa31823e8e0c17c265a3d23c4a9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Mon, 28 Jul 2025 19:08:21 +0200 Subject: [PATCH 3/3] Removed shell.nix --- shell.nix | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 shell.nix diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 5c2fc35..0000000 --- a/shell.nix +++ /dev/null @@ -1,19 +0,0 @@ -let - pkgs = import { }; -in -pkgs.mkShell { - packages = [ - (pkgs.python3.withPackages (python-pkgs: [ - python-pkgs.yt-dlp - python-pkgs.dbus-python - python-pkgs.requests - python-pkgs.rich - python-pkgs.click - python-pkgs.inquirerpy - python-pkgs.mpv - python-pkgs.fastapi - python-pkgs.thefuzz - python-pkgs.plyer - ])) - ]; -}