This commit is contained in:
Robin Appelman 2025-10-24 01:06:49 +02:00
commit cb1cc51847
3 changed files with 67 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

47
flake.lock generated Normal file
View file

@ -0,0 +1,47 @@
{
"nodes": {
"flakelight": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1751892651,
"narHash": "sha256-oLNt26YpwTVj+t7BunpmL+iOUHVt5VLvYB1vnJ7Kw28=",
"owner": "nix-community",
"repo": "flakelight",
"rev": "f4604c27e117ad54391160ae207b519694b9f845",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "flakelight",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1751741127,
"narHash": "sha256-t75Shs76NgxjZSgvvZZ9qOmz5zuBE8buUaYD28BMTxg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "29e290002bfff26af1db6f64d070698019460302",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-25.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"flakelight": "flakelight",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

19
flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {flakelight, ...}:
flakelight ./. {
formatters = pkgs: {
"*.php" = pkgs.lib.getExe pkgs.php84.packages.php-cs-fixer;
};
devShell.packages = pkgs: [
pkgs.php84.packages.composer
pkgs.php84
];
};
}