Add Nix Flake for local development

This commit is contained in:
Oliver Davies 2024-01-09 17:40:55 +00:00
parent e8aee02820
commit 143009ab60
3 changed files with 23 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/flake.lock
/output_*/
/vendor/

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "oliverdavies.uk-sculpin";
inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devshell.flakeModule ];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devshells.default = {
packages = with pkgs; [ "php81" "php81Packages.composer" ];
};
};
};
}