From 90c83b4694150bdcfe4fcac1c55fcfdef17c3612 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 26 Jan 2024 05:43:47 -0500 Subject: initial commit --- flake.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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); + }; +} -- cgit v1.2.3