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

55 lines
1.5 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 {
2025-04-09 19:42:29 +08:00
inherit system;
2025-08-13 19:27:09 +08:00
config.permittedInsecurePackages = [
"dotnet-sdk-6.0.428"
"beekeeper-studio-5.2.9"
];
2025-04-09 19:42:29 +08:00
};
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
2025-08-13 19:27:09 +08:00
beekeeper-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
mono
vlc
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 = ''
export PATH=$PATH:/home/sikongjueluo/.dotnet/tools
2025-05-02 12:16:00 +00:00
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.zlib}/lib
export DOTNET_ROOT=${pkgs.dotnetCorePackages.sdk_9_0}/share/dotnet
2025-03-10 19:48:25 +08:00
'';
};
});
};
}