Unverified Commit 85d3b727 authored by Thomas Gerbet's avatar Thomas Gerbet Committed by GitHub
Browse files

librenms: 25.10.0 -> 25.12.0 (#476712)

parents 3146c6aa 49001d07
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -27,16 +27,16 @@ let
in
phpPackage.buildComposerProject2 rec {
  pname = "librenms";
  version = "25.10.0";
  version = "25.12.0";

  src = fetchFromGitHub {
    owner = "librenms";
    repo = "librenms";
    tag = version;
    hash = "sha256-SzDSeWTnsXy274H2mkGIHOsW26EoL7aony7Xcb+e+h4=";
    hash = "sha256-d73izEdLWviOp0XcMbQ3goLWgLZupO4QtQv7WUxdfk8=";
  };

  vendorHash = "sha256-lCDBz0+VUTlvH371WRCPBh8NFWn6BTVS6BPMQM621dE=";
  vendorHash = "sha256-34+srnXDto82xuITDSPEiNnbCgmZbijvpqpmwlszCEg=";

  php = phpPackage;

@@ -103,7 +103,8 @@ phpPackage.buildComposerProject2 rec {
    substituteInPlace $out/LibreNMS/__init__.py --replace-fail '"/usr/bin/env", "php"' '"${phpPackage}/bin/php"'
    substituteInPlace $out/snmp-scan.py --replace-fail '"/usr/bin/env", "php"' '"${phpPackage}/bin/php"'

    substituteInPlace $out/app/Listeners/CommandStartingListener.php --replace-fail '\App\Checks::runningUser();' '//\App\Checks::runningUser(); //removed as nix forces ownership to root'
    substituteInPlace $out/app/Listeners/CommandStartingListener.php \
      --replace-fail "! function_exists('posix_getpwuid') || ! function_exists('posix_geteuid')" "true"

    wrapProgram $out/daily.sh --prefix PATH : ${phpPackage}/bin