Initial commit

This commit is contained in:
Oliver Davies 2025-04-23 20:35:36 +01:00
commit ff12acde1c
3 changed files with 49 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake .

27
flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1745234285,
"narHash": "sha256-GfpyMzxwkfgRVN0cTGQSkTC0OHhEkv3Jf6Tcjm//qZ0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c11863f1e964833214b767f4a369c6e6a7aba141",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
php = pkgs.php83;
phpPackages = pkgs.php83Packages;
in
{
devShells.${system}.default = pkgs.mkShellNoCC {
packages = [
php
phpPackages.composer
];
};
};
}