diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9c9dd13 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Procfile generation in your Nix shells!"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + + outputs = { + self, + nixpkgs, + }: let + systems = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; + + forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); + in { + lib = forAllSystems (pkgs: + import ./. { + nixpkgs = pkgs; + inherit (pkgs) system; + }); + + flakeModule = import ./module.nix self; + + formatter = forAllSystems (pkgs: pkgs.alejandra); + }; +} |
