presentations/reading-college/demo/flake.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
670 B
Nix
Raw Normal View History

2025-05-08 21:21:23 +01:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default =
let
php = pkgs.php83.buildEnv {
extraConfig = ''
memory_limit = 512M
'';
};
phpPackages = pkgs.php83Packages;
in
pkgs.mkShell {
packages = with pkgs; [
php
phpPackages.composer
simple-http-server
sqlite
];
};
formatter.${system} = pkgs.nixfmt-classic;
};
}