Compare commits

..

4 commits

Author SHA1 Message Date
93e2f02688
Use rustPlatform as parameter to package 2025-03-31 16:02:01 +02:00
2c70628874
Make nix formatter happy 2025-03-31 15:33:45 +02:00
9bc4a75ad3
Add CI job for checking dependencies 2025-03-31 21:03:40 +08:00
3d8b11d6a6
Move to buildRustPackage instead of crane
* Also disable Codeforces module by default
2025-03-31 21:03:26 +08:00
3 changed files with 5 additions and 11 deletions

View file

@ -72,10 +72,6 @@ jobs:
- uses: cachix/install-nix-action@v27 - uses: cachix/install-nix-action@v27
with: with:
github_access_token: ${{ secrets.GITHUB_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: natsukagami
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build dependencies - name: Build dependencies
run: nix build .#youmubot.cargoDeps --option substituters "https://cache.nixos.org" --option extra-substituters "" run: nix build .#youmubot.cargoDeps --option substituters "https://cache.nixos.org" --option extra-substituters ""
build: build:
@ -91,7 +87,5 @@ jobs:
name: natsukagami name: natsukagami
# If you chose API tokens for write access OR if you have a private cache # If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Check cargoDeps
run: nix build .#youmubot.cargoDeps
- name: Run nix build - name: Run nix build
run: nix build run: nix build

View file

@ -1,4 +1,4 @@
{ pkgs { rustPlatform
, lib , lib
, stdenv , stdenv
, pkg-config , pkg-config
@ -11,7 +11,7 @@
let let
customizeFeatures = !(enableCodeforces && enableOsu); customizeFeatures = !(enableCodeforces && enableOsu);
in in
pkgs.rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
pname = "youmubot"; pname = "youmubot";
version = "0.1.0"; version = "0.1.0";