add devenv
This commit is contained in:
parent
e908343a42
commit
b25dbd0ddf
8 changed files with 210 additions and 6 deletions
5
.envrc
Normal file
5
.envrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
export DIRENV_WARN_TIMEOUT=20s
|
||||
|
||||
eval "$(devenv direnvrc)"
|
||||
|
||||
use devenv
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,3 +3,6 @@
|
|||
__pycache__/
|
||||
*.osk
|
||||
.mypy_cache/
|
||||
|
||||
.devenv*
|
||||
.direnv
|
||||
|
|
9
.vscode/extensions.json
vendored
9
.vscode/extensions.json
vendored
|
@ -1,3 +1,10 @@
|
|||
{
|
||||
"recommendations": ["esbenp.prettier-vscode", "ms-python.black-formatter"]
|
||||
"recommendations": [
|
||||
"esbenp.prettier-vscode",
|
||||
"jnoortheen.nix-ide",
|
||||
"ms-python.black-formatter",
|
||||
"mkhl.direnv",
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
"ms-python.python"
|
||||
]
|
||||
}
|
||||
|
|
29
.vscode/settings.json
vendored
29
.vscode/settings.json
vendored
|
@ -1,23 +1,46 @@
|
|||
{
|
||||
"cSpell.words": [
|
||||
"approachcircle",
|
||||
"cachix",
|
||||
"chdir",
|
||||
"developomp",
|
||||
"devenv",
|
||||
"DIRENV",
|
||||
"direnvrc",
|
||||
"flyingtuna",
|
||||
"followpoint",
|
||||
"followpoints",
|
||||
"forgejo",
|
||||
"hitcircle",
|
||||
"hitcircles",
|
||||
"lazer",
|
||||
"minimalistic",
|
||||
"mypy",
|
||||
"nixd",
|
||||
"nixfmt",
|
||||
"nixos",
|
||||
"nixpacks",
|
||||
"nixpkgs",
|
||||
"pkgs",
|
||||
"scoreentry",
|
||||
"svgs",
|
||||
"vaxei"
|
||||
"vaxei",
|
||||
"venv"
|
||||
],
|
||||
|
||||
"editor.formatOnSave": true,
|
||||
|
||||
"nix.formatterPath": "nixfmt",
|
||||
"nix.enableLanguageServer": true,
|
||||
"nix.serverPath": "nixd",
|
||||
"[nix]": {
|
||||
"editor.defaultFormatter": "jnoortheen.nix-ide"
|
||||
},
|
||||
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||
},
|
||||
|
||||
"[markdown]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
|
@ -27,7 +50,7 @@
|
|||
"[jsonc]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||
"[yaml]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,11 +22,12 @@ My custom skin for the game [osu! (lazer)](https://github.com/ppy/osu) based on
|
|||
|
||||
To generate a `.osk` osu skin file, run the following commands.
|
||||
|
||||
1. Install dependencies
|
||||
1. [Setup devenv](https://devenv.sh/getting-started/)
|
||||
2. Install dependencies
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
2. Build skin
|
||||
3. Build skin
|
||||
```bash
|
||||
python src
|
||||
```
|
||||
|
|
138
devenv.lock
Normal file
138
devenv.lock
Normal file
|
@ -0,0 +1,138 @@
|
|||
{
|
||||
"nodes": {
|
||||
"devenv": {
|
||||
"locked": {
|
||||
"dir": "src/modules",
|
||||
"lastModified": 1748882301,
|
||||
"owner": "cachix",
|
||||
"repo": "devenv",
|
||||
"rev": "4458e94b6f09a5542c28702dbac181cccec79d27",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"dir": "src/modules",
|
||||
"owner": "cachix",
|
||||
"repo": "devenv",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1747046372,
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat_2": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1747046372,
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"git-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"gitignore": "gitignore",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1747372754,
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "80479b6ec16fefd9c1db3ea13aeb038c60530f46",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"git-hooks",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709087332,
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1748302001,
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "d9dd002a294e676c49e27eae9166f73bd2ae5684",
|
||||
"revCount": 806557,
|
||||
"type": "git",
|
||||
"url": "https://git.pompy.dev/pomp/nixpkgs"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.pompy.dev/pomp/nixpkgs"
|
||||
}
|
||||
},
|
||||
"nixpkgs-python": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1746223523,
|
||||
"owner": "cachix",
|
||||
"repo": "nixpkgs-python",
|
||||
"rev": "3f5f1dbe0122a1741907aa5ab76f7337ffcd2ccb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cachix",
|
||||
"repo": "nixpkgs-python",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"devenv": "devenv",
|
||||
"git-hooks": "git-hooks",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-python": "nixpkgs-python",
|
||||
"pre-commit-hooks": [
|
||||
"git-hooks"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
17
devenv.nix
Normal file
17
devenv.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
packages = with pkgs; [
|
||||
nixd
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
|
||||
languages = {
|
||||
# https://devenv.sh/supported-languages/python/
|
||||
python = {
|
||||
enable = true;
|
||||
venv.enable = true;
|
||||
venv.requirements = ./requirements.txt;
|
||||
};
|
||||
};
|
||||
}
|
10
devenv.yaml
Normal file
10
devenv.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
|
||||
inputs:
|
||||
nixpkgs:
|
||||
url: git+https://git.pompy.dev/pomp/nixpkgs
|
||||
nixpkgs-python:
|
||||
url: github:cachix/nixpkgs-python
|
||||
inputs:
|
||||
nixpkgs:
|
||||
follows: nixpkgs
|
||||
allowUnfree: true
|
Loading…
Add table
Add a link
Reference in a new issue