mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-21 01:38:55 +00:00
Compare commits
5 commits
93e2f02688
...
d92ec47002
Author | SHA1 | Date | |
---|---|---|---|
d92ec47002 | |||
ba815a877d | |||
d29b759fc4 | |||
bea8db2536 | |||
e6e699014e |
3 changed files with 11 additions and 5 deletions
6
.github/workflows/build_test.yml
vendored
6
.github/workflows/build_test.yml
vendored
|
@ -72,6 +72,10 @@ 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:
|
||||||
|
@ -87,5 +91,7 @@ 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
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
packages.youmubot = pkgs.callPackage ./package.nix { };
|
packages.youmubot = pkgs.callPackage ./package.nix {};
|
||||||
|
|
||||||
defaultPackage = packages.youmubot;
|
defaultPackage = packages.youmubot;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
youmubot = final.callPackage ./package.nix { };
|
youmubot = final.callPackage ./package.nix {};
|
||||||
};
|
};
|
||||||
# module
|
# module
|
||||||
nixosModules.default = import ./module.nix;
|
nixosModules.default = import ./module.nix;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ rustPlatform
|
{ pkgs
|
||||||
, lib
|
, lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
let
|
let
|
||||||
customizeFeatures = !(enableCodeforces && enableOsu);
|
customizeFeatures = !(enableCodeforces && enableOsu);
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage {
|
pkgs.rustPlatform.buildRustPackage {
|
||||||
pname = "youmubot";
|
pname = "youmubot";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ rustPlatform.buildRustPackage {
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = ./Cargo.lock;
|
lockFile = ./Cargo.lock;
|
||||||
outputHashes = {
|
outputHashes = {
|
||||||
"poise-0.6.1" = "sha256-44pPe02JJ97GEpzAXdQmDq/9bb4KS9G7ZFVlBRC6EYs=";
|
"poise-0.6.1" = "sha256-44pPe02JJ97GEpzAXdQmDq/9bb4KS9G7ZFVlBRC6EYs=";
|
||||||
"rosu-v2-0.9.0" = "sha256-dx0EwqqgkLaHwCPHyn5vMkhZ2NZcahH5SACFcsJKP1E=";
|
"rosu-v2-0.9.0" = "sha256-dx0EwqqgkLaHwCPHyn5vMkhZ2NZcahH5SACFcsJKP1E=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue