chore: added it as an injectable flake
This commit is contained in:
parent
5dc8bdbaf6
commit
9045893b1d
28 changed files with 533 additions and 84 deletions
28
.editorconfig
Normal file
28
.editorconfig
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
root = true
|
||||||
|
["*"]
|
||||||
|
charset = "utf-8"
|
||||||
|
curly_bracket_next_line = true
|
||||||
|
end_of_line = "lf"
|
||||||
|
indent_brace_style = "K&R"
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = "space"
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 80
|
||||||
|
tab_width = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
["*.md"]
|
||||||
|
max_line_length = "off"
|
||||||
|
|
||||||
|
["package.json"]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = "space"
|
||||||
|
tab_width = 2
|
||||||
|
|
||||||
|
["{LICENSES/**,LICENSE}"]
|
||||||
|
charset = "unset"
|
||||||
|
end_of_line = "unset"
|
||||||
|
indent_size = "unset"
|
||||||
|
indent_style = "unset"
|
||||||
|
insert_final_newline = "unset"
|
||||||
|
trim_trailing_whitespace = "unset"
|
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -129,4 +129,11 @@ dist/
|
||||||
schema.graphql
|
schema.graphql
|
||||||
*.log
|
*.log
|
||||||
.direnv
|
.direnv
|
||||||
/SatisfactoryDedicatedServer
|
/SatisfactoryDedicatedServer
|
||||||
|
# nixago: ignore-linked-files
|
||||||
|
/treefmt.toml
|
||||||
|
/.prettierrc.json
|
||||||
|
/lefthook.yml
|
||||||
|
/.conform.yaml
|
||||||
|
# mfgames-project-setup: ignore-files
|
||||||
|
/.direnv/
|
|
@ -97,8 +97,8 @@ To add installations from the command line, use `ficsit-cli installation add you
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
* Profile and installation records are located in `%APPDATA%\ficsit\`
|
- Profile and installation records are located in `%APPDATA%\ficsit\`
|
||||||
* Downloads are cached in `%LOCALAPPDATA%\ficsit\downloadCache\`
|
- Downloads are cached in `%LOCALAPPDATA%\ficsit\downloadCache\`
|
||||||
|
|
||||||
Get help on the [modding Discord](https://discord.ficsit.app/).
|
Get help on the [modding Discord](https://discord.ficsit.app/).
|
||||||
|
|
||||||
|
@ -106,8 +106,8 @@ Get help on the [modding Discord](https://discord.ficsit.app/).
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
* [Go 1.21](https://go.dev/doc/install)
|
- [Go 1.21](https://go.dev/doc/install)
|
||||||
* IDE of Choice. Goland or VSCode suggested.
|
- IDE of Choice. Goland or VSCode suggested.
|
||||||
|
|
||||||
### Code Generation
|
### Code Generation
|
||||||
|
|
||||||
|
|
46
cspell.json
46
cspell.json
|
@ -1,27 +1,25 @@
|
||||||
// https://cspell.org/configuration/
|
// https://cspell.org/configuration/
|
||||||
{
|
{
|
||||||
// Version of the setting file. Always 0.2
|
// Version of the setting file. Always 0.2
|
||||||
"version": "0.2",
|
"version": "0.2",
|
||||||
// language - current active spelling language
|
// language - current active spelling language
|
||||||
"language": "en",
|
"language": "en",
|
||||||
// words - list of words to be always considered correct
|
// words - list of words to be always considered correct
|
||||||
"words": [
|
"words": [
|
||||||
"armv",
|
"armv",
|
||||||
"ficsit",
|
"ficsit",
|
||||||
"gofumpt",
|
"gofumpt",
|
||||||
"Goland",
|
"Goland",
|
||||||
"golangci",
|
"golangci",
|
||||||
"goquery",
|
"goquery",
|
||||||
"graphqurl",
|
"graphqurl",
|
||||||
"mvdan",
|
"mvdan",
|
||||||
"pgdn",
|
"pgdn",
|
||||||
"pgup",
|
"pgup",
|
||||||
"wordwrap"
|
"wordwrap"
|
||||||
],
|
],
|
||||||
// flagWords - list of words to be always considered incorrect
|
// flagWords - list of words to be always considered incorrect
|
||||||
// This is useful for offensive words and common spelling errors.
|
// This is useful for offensive words and common spelling errors.
|
||||||
// cSpell:disable (don't complain about the words we listed here)
|
// cSpell:disable (don't complain about the words we listed here)
|
||||||
"flagWords": [
|
"flagWords": ["hte"]
|
||||||
"hte"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,12 +24,12 @@ cli mod manager for satisfactory
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit apply](ficsit_apply.md) - Apply profiles to all installations
|
- [ficsit apply](ficsit_apply.md) - Apply profiles to all installations
|
||||||
* [ficsit cli](ficsit_cli.md) - Start interactive CLI (default)
|
- [ficsit cli](ficsit_cli.md) - Start interactive CLI (default)
|
||||||
* [ficsit installation](ficsit_installation.md) - Manage installations
|
- [ficsit installation](ficsit_installation.md) - Manage installations
|
||||||
* [ficsit profile](ficsit_profile.md) - Manage profiles
|
- [ficsit profile](ficsit_profile.md) - Manage profiles
|
||||||
* [ficsit search](ficsit_search.md) - Search mods
|
- [ficsit search](ficsit_search.md) - Search mods
|
||||||
* [ficsit smr](ficsit_smr.md) - Manage mods on SMR
|
- [ficsit smr](ficsit_smr.md) - Manage mods on SMR
|
||||||
* [ficsit version](ficsit_version.md) - Print current version information
|
- [ficsit version](ficsit_version.md) - Print current version information
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit apply [installation] ... [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit cli [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -29,11 +29,11 @@ Manage installations
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
* [ficsit installation add](ficsit_installation_add.md) - Add an installation
|
- [ficsit installation add](ficsit_installation_add.md) - Add an installation
|
||||||
* [ficsit installation ls](ficsit_installation_ls.md) - List all installations
|
- [ficsit installation ls](ficsit_installation_ls.md) - List all installations
|
||||||
* [ficsit installation remove](ficsit_installation_remove.md) - Remove an installation
|
- [ficsit installation remove](ficsit_installation_remove.md) - Remove an installation
|
||||||
* [ficsit installation set-profile](ficsit_installation_set-profile.md) - Change the profile of an installation
|
- [ficsit installation set-profile](ficsit_installation_set-profile.md) - Change the profile of an installation
|
||||||
* [ficsit installation set-vanilla](ficsit_installation_set-vanilla.md) - Set the installation to vanilla mode or not
|
- [ficsit installation set-vanilla](ficsit_installation_set-vanilla.md) - Set the installation to vanilla mode or not
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit installation add <path> [profile] [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit installation](ficsit_installation.md) - Manage installations
|
- [ficsit installation](ficsit_installation.md) - Manage installations
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit installation ls [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit installation](ficsit_installation.md) - Manage installations
|
- [ficsit installation](ficsit_installation.md) - Manage installations
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit installation remove <path> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit installation](ficsit_installation.md) - Manage installations
|
- [ficsit installation](ficsit_installation.md) - Manage installations
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit installation set-profile <path> <profile> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit installation](ficsit_installation.md) - Manage installations
|
- [ficsit installation](ficsit_installation.md) - Manage installations
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -34,6 +34,6 @@ ficsit installation set-vanilla <path> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit installation](ficsit_installation.md) - Manage installations
|
- [ficsit installation](ficsit_installation.md) - Manage installations
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -29,11 +29,11 @@ Manage profiles
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
* [ficsit profile delete](ficsit_profile_delete.md) - Delete a profile
|
- [ficsit profile delete](ficsit_profile_delete.md) - Delete a profile
|
||||||
* [ficsit profile ls](ficsit_profile_ls.md) - List all profiles
|
- [ficsit profile ls](ficsit_profile_ls.md) - List all profiles
|
||||||
* [ficsit profile mods](ficsit_profile_mods.md) - List all mods in a profile
|
- [ficsit profile mods](ficsit_profile_mods.md) - List all mods in a profile
|
||||||
* [ficsit profile new](ficsit_profile_new.md) - Create a new profile
|
- [ficsit profile new](ficsit_profile_new.md) - Create a new profile
|
||||||
* [ficsit profile rename](ficsit_profile_rename.md) - Rename a profile
|
- [ficsit profile rename](ficsit_profile_rename.md) - Rename a profile
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit profile delete <name> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit profile](ficsit_profile.md) - Manage profiles
|
- [ficsit profile](ficsit_profile.md) - Manage profiles
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit profile ls [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit profile](ficsit_profile.md) - Manage profiles
|
- [ficsit profile](ficsit_profile.md) - Manage profiles
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit profile mods <profile> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit profile](ficsit_profile.md) - Manage profiles
|
- [ficsit profile](ficsit_profile.md) - Manage profiles
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit profile new <name> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit profile](ficsit_profile.md) - Manage profiles
|
- [ficsit profile](ficsit_profile.md) - Manage profiles
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit profile rename <old> <name> [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit profile](ficsit_profile.md) - Manage profiles
|
- [ficsit profile](ficsit_profile.md) - Manage profiles
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -38,6 +38,6 @@ ficsit search [query] [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -29,7 +29,7 @@ Manage mods on SMR
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
* [ficsit smr upload](ficsit_smr_upload.md) - Upload a new mod version
|
- [ficsit smr upload](ficsit_smr_upload.md) - Upload a new mod version
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -35,6 +35,6 @@ ficsit smr upload [flags] <mod-id> <file> <changelog...>
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit smr](ficsit_smr.md) - Manage mods on SMR
|
- [ficsit smr](ficsit_smr.md) - Manage mods on SMR
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
|
@ -33,6 +33,6 @@ ficsit version [flags]
|
||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [ficsit](ficsit.md) - cli mod manager for satisfactory
|
- [ficsit](ficsit.md) - cli mod manager for satisfactory
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 7-Dec-2023
|
###### Auto generated by spf13/cobra on 7-Dec-2023
|
||||||
|
|
BIN
ficsit-cli
Executable file
BIN
ficsit-cli
Executable file
Binary file not shown.
411
flake.lock
411
flake.lock
|
@ -18,18 +18,396 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"flake-utils_10": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700014976,
|
"lastModified": 1653893745,
|
||||||
"narHash": "sha256-dSGpS2YeJrXW5aH9y7Abd235gGufY3RuZFth6vuyVtU=",
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
"owner": "NixOS",
|
"owner": "numtide",
|
||||||
"repo": "nixpkgs",
|
"repo": "flake-utils",
|
||||||
"rev": "592047fc9e4f7b74a4dc85d1b9f5243dfe4899e3",
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "numtide",
|
||||||
"type": "indirect"
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_5": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_6": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_7": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_8": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_9": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653893745,
|
||||||
|
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mfgames-project-setup": {
|
||||||
|
"inputs": {
|
||||||
|
"nixago": "nixago",
|
||||||
|
"nixago-exts": "nixago-exts_3",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723051996,
|
||||||
|
"narHash": "sha256-pcWXdsdAbD0U9b93V/I+eJREbgZ5TWYkFc26gmSz46E=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "f378dedc71e3b2b82f95041069bec56fce9e9524",
|
||||||
|
"revCount": 29,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_2",
|
||||||
|
"nixago-exts": "nixago-exts",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1687381756,
|
||||||
|
"narHash": "sha256-IUMIlYfrvj7Yli4H2vvyig8HEPpfCeMaE6+kBGPzFyk=",
|
||||||
|
"owner": "jmgilman",
|
||||||
|
"repo": "nixago",
|
||||||
|
"rev": "dacceb10cace103b3e66552ec9719fa0d33c0dc9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "jmgilman",
|
||||||
|
"repo": "nixago",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago-exts": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_3",
|
||||||
|
"nixago": "nixago_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676070308,
|
||||||
|
"narHash": "sha256-QaJ65oc2l8iwQIGWUJ0EKjCeSuuCM/LqR8RauxZUUkc=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"rev": "e5380cb0456f4ea3c86cf94e3039eb856bf07d0b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago-exts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_5",
|
||||||
|
"nixago": "nixago_3",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixago",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1655508669,
|
||||||
|
"narHash": "sha256-BDDdo5dZQMmwNH/GNacy33nPBnCpSIydWFPZs0kkj/g=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"rev": "3022a932ce109258482ecc6568c163e8d0b426aa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago-exts_3": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_7",
|
||||||
|
"nixago": "nixago_4",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676070308,
|
||||||
|
"narHash": "sha256-QaJ65oc2l8iwQIGWUJ0EKjCeSuuCM/LqR8RauxZUUkc=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"rev": "e5380cb0456f4ea3c86cf94e3039eb856bf07d0b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago-exts_4": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_9",
|
||||||
|
"nixago": "nixago_5",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixago",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1655508669,
|
||||||
|
"narHash": "sha256-BDDdo5dZQMmwNH/GNacy33nPBnCpSIydWFPZs0kkj/g=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"rev": "3022a932ce109258482ecc6568c163e8d0b426aa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago-extensions",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago_2": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_4",
|
||||||
|
"nixago-exts": "nixago-exts_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676070010,
|
||||||
|
"narHash": "sha256-iYzJIWptE1EUD8VINAg66AAMUajizg8JUYN3oBmb8no=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago",
|
||||||
|
"rev": "d480ba6c0c16e2c5c0bd2122852d6a0c9ad1ed0e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "rename-config-data",
|
||||||
|
"repo": "nixago",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago_3": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_6",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixago",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1655405483,
|
||||||
|
"narHash": "sha256-Crd49aZWNrpczlRTOwWGfwBMsTUoG9vlHDKQC7cx264=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago",
|
||||||
|
"rev": "e6a9566c18063db5b120e69e048d3627414e327d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago_4": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_8",
|
||||||
|
"nixago-exts": "nixago-exts_4",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676070010,
|
||||||
|
"narHash": "sha256-iYzJIWptE1EUD8VINAg66AAMUajizg8JUYN3oBmb8no=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago",
|
||||||
|
"rev": "d480ba6c0c16e2c5c0bd2122852d6a0c9ad1ed0e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "rename-config-data",
|
||||||
|
"repo": "nixago",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixago_5": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_10",
|
||||||
|
"nixpkgs": [
|
||||||
|
"mfgames-project-setup",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixago",
|
||||||
|
"nixago-exts",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1655405483,
|
||||||
|
"narHash": "sha256-Crd49aZWNrpczlRTOwWGfwBMsTUoG9vlHDKQC7cx264=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago",
|
||||||
|
"rev": "e6a9566c18063db5b120e69e048d3627414e327d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixago",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1706098335,
|
||||||
|
"narHash": "sha256-r3dWjT8P9/Ah5m5ul4WqIWD8muj5F+/gbCdjiNVBKmU=",
|
||||||
|
"rev": "a77ab169a83a4175169d78684ddd2e54486ac651",
|
||||||
|
"revCount": 554858,
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2311.554858%2Brev-a77ab169a83a4175169d78684ddd2e54486ac651/018d46f0-798f-71dc-a8c5-4689c46f7d12/source.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/%2A.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
|
@ -47,10 +425,25 @@
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1700014976,
|
||||||
|
"narHash": "sha256-dSGpS2YeJrXW5aH9y7Abd235gGufY3RuZFth6vuyVtU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "592047fc9e4f7b74a4dc85d1b9f5243dfe4899e3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs",
|
"mfgames-project-setup": "mfgames-project-setup",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
28
flake.nix
28
flake.nix
|
@ -1,19 +1,35 @@
|
||||||
{
|
{
|
||||||
description = "smr-cli";
|
description = "ficsit-cli";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
nixpkgs-unstable.url = "flake:nixpkgs/nixpkgs-unstable";
|
nixpkgs-unstable.url = "flake:nixpkgs/nixpkgs-unstable";
|
||||||
|
mfgames-project-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, nixpkgs-unstable }:
|
outputs = { self, nixpkgs, flake-utils, nixpkgs-unstable, mfgames-project-setup }:
|
||||||
flake-utils.lib.eachDefaultSystem
|
flake-utils.lib.eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
unstable = nixpkgs-unstable.legacyPackages.${system}; in
|
unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
devShells.default = import ./shell.nix { inherit pkgs unstable; };
|
devShells.default = import ./shell.nix { inherit system pkgs unstable mfgames-project-setup; };
|
||||||
|
|
||||||
|
defaultPackage = pkgs.buildGoModule {
|
||||||
|
pname = "ficsit-cli";
|
||||||
|
version = "0.6.0";
|
||||||
|
doCheck = false; # Tests are failing in this flake.
|
||||||
|
vendorHash = "sha256-vmA3jvxOLRYj5BmvWMhSEnCTEoe8BLm8lpm2kruIEv4="; #pkgs.lib.fakeHash;
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "satisfactorymodding";
|
||||||
|
repo = "ficsit-cli";
|
||||||
|
rev = "v0.6.0";
|
||||||
|
hash = "sha256-Zwidx0war3hos9NEmk9dEzPBgDGdUtWvZb7FIF5OZMA="; #pkgs.lib.fakeHash;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
# https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||||
schema: schema.graphql
|
schema: schema.graphql
|
||||||
operations:
|
operations:
|
||||||
- ficsit/queries/*.graphql
|
- ficsit/queries/*.graphql
|
||||||
generated: ficsit/types.go
|
generated: ficsit/types.go
|
||||||
package: ficsit
|
package: ficsit
|
||||||
bindings:
|
bindings:
|
||||||
|
@ -21,4 +21,4 @@ bindings:
|
||||||
type: time.Time
|
type: time.Time
|
||||||
unmarshaler: github.com/satisfactorymodding/ficsit-cli/ficsit/utils.UnmarshalDateTime
|
unmarshaler: github.com/satisfactorymodding/ficsit-cli/ficsit/utils.UnmarshalDateTime
|
||||||
TagID:
|
TagID:
|
||||||
type: string
|
type: string
|
||||||
|
|
11
shell.nix
11
shell.nix
|
@ -1,6 +1,13 @@
|
||||||
{ pkgs, unstable }:
|
{ system, pkgs, unstable, mfgames-project-setup }:
|
||||||
|
let
|
||||||
|
project-config = mfgames-project-setup.lib.mkConfig {
|
||||||
|
inherit system pkgs;
|
||||||
|
};
|
||||||
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
|
buildInputs = project-config.packages;
|
||||||
|
shellHook = project-config.shellHook;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs.buildPackages; [
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||||||
unstable.go_1_21
|
unstable.go_1_21
|
||||||
unstable.golangci-lint
|
unstable.golangci-lint
|
||||||
|
|
Loading…
Reference in a new issue