flake: add nixpkgs-for-php

last nixpkgs version that has php74 is 22.05

error: php74 has been dropped due to the lack of maintanence from upstream for future releases

there's hardly any testing possible with php so i won't mess with it
This commit is contained in:
Artturin 2022-12-04 03:37:56 +02:00 committed by Cole Helbling
parent 0bae3a0259
commit 12f7ba6a3d
2 changed files with 30 additions and 5 deletions

View file

@ -16,9 +16,26 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-for-php": {
"locked": {
"lastModified": 1670538458,
"narHash": "sha256-mvKmBkdlhzsMBtnzYXjYn08EGw9rFBEE9hp4Uqgol1Q=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "99ec06122f481588abafd91f2710d80a5320efe6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"nixpkgs-for-php": "nixpkgs-for-php"
} }
} }
}, },

View file

@ -1,11 +1,13 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs-for-php.url = "github:nixos/nixpkgs/nixos-22.05";
}; };
outputs = outputs =
{ self { self
, nixpkgs , nixpkgs
, nixpkgs-for-php
, ... , ...
}@inputs: }@inputs:
let let
@ -20,15 +22,17 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
}; };
phpPkgs = import nixpkgs-for-php {
inherit system;
};
phpEnv = pkgs.mkShell { phpEnv = pkgs.mkShell {
name = "gh-event-forwarder"; name = "gh-event-forwarder";
buildInputs = with pkgs; [ buildInputs = with pkgs; [
nix-prefetch-git nix-prefetch-git
php phpPkgs.php
phpPackages.composer phpPkgs.phpPackages.composer
git git
php
curl curl
bash bash
]; ];
@ -85,6 +89,10 @@
inherit system; inherit system;
}; };
phpPkgs = import nixpkgs-for-php {
inherit system;
};
pkg = pkgs.rustPlatform.buildRustPackage { pkg = pkgs.rustPlatform.buildRustPackage {
name = "ofborg"; name = "ofborg";
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.; src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
@ -142,7 +150,7 @@
test -e $out/bin/evaluation_filter test -e $out/bin/evaluation_filter
''; '';
ofborg.php = import ./php { inherit pkgs; }; ofborg.php = import ./php { pkgs = phpPkgs; };
}); });
hydraJobs = { hydraJobs = {