devenv: create files

This commit is contained in:
2026-10-09 12:13:14 -04:00
parent 0bbacadce4
commit 108e7f155a
4 changed files with 147 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# devenv
.devenv*
devenv.local.nix
devenv.local.yaml
# direnv
.direnv
# pre-commit
.pre-commit-config.yaml
# workspaces
workspaces/**
# wine
wineprefix
+65
View File
@@ -0,0 +1,65 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1791549372,
"narHash": "sha256-5Vu2oKeImB5wQWLFSEcWXsF0Oajm4/5MV7UlnOdelmg=",
"owner": "cachix",
"repo": "devenv",
"rev": "a73c5b84c9527760f009232988466763068f9f61",
"type": "github"
},
"original": {
"dir": "src/modules",
"owner": "cachix",
"repo": "devenv",
"type": "github"
}
},
"nixpkgs": {
"inputs": {
"nixpkgs-src": "nixpkgs-src"
},
"locked": {
"lastModified": 1789506231,
"narHash": "sha256-vNkJbtmqyBfFhn/HnzQo4ROuoyYWuy/allqTfJb4kMY=",
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "c2f38fe7f9e04d9aadd354d380f2bd40531d9737",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "rolling",
"repo": "devenv-nixpkgs",
"type": "github"
}
},
"nixpkgs-src": {
"flake": false,
"locked": {
"lastModified": 1789370336,
"narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c7def046b9a883d46974757852106483d741586f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+57
View File
@@ -0,0 +1,57 @@
{
pkgs,
config,
...
}:
let
win = pkgs.pkgsCross.mingwW64;
win32 = pkgs.pkgsCross.mingw32;
in
{
packages = with pkgs; [
win.stdenv.cc
win32.stdenv.cc
wineWow64Packages.full
gcc
clang
clang-tools
cmake
gdb
git
jq
ripgrep
curl
wget
coreutils
findutils
less
pkg-config
tree
unzip
];
languages = {
rust.enable = true;
c.enable = true;
cplusplus.enable = true;
java.enable = true;
python = {
enable = true;
venv.enable = true;
};
};
env = {
WINEPREFIX = "${config.env.DEVENV_ROOT}/wineprefix";
};
enterShell = ''
wineboot
if [[ ! -e ./workspaces ]]; then
mkdir ./workspaces
fi
'';
}
+9
View File
@@ -0,0 +1,9 @@
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
nixpkgs:
allow_unsupported_system: false
allow_unfree: true