initial commit
This commit is contained in:
37
flake.nix
Normal file
37
flake.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
description = "ARM cross-compilation environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
oc = pkgs.writeShellScriptBin "oc" ''
|
||||
PRJ_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
||||
cd "$PRJ_ROOT" && OPENCODE_EXPERIMENTAL_LSP_TOOL=true opencode
|
||||
'';
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
# Backend
|
||||
go
|
||||
gopls
|
||||
golangci-lint
|
||||
|
||||
# Frontend
|
||||
bun
|
||||
watchman
|
||||
tailwindcss_4
|
||||
|
||||
# Custom Commands
|
||||
oc
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user