Skip to content

Commit 1118ab8

Browse files
authored
unifi: 8.5.6 -> 8.6.9 (#355103)
2 parents f9aa610 + e4f1463 commit 1118ab8

File tree

4 files changed

+54
-59
lines changed

4 files changed

+54
-59
lines changed

pkgs/by-name/un/unifi/package.nix

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
lib,
3+
stdenv,
4+
dpkg,
5+
fetchurl,
6+
nixosTests,
7+
}:
8+
9+
stdenv.mkDerivation rec {
10+
pname = "unifi-controller";
11+
version = "8.6.9";
12+
13+
# see https://community.ui.com/releases / https://www.ui.com/download/unifi
14+
src = fetchurl {
15+
url = "https://dl.ui.com/unifi/${version}/unifi_sysvinit_all.deb";
16+
sha256 = "sha256-004ZJEoj23FyFEBznqrpPzQ9E6DYpD7gBxa3ewSunIo=";
17+
};
18+
19+
nativeBuildInputs = [ dpkg ];
20+
21+
unpackPhase = ''
22+
runHook preUnpack
23+
dpkg-deb -x $src ./
24+
runHook postUnpack
25+
'';
26+
27+
installPhase = ''
28+
runHook preInstall
29+
30+
mkdir -p $out
31+
cd ./usr/lib/unifi
32+
cp -ar dl lib webapps $out
33+
34+
runHook postInstall
35+
'';
36+
37+
passthru.tests = {
38+
unifi = nixosTests.unifi;
39+
};
40+
41+
meta = with lib; {
42+
homepage = "http://www.ubnt.com/";
43+
description = "Controller for Ubiquiti UniFi access points";
44+
sourceProvenance = with sourceTypes; [ binaryBytecode ];
45+
license = licenses.unfree;
46+
platforms = platforms.unix;
47+
maintainers = with maintainers; [
48+
globin
49+
patryk27
50+
];
51+
knownVulnerabilities = [ ];
52+
};
53+
}

pkgs/servers/unifi/default.nix

Lines changed: 0 additions & 54 deletions
This file was deleted.

pkgs/top-level/aliases.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ mapAliases {
12501250
unifi5 = throw "'unifi5' has been removed since its required MongoDB version is EOL."; # Added 2024-04-11
12511251
unifi6 = throw "'unifi6' has been removed since its required MongoDB version is EOL."; # Added 2024-04-11
12521252
unifi7 = throw "'unifi7' has been removed since it is vulnerable to CVE-2024-42025 and its required MongoDB version is EOL."; # Added 2024-10-01
1253+
unifi8 = unifi; # Added 2024-11-15
12531254
unifiLTS = throw "'unifiLTS' has been removed since UniFi no longer has LTS and stable releases. Use `pkgs.unifi` instead."; # Added 2024-04-11
12541255
unifiStable = throw "'unifiStable' has been removed since UniFi no longer has LTS and stable releases. Use `pkgs.unifi` instead."; # Converted to throw 2024-04-11
12551256
untrunc = throw "'untrunc' has been renamed to/replaced by 'untrunc-anthwlock'"; # Converted to throw 2024-10-17

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12348,11 +12348,6 @@ with pkgs;
1234812348
matomo_5
1234912349
matomo-beta;
1235012350

12351-
inherit (callPackages ../servers/unifi { })
12352-
unifi8;
12353-
12354-
unifi = unifi8;
12355-
1235612351
unpackerr = callPackage ../servers/unpackerr {
1235712352
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
1235812353
};

0 commit comments

Comments
 (0)