From 6fd9d41d5d81ffb2d1cb726ebdcb3e8f16e3d549 Mon Sep 17 00:00:00 2001 From: TornaxO7 Date: Thu, 11 Apr 2024 22:16:51 +0200 Subject: [PATCH] fix devshell --- .github/workflows/flake-lock-updater.yaml | 24 +++++++++++++++++++++++ flake.nix | 10 +++------- 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/flake-lock-updater.yaml diff --git a/.github/workflows/flake-lock-updater.yaml b/.github/workflows/flake-lock-updater.yaml new file mode 100644 index 0000000..11ba54e --- /dev/null +++ b/.github/workflows/flake-lock-updater.yaml @@ -0,0 +1,24 @@ +name: update-flake-lock +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - uses: TornaxO7/rust-template@v1-ci-actions + - name: Update flake.lock + id: update-flake-lock + run: nix flake update + - name: Commit updated flake.lock + if: | + steps.update-flake-lock.outputs.modified == 'true' && + github.event.pull_request.head.repo.full_name == github.repository + run: | + git config --global user.name 'Github Actions' + git config --global user.email '<>' + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} + git commit -am "Automated formatting" + git push \ No newline at end of file diff --git a/flake.nix b/flake.nix index a784713..6ed7b13 100644 --- a/flake.nix +++ b/flake.nix @@ -26,13 +26,9 @@ let rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; in - pkgs.mkShell.override - { - stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv; - } - { - packages = [ rust-toolchain ]; - }; + pkgs.mkShell { + packages = [ rust-toolchain ]; + }; }; }; }