1 { lib, stdenv, dpkg, fetchurl, zip, nixosTests }:
4 generic = { version, sha256, suffix ? "", knownVulnerabilities ? [ ], ... } @ args:
5 stdenv.mkDerivation (args // {
6 pname = "unifi-controller";
9 url = "https://dl.ubnt.com/unifi/${version}${suffix}/unifi_sysvinit_all.deb";
13 nativeBuildInputs = [ dpkg ];
26 cp -ar dl lib webapps $out
32 unifi = nixosTests.unifi;
36 homepage = "http://www.ubnt.com/";
37 description = "Controller for Ubiquiti UniFi access points";
38 sourceProvenance = with sourceTypes; [ binaryBytecode ];
39 license = licenses.unfree;
40 platforms = platforms.unix;
41 maintainers = with maintainers; [ globin patryk27 ];
42 inherit knownVulnerabilities;
47 # see https://community.ui.com/releases / https://www.ui.com/download/unifi
51 suffix = "-1x29lm155t";
52 sha256 = "sha256-ZpCoE8OPb3FcKzf7Nurf9q+g2BpbjZcp1LvWOsV/tpA=";