This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
FPGA_WebLab/flake.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2025-03-10 19:48:25 +08:00
{
description = "A Nix-flake-based Bun development environment";
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
2025-03-29 13:05:01 +08:00
# Frontend
2025-03-10 19:48:25 +08:00
bun
2025-03-22 21:50:56 +08:00
sqlite
sqls
sql-studio
2025-03-29 13:05:01 +08:00
# Backend
2025-03-29 19:02:18 +08:00
(dotnetCorePackages.combinePackages [
dotnetCorePackages.sdk_9_0
dotnetCorePackages.aspnetcore_9_0
dotnetCorePackages.sdk_8_0
])
2025-03-29 13:05:01 +08:00
nuget
2025-03-29 19:02:18 +08:00
omnisharp-roslyn
2025-03-22 21:50:56 +08:00
# LSP
typescript-language-server
2025-03-10 19:48:25 +08:00
];
shellHook = ''
export PATH=$PATH:$HOME/.bun/bin
'';
};
});
};
}