devenv stuff
Some checks failed
Update All Top Ranking Issues / update_top_ranking_issues (push) Has been cancelled
Update Weekly Top Ranking Issues / update_top_ranking_issues (push) Has been cancelled
Bump collab-staging Tag / update-collab-staging-tag (push) Has been cancelled
Run Agent Eval / Run Agent Eval (push) Has been cancelled
Run Unit Evals / Run unit evals (push) Has been cancelled
Release Nightly / Run tests (push) Has been cancelled
Release Nightly / Update nightly tag (push) Has been cancelled
Release Nightly / Build and cache Nix package (push) Has been cancelled
Release Nightly / Create a Windows installer (push) Has been cancelled
Release Nightly / Check formatting and Clippy lints (push) Has been cancelled
Release Nightly / Run tests on Windows (push) Has been cancelled
Release Nightly / Create a macOS bundle (push) Has been cancelled
Release Nightly / Create a Linux *.tar.gz bundle for x86 (push) Has been cancelled
Release Nightly / Create a Linux *.tar.gz bundle for ARM (push) Has been cancelled
Release Nightly / Build Zed on FreeBSD (push) Has been cancelled
Close Stale Issues / stale (push) Has been cancelled
Issue Response / issue-response (push) Has been cancelled
Some checks failed
Update All Top Ranking Issues / update_top_ranking_issues (push) Has been cancelled
Update Weekly Top Ranking Issues / update_top_ranking_issues (push) Has been cancelled
Bump collab-staging Tag / update-collab-staging-tag (push) Has been cancelled
Run Agent Eval / Run Agent Eval (push) Has been cancelled
Run Unit Evals / Run unit evals (push) Has been cancelled
Release Nightly / Run tests (push) Has been cancelled
Release Nightly / Update nightly tag (push) Has been cancelled
Release Nightly / Build and cache Nix package (push) Has been cancelled
Release Nightly / Create a Windows installer (push) Has been cancelled
Release Nightly / Check formatting and Clippy lints (push) Has been cancelled
Release Nightly / Run tests on Windows (push) Has been cancelled
Release Nightly / Create a macOS bundle (push) Has been cancelled
Release Nightly / Create a Linux *.tar.gz bundle for x86 (push) Has been cancelled
Release Nightly / Create a Linux *.tar.gz bundle for ARM (push) Has been cancelled
Release Nightly / Build Zed on FreeBSD (push) Has been cancelled
Close Stale Issues / stale (push) Has been cancelled
Issue Response / issue-response (push) Has been cancelled
Add build and run dependencies to devenv
This commit is contained in:
parent
12d2c2b63d
commit
93f5fc81e8
9
.gitignore
vendored
9
.gitignore
vendored
@ -37,3 +37,12 @@ xcuserdata/
|
||||
# Don't commit any secrets to the repo.
|
||||
.env
|
||||
.env.secret.toml
|
||||
# Devenv
|
||||
.devenv*
|
||||
devenv.local.nix
|
||||
|
||||
# direnv
|
||||
.direnv
|
||||
|
||||
# pre-commit
|
||||
.pre-commit-config.yaml
|
||||
|
103
devenv.lock
Normal file
103
devenv.lock
Normal file
@ -0,0 +1,103 @@
|
||||
{
|
||||
"nodes": {
|
||||
"devenv": {
|
||||
"locked": {
|
||||
"dir": "src/modules",
|
||||
"lastModified": 1755536966,
|
||||
"owner": "cachix",
|
||||
"repo": "devenv",
|
||||
"rev": "062a852197de9aa96204c5b4b01d149e3c44ffb6",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"git-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"gitignore": "gitignore",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1755446520,
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "4b04db83821b819bbbe32ed0a025b31e7971f22e",
|
||||
"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": 1755186698,
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"devenv": "devenv",
|
||||
"git-hooks": "git-hooks",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"pre-commit-hooks": [
|
||||
"git-hooks"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
39
devenv.nix
Normal file
39
devenv.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ pkgs, lib, config, inputs, ... }:
|
||||
|
||||
{
|
||||
cachix.enable = false;
|
||||
|
||||
languages.rust = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
clang
|
||||
cmake
|
||||
protobuf
|
||||
|
||||
# compilation dependencies (speculated)
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
xorg.libX11
|
||||
xorg.libxcb
|
||||
libxkbcommon
|
||||
|
||||
alsa-lib
|
||||
|
||||
|
||||
# for runtime?
|
||||
vulkan-loader
|
||||
|
||||
mold
|
||||
];
|
||||
|
||||
env = {
|
||||
PROTOC = "${pkgs.protobuf}/bin/protoc";
|
||||
|
||||
LD_LIBRARY_PATH="${pkgs.vulkan-loader}/lib";
|
||||
};
|
||||
|
||||
# See full reference at https://devenv.sh/reference/options/
|
||||
}
|
15
devenv.yaml
Normal file
15
devenv.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
|
||||
inputs:
|
||||
nixpkgs:
|
||||
url: github:NixOS/nixpkgs/nixos-unstable
|
||||
|
||||
# If you're using non-OSS software, you can set allowUnfree to true.
|
||||
# allowUnfree: true
|
||||
|
||||
# If you're willing to use a package that's vulnerable
|
||||
# permittedInsecurePackages:
|
||||
# - "openssl-1.1.1w"
|
||||
|
||||
# If you have more than one devenv you can merge them
|
||||
#imports:
|
||||
# - ./backend
|
Loading…
x
Reference in New Issue
Block a user