fix: multi arch flake

This commit is contained in:
2026-01-17 13:53:11 -05:00
parent 89f2114b06
commit 5e8ac5e4b6
3 changed files with 73 additions and 26 deletions

View File

@@ -1,37 +1,49 @@
{
description = "ARM cross-compilation environment";
description = "Development Environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = (
import nixpkgs {
system = system;
config.allowUnfree = true;
}
);
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
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.default = pkgs.mkShell {
packages = with pkgs; [
# Backend
go
gopls
golangci-lint
# Frontend
bun
watchman
tailwindcss_4
# Frontend
bun
watchman
tailwindcss_4
# Custom Commands
oc
];
};
};
# Custom Commands
oc
];
};
}
);
}