unifi: 8.5.6 -> 8.6.9
https://community.ui.com/releases/UniFi-Network-Application-8-6-9/e4bd3f71-a2c4-4c98-b12a-a8b0b1c2178e
This commit is contained in:
parent
3af4d55839
commit
48cef5f1c7
@ -1,54 +1,53 @@
|
|||||||
{ lib, stdenv, dpkg, fetchurl, zip, nixosTests }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
dpkg,
|
||||||
|
fetchurl,
|
||||||
|
nixosTests,
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
generic = { version, sha256, suffix ? "", knownVulnerabilities ? [ ], ... } @ args:
|
pname = "unifi-controller";
|
||||||
stdenv.mkDerivation (args // {
|
version = "8.6.9";
|
||||||
pname = "unifi-controller";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://dl.ubnt.com/unifi/${version}${suffix}/unifi_sysvinit_all.deb";
|
|
||||||
inherit sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ dpkg ];
|
|
||||||
|
|
||||||
unpackPhase = ''
|
|
||||||
runHook preUnpack
|
|
||||||
dpkg-deb -x $src ./
|
|
||||||
runHook postUnpack
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out
|
|
||||||
cd ./usr/lib/unifi
|
|
||||||
cp -ar dl lib webapps $out
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.tests = {
|
|
||||||
unifi = nixosTests.unifi;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "http://www.ubnt.com/";
|
|
||||||
description = "Controller for Ubiquiti UniFi access points";
|
|
||||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
||||||
license = licenses.unfree;
|
|
||||||
platforms = platforms.unix;
|
|
||||||
maintainers = with maintainers; [ globin patryk27 ];
|
|
||||||
inherit knownVulnerabilities;
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
in rec {
|
|
||||||
# see https://community.ui.com/releases / https://www.ui.com/download/unifi
|
# see https://community.ui.com/releases / https://www.ui.com/download/unifi
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://dl.ui.com/unifi/${version}/unifi_sysvinit_all.deb";
|
||||||
|
sha256 = "sha256-004ZJEoj23FyFEBznqrpPzQ9E6DYpD7gBxa3ewSunIo=";
|
||||||
|
};
|
||||||
|
|
||||||
unifi8 = generic {
|
nativeBuildInputs = [ dpkg ];
|
||||||
version = "8.5.6";
|
|
||||||
suffix = "-1x29lm155t";
|
unpackPhase = ''
|
||||||
sha256 = "sha256-ZpCoE8OPb3FcKzf7Nurf9q+g2BpbjZcp1LvWOsV/tpA=";
|
runHook preUnpack
|
||||||
|
dpkg-deb -x $src ./
|
||||||
|
runHook postUnpack
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out
|
||||||
|
cd ./usr/lib/unifi
|
||||||
|
cp -ar dl lib webapps $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
unifi = nixosTests.unifi;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "http://www.ubnt.com/";
|
||||||
|
description = "Controller for Ubiquiti UniFi access points";
|
||||||
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||||
|
license = licenses.unfree;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [
|
||||||
|
globin
|
||||||
|
patryk27
|
||||||
|
];
|
||||||
|
knownVulnerabilities = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12348,10 +12348,9 @@ with pkgs;
|
|||||||
matomo_5
|
matomo_5
|
||||||
matomo-beta;
|
matomo-beta;
|
||||||
|
|
||||||
inherit (callPackages ../servers/unifi { })
|
unifi = callPackage ../servers/unifi { };
|
||||||
unifi8;
|
|
||||||
|
|
||||||
unifi = unifi8;
|
unifi8 = unifi;
|
||||||
|
|
||||||
unpackerr = callPackage ../servers/unpackerr {
|
unpackerr = callPackage ../servers/unpackerr {
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
|
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
|
||||||
|
Loading…
Reference in New Issue
Block a user