From 7ae9c8ab5e5645b18b056611b0f72366b6ef1501 Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Mon, 1 May 2017 23:00:09 +0200 Subject: [PATCH] unifi: 5.4.14 -> 5.5.11 --- pkgs/servers/unifi/default.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/unifi/default.nix b/pkgs/servers/unifi/default.nix index a11618d24f56..2ce0ba1d5f5c 100644 --- a/pkgs/servers/unifi/default.nix +++ b/pkgs/servers/unifi/default.nix @@ -1,25 +1,30 @@ -{ stdenv, fetchurl, unzip }: +{ stdenv +, dpkg +, fetchurl +, unzip +}: stdenv.mkDerivation rec { name = "unifi-controller-${version}"; - version = "5.4.14"; + version = "5.5.11"; src = fetchurl { - url = "https://dl.ubnt.com/unifi/${version}/UniFi.unix.zip"; - sha256 = "16scryd8g0dsswawwadxxqsirir6mn0jaawv3qcszqj52vlz878w"; + url = "https://www.ubnt.com/downloads/unifi/5.5.11-5107276ec2/unifi_sysvinit_all.deb"; + sha256 = "1jsixz7g7h7fdwb512flcwk0vblrsxpg4i9jdz7r72bkmvnxk7mm"; }; - buildInputs = [ unzip ]; + buildInputs = [ dpkg ]; + + unpackPhase = '' + dpkg-deb -x ${src} ./ + ''; doConfigure = false; - buildPhase = '' - rm -rf bin conf readme.txt - ''; - installPhase = '' mkdir -p $out - cp -ar * $out + cd ./usr/lib/unifi + cp -ar dl lib webapps $out ''; meta = with stdenv.lib; {