mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
fmt
This commit is contained in:
parent
705d6c58e8
commit
4c876ae69c
6 changed files with 83 additions and 82 deletions
13
archiver.nix
13
archiver.nix
|
|
@ -1,10 +1,9 @@
|
|||
{ rustPlatform
|
||||
, openssl
|
||||
, pkg-config
|
||||
, lib
|
||||
,
|
||||
}:
|
||||
let
|
||||
{
|
||||
rustPlatform,
|
||||
openssl,
|
||||
pkg-config,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ./. ["Cargo.*" "((types|archiver|)/?(src)?)(/.*)?" "README.md"];
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ Historical team membership data
|
|||
|
||||
Match data.
|
||||
|
||||
Due to limitations of the data available on ugc, the asia region is currently not included.
|
||||
Due to limitations of the data available on ugc, the asia region is currently
|
||||
not included.
|
||||
|
||||
#### Sample
|
||||
|
||||
|
|
|
|||
16
flake.nix
16
flake.nix
|
|
@ -10,24 +10,26 @@
|
|||
inputs.flakelight.follows = "flakelight";
|
||||
};
|
||||
};
|
||||
outputs = { mill-scale, ... }: mill-scale ./. {
|
||||
outputs = {mill-scale, ...}:
|
||||
mill-scale ./. {
|
||||
extraFilesRegex = [".*\.html"];
|
||||
withOverlays = [(import ./overlay.nix)];
|
||||
packages = {
|
||||
ugc-api-server = pkgs: pkgs.ugc-api-server;
|
||||
ugc-api-archiver = pkgs: pkgs.ugc-api-archiver;
|
||||
};
|
||||
tools = pkgs: with pkgs; [
|
||||
tools = pkgs:
|
||||
with pkgs; [
|
||||
bacon
|
||||
cargo-insta
|
||||
sqlx-cli
|
||||
];
|
||||
nixosModules = {outputs, ...}: {
|
||||
default =
|
||||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, ...
|
||||
default = {
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./module.nix];
|
||||
config = lib.mkIf config.services.ugc-api-server.enable {
|
||||
|
|
|
|||
12
module.nix
12
module.nix
|
|
@ -1,12 +1,12 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.services.ugc-api-server;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.services.ugc-api-server = {
|
||||
enable = mkEnableOption "ugc api server";
|
||||
|
||||
|
|
|
|||
13
package.nix
13
package.nix
|
|
@ -1,10 +1,9 @@
|
|||
{ rustPlatform
|
||||
, openssl
|
||||
, pkg-config
|
||||
, lib
|
||||
,
|
||||
}:
|
||||
let
|
||||
{
|
||||
rustPlatform,
|
||||
openssl,
|
||||
pkg-config,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ./. ["Cargo.*" "((types|api-server|)/?(src)?)(/.*)?" "README.md"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue