Skip to content

Commit

Permalink
build: nix flake for a dev shell (#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen authored Oct 15, 2023
1 parent bc7ce8b commit a1b6add
Show file tree
Hide file tree
Showing 10 changed files with 446 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .config/vscode-recommended/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "prqlc _a.prql",
"program": "${workspaceFolder}/target/debug/prqlc",
"args": ["debug", "semantics", "_a.prql"],
"env": {
"RUST_LOG": "debug",
"RUST_BACKTRACE": "1"
},
"preLaunchTask": "prqlc-build",
"cwd": "${workspaceFolder}"
}
]
}
17 changes: 17 additions & 0 deletions .config/vscode-recommended/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"nixEnvSelector.args": ".#full",
"nixEnvSelector.suggestion": false,
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix",
// "prettier.configPath": ".config/prettier.yaml",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"web/book/book": true,
"web/build": true,
".direnv": true
}
}
16 changes: 16 additions & 0 deletions .config/vscode-recommended/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "prqlc-build",
"type": "cargo",
"command": "build",
"args": ["--package=prqlc"],
"presentation": {
"reveal": "silent",
"clear": true
},
"problemMatcher": ["$rustc"]
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ _*.sql
**/node_modules/

.task
.direnv

*.snap.tmp
# These shouldn't be committed, and cause watchers to re-run when they're
Expand All @@ -35,3 +36,4 @@ _*.sql
*.my.csv

cobertura.xml
.envrc
1 change: 1 addition & 0 deletions .mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ DISABLE_LINTERS:
- REPOSITORY_TRUFFLEHOG # Detecting secrets in .git/config, which is not even committed.
- REPOSITORY_GRYPE # Slow (10+ seconds). Blocking unrelated PRs. We already have depandabot.
- YAML_V8R # Slow (70+ seconds). We don't use YAML schema.
- JSON_V8R # Failing for vscode-style syntax (comments).
DISABLE_ERRORS_LINTERS:
- COPYPASTE_JSCPD
- REPOSITORY_TRIVY
Expand Down
264 changes: 264 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a1b6add

Please sign in to comment.