nix-php52/flake.nix
Jeremy Penner 0f4ed105cb Refactor to use flakes, continue to work on latest nixos
default.nix should continue to work, but module.nix now needs to be
passed a system-agnostic reference to the php52 package.
2023-11-14 22:07:01 -05:00

18 lines
574 B
Nix

{
inputs = {
# build currently fails in 22.11 due to flex inserting some unexpected definition :/
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
let packages = flake-utils.lib.eachDefaultSystem (system:
{
packages.default = import ./php52.nix { pkgs = import nixpkgs { inherit system; }; };
});
in {
inherit (packages) packages;
lib = import ./lib.nix;
nixosModules.default = import ./module.nix packages.packages;
};
}