lyrs/flake.nix

36 lines
764 B
Nix
Raw Permalink Normal View History

2024-05-05 09:47:13 -05:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
inherit (self) outputs;
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem = nixpkgs.lib.genAttrs supportedSystems;
in {
devShells = forEachSupportedSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
rust-dev = pkgs.mkShell {
buildInputs = with pkgs; [
rustup
mold
clang
2024-05-05 09:47:13 -05:00
pkg-config
inotify-tools
2024-05-07 21:13:46 -05:00
tailwindcss
nodePackages.typescript-language-server
2024-05-05 09:47:13 -05:00
];
};
default = outputs.devShells.${system}.rust-dev;
});
};
}