mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
5330df8984
Previous version (4.8.14) is no longer available to download.
32 lines
701 B
Nix
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 ];
|
|
};
|
|
}
|