mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 09:54:17 +02:00
update parser
This commit is contained in:
parent
c85f641cc3
commit
5e3e9d5ab7
3 changed files with 1633 additions and 4 deletions
1624
parser-Cargo.lock
generated
Normal file
1624
parser-Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
11
parser.nix
11
parser.nix
|
|
@ -13,9 +13,14 @@ in
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "demostf";
|
owner = "demostf";
|
||||||
repo = "parser";
|
repo = "parser";
|
||||||
rev = "v0.4.0";
|
rev = "v0.5.1";
|
||||||
hash = "sha256-/1D5bNnJWRwuycaLidSyuYC36IHSnyA33HvcoUH4GpI=";
|
hash = "sha256-H6ypYeZRxaMP/qRZoO2bp7OzmePMNUaBbcswsa0b9Hs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-UNslB5yKcVbuRELxbKQ1Bl2jHKoC3i0OEYq0UzTi1aU=";
|
cargoLock = {
|
||||||
|
lockFile = ./parser-Cargo.lock;
|
||||||
|
outputHashes = {
|
||||||
|
"schemars-0.8.16" = "sha256-mQR56Ym76gSRulZrThmZHHw2JfhEgYhWXabwaYmyMYs=";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -16,7 +16,7 @@ $autoloader = require __DIR__ . '/../vendor/autoload.php';
|
||||||
function getEnvVar(string $name): string {
|
function getEnvVar(string $name): string {
|
||||||
$var = getenv($name) ?: '';
|
$var = getenv($name) ?: '';
|
||||||
if (str_contains($var, '$CREDENTIALS_DIRECTORY')) {
|
if (str_contains($var, '$CREDENTIALS_DIRECTORY')) {
|
||||||
$credentialsDirectory = getenv('CREDENTIALS_DIRECTORY') ?? '';
|
$credentialsDirectory = getenv('CREDENTIALS_DIRECTORY') ?: '';
|
||||||
$path = str_replace('$CREDENTIALS_DIRECTORY', $credentialsDirectory, $var);
|
$path = str_replace('$CREDENTIALS_DIRECTORY', $credentialsDirectory, $var);
|
||||||
$var = file_get_contents($path);
|
$var = file_get_contents($path);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue