snipe-it: Pin to PHP 8.1
This fixes the build failure for Snipe-IT after 3bb3859049
bumped the
default PHP version to 8.2.
Resolves #241556
This commit is contained in:
parent
4444693545
commit
b10a609526
|
@ -5,11 +5,13 @@
|
||||||
, dataDir ? "/var/lib/snipe-it"
|
, dataDir ? "/var/lib/snipe-it"
|
||||||
, mariadb
|
, mariadb
|
||||||
, nixosTests
|
, nixosTests
|
||||||
|
, php
|
||||||
|
, phpPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
package = (import ./composition.nix {
|
package = (import ./composition.nix {
|
||||||
inherit pkgs;
|
inherit pkgs php phpPackages;
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (stdenv.hostPlatform) system;
|
||||||
noDev = true; # Disable development dependencies
|
noDev = true; # Disable development dependencies
|
||||||
}).overrideAttrs (attrs : {
|
}).overrideAttrs (attrs : {
|
||||||
|
@ -44,6 +46,7 @@ in package.override rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.tests = nixosTests.snipe-it;
|
passthru.tests = nixosTests.snipe-it;
|
||||||
|
passthru.phpPackage = php;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A free open source IT asset/license management system";
|
description = "A free open source IT asset/license management system";
|
||||||
|
|
|
@ -26748,7 +26748,10 @@ with pkgs;
|
||||||
|
|
||||||
smcroute = callPackage ../servers/smcroute { };
|
smcroute = callPackage ../servers/smcroute { };
|
||||||
|
|
||||||
snipe-it = callPackage ../servers/web-apps/snipe-it { };
|
snipe-it = callPackage ../servers/web-apps/snipe-it {
|
||||||
|
php = php81;
|
||||||
|
phpPackages = php81Packages;
|
||||||
|
};
|
||||||
|
|
||||||
sogo = callPackage ../servers/web-apps/sogo { };
|
sogo = callPackage ../servers/web-apps/sogo { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue