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

50 lines
1.3 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 {
2025-04-09 19:42:29 +08:00
pkgs = import nixpkgs {
inherit system;
config.permittedInsecurePackages = ["dotnet-sdk-6.0.428"];
};
2025-03-10 19:48:25 +08:00
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
2025-03-29 13:05:01 +08:00
# Frontend
nodejs
2025-03-22 21:50:56 +08:00
sqlite
sqls
sql-studio
2025-05-02 12:16:00 +00:00
zlib
bash
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-04-09 19:42:29 +08:00
# msbuild
2025-03-29 19:02:18 +08:00
omnisharp-roslyn
2025-03-31 20:24:26 +08:00
csharpier
2025-03-22 21:50:56 +08:00
# LSP
typescript-language-server
2025-03-10 19:48:25 +08:00
];
shellHook = ''
2025-05-02 12:16:00 +00:00
export PATH=$PATH:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.zlib}/lib
2025-03-10 19:48:25 +08:00
'';
};
});
};
}