nixpkgs/pkgs/servers/unifi/default.nix
Taylor "Nekroze" Lawson 5330df8984 Updated unifi-controller package to 4.8.15
Previous version (4.8.14) is no longer available to download.
2016-04-13 09:21:41 +10:00

32 lines
701 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "unifi-controller-${version}";
version = "4.8.15";
src = fetchurl {
url = "https://dl.ubnt.com/unifi/${version}/UniFi.unix.zip";
sha256 = "1p77l2186mw32l59inyd79rpachcs634z891k1vqcwn9gm7a39r2";
};
buildInputs = [ unzip ];
doConfigure = false;
buildPhase = ''
rm -rf bin conf readme.txt
'';
installPhase = ''
mkdir -p $out
cp -ar * $out
'';
meta = with stdenv.lib; {
homepage = http://www.ubnt.com/;
description = "Controller for Ubiquiti UniFi accesspoints";
license = licenses.unfree;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}