mirror of
https://github.com/fmhy/edit.git
synced 2025-07-29 23:32:17 +10:00
chore: add flake.nix
add instructions for nix
This commit is contained in:
parent
5536f0699a
commit
d996c2a1a1
6 changed files with 80 additions and 12 deletions
26
flake.nix
Normal file
26
flake.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
outputs = {nixpkgs, ...}: let
|
||||
forAllSystems = f:
|
||||
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
f pkgs);
|
||||
in {
|
||||
packages = forAllSystems (pkgs: {
|
||||
formatter = pkgs.alejandra;
|
||||
});
|
||||
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
nodejs
|
||||
pnpm
|
||||
git
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue