Skip to content

Commit eb8fad0

Browse files
committed
devenv: fix php-cs-fixer issue
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent 71b7847 commit eb8fad0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

devenv.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"devenv": {
44
"locked": {
55
"dir": "src/modules",
6-
"lastModified": 1770114027,
6+
"lastModified": 1770214004,
77
"owner": "cachix",
88
"repo": "devenv",
9-
"rev": "59bdb8c9c9d7fdcfbd15a7c4cfb14fb6c6d5d6ce",
9+
"rev": "b91e1b24ff6f7bddcdbb00e5834ed457a4126bf2",
1010
"type": "github"
1111
},
1212
"original": {

devenv.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
pkgs,
3+
config,
34
...
45
}:
56

@@ -16,6 +17,14 @@
1617
# https://devenv.sh/git-hooks/
1718
git-hooks = {
1819
excludes = [ "appinfo/signature.json" ];
20+
hooks = {
21+
php-cs-fixer = {
22+
# Override the entry to use vendor version instead of Nix-provided version
23+
# The Nix version (3.87.2) is too old and incompatible with PHP 8.4
24+
# The vendor version (3.93.1) works correctly
25+
entry = "${config.languages.php.package}/bin/php vendor/bin/php-cs-fixer fix";
26+
};
27+
};
1928
};
2029

2130
# See full reference at https://devenv.sh/reference/options/

0 commit comments

Comments
 (0)