mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
7486517713
commit
9903866044
160 changed files with 4570 additions and 3019 deletions
|
|
@ -1,7 +1,11 @@
|
|||
{ lib, python3, writeTextFile }: let
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
writeTextFile,
|
||||
}: let
|
||||
# https://github.com/minecraft-linux/server-modloader/tree/master?tab=readme-ov-file#getting-mods-to-work-on-newer-versions-116
|
||||
inherit (lib.meta) getExe;
|
||||
python = python3.withPackages (p: [ p.lief ]);
|
||||
python = python3.withPackages (p: [p.lief]);
|
||||
script = ''
|
||||
import lief
|
||||
import sys
|
||||
|
|
@ -12,13 +16,14 @@
|
|||
lib_symbols.write(sys.argv[2])
|
||||
'';
|
||||
name = "minecraft-bedrock-server-patchdebug";
|
||||
in writeTextFile {
|
||||
name = "${name}.py";
|
||||
destination = "/bin/${name}";
|
||||
executable = true;
|
||||
text = ''
|
||||
#!${getExe python}
|
||||
${script}
|
||||
'';
|
||||
meta.mainProgram = name;
|
||||
}
|
||||
in
|
||||
writeTextFile {
|
||||
name = "${name}.py";
|
||||
destination = "/bin/${name}";
|
||||
executable = true;
|
||||
text = ''
|
||||
#!${getExe python}
|
||||
${script}
|
||||
'';
|
||||
meta.mainProgram = name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue