snipe-it: use php84, remove custom override (#393002)

This commit is contained in:
Pol Dellaiera
2025-03-25 09:09:13 +01:00
committed by GitHub
2 changed files with 14 additions and 17 deletions
+14 -13
View File
@@ -1,19 +1,20 @@
{ lib
, dataDir ? "/var/lib/snipe-it"
, fetchFromGitHub
, mariadb
, nixosTests
, php
{
lib,
dataDir ? "/var/lib/snipe-it",
fetchFromGitHub,
mariadb,
nixosTests,
php84,
}:
php.buildComposerProject2 (finalAttrs: {
php84.buildComposerProject2 (finalAttrs: {
pname = "snipe-it";
version = "8.0.4";
src = fetchFromGitHub {
owner = "snipe";
repo = "snipe-it";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-iS9PfWZlwWfxMkCJS7Lbp2+XxoGJz2yedn4nsu34YhU=";
};
@@ -41,10 +42,10 @@ php.buildComposerProject2 (finalAttrs: {
passthru = {
tests = nixosTests.snipe-it;
phpPackage = php;
phpPackage = php84;
};
meta = with lib; {
meta = {
description = "Free open source IT asset/license management system";
longDescription = ''
Snipe-IT was made for IT asset management, to enable IT departments to track
@@ -54,8 +55,8 @@ php.buildComposerProject2 (finalAttrs: {
'';
homepage = "https://snipeitapp.com/";
changelog = "https://github.com/snipe/snipe-it/releases/tag/v${finalAttrs.version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ yayayayaka ];
platforms = platforms.linux;
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ yayayayaka ];
platforms = lib.platforms.linux;
};
})
-4
View File
@@ -11662,10 +11662,6 @@ with pkgs;
sickgear = callPackage ../servers/sickbeard/sickgear.nix { };
snipe-it = callPackage ../by-name/sn/snipe-it/package.nix {
php = php84;
};
spacecookie =
haskell.lib.compose.justStaticExecutables haskellPackages.spacecookie;