1 { lib, stdenv, dpkg, fetchurl, zip, nixosTests }:
4 generic = { version, sha256, suffix ? "", ... } @ 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 ];
46 # see https://community.ui.com/releases / https://www.ui.com/download/unifi
50 suffix = "-f57f5bf7ab";
51 sha256 = "sha256-a5kl8gZbRnhS/p1imPl7soM0/QSFHdM0+2bNmDfc1mY=";
56 suffix = "-1c329ecd26";
57 sha256 = "sha256-7zcRxflEvPRxH7MtudOqumeUpSzAaEIbjaaJVpr2Gbc=";