Skip to content

Commit 8136b14

Browse files
committed
fix(flake): Allow using EOL PHP versions
Signed-off-by: provokateurin <[email protected]>
1 parent de381f3 commit 8136b14

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

flake.lock

Lines changed: 42 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
{
2+
nixConfig = {
3+
extra-substituters = [ "https://fossar.cachix.org" ];
4+
extra-trusted-public-keys = [ "fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE=" ];
5+
};
6+
27
inputs = {
38
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
49
flake-utils.url = "github:numtide/flake-utils";
10+
phps = {
11+
url = "github:fossar/nix-phps";
12+
inputs = {
13+
nixpkgs.follows = "nixpkgs";
14+
utils.follows = "flake-utils";
15+
};
16+
};
517
haze = {
618
url = "git+https://codeberg.org/icewind/haze.git";
719
inputs.nixpkgs.follows = "nixpkgs";
820
};
921
};
1022

11-
outputs = { nixpkgs, flake-utils, haze, ... }:
23+
outputs = { nixpkgs, flake-utils, phps, haze, ... }:
1224
flake-utils.lib.eachDefaultSystem (system:
1325
let
1426
pkgs = nixpkgs.legacyPackages.${system};
@@ -18,7 +30,7 @@
1830
devShells.default =
1931
let
2032
php_version = lib.strings.concatStrings (builtins.match ".*PHP_VERSION_ID < ([0-9])0([0-9])00.*" (builtins.readFile ./lib/versioncheck.php));
21-
php = pkgs.pkgs."php${php_version}".buildEnv {
33+
php = phps.packages.${system}."php${php_version}".buildEnv {
2234
# Based off https://docs.nextcloud.com/server/latest/admin_manual/installation/php_configuration.html
2335
extensions = ({ enabled, all }: enabled ++ (with all; [
2436
# Required

0 commit comments

Comments
 (0)