1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/servers/unifi/default.nix
William A. Kennington III 6532863ac4 unifi: 3.2.10 -> 4.6.3
2015-06-23 10:09:44 -07:00

33 lines
699 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "unifi-controller-${version}";
version = "4.6.3";
src = fetchurl {
url = "http://dl.ubnt.com/unifi/${version}/UniFi.unix.zip";
sha256 = "046qx7ghz5b1s4kg6aqvdiq7ck589c8x2cc3x03crcdjjj33rirq";
};
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 ];
};
}