mirror of
https://github.com/BrianHicks/elm-duet.git
synced 2024-08-17 01:20:49 +03:00
30 lines
671 B
Nix
30 lines
671 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = inputs:
|
|
inputs.flake-utils.lib.eachDefaultSystem (system:
|
|
let pkgs = import inputs.nixpkgs { inherit system; };
|
|
in {
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
devShell = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.cargo
|
|
pkgs.clippy
|
|
pkgs.libiconv
|
|
pkgs.rust-analyzer
|
|
pkgs.rustc
|
|
pkgs.rustfmt
|
|
|
|
# formatters
|
|
pkgs.elmPackages.elm-format
|
|
pkgs.nodePackages.prettier
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|