nixpkgs-suyu/pkgs/servers/unifi/default.nix

38 lines
767 B
Nix
Raw Normal View History

2017-05-01 23:00:09 +02:00
{ stdenv
, dpkg
, fetchurl
, unzip
}:
2014-08-05 23:00:10 +02:00
stdenv.mkDerivation rec {
name = "unifi-controller-${version}";
2017-05-01 23:00:09 +02:00
version = "5.5.11";
2014-08-05 23:00:10 +02:00
src = fetchurl {
2017-05-01 23:00:09 +02:00
url = "https://www.ubnt.com/downloads/unifi/5.5.11-5107276ec2/unifi_sysvinit_all.deb";
sha256 = "1jsixz7g7h7fdwb512flcwk0vblrsxpg4i9jdz7r72bkmvnxk7mm";
2014-08-05 23:00:10 +02:00
};
2017-05-01 23:00:09 +02:00
buildInputs = [ dpkg ];
2014-08-05 23:00:10 +02:00
2017-05-01 23:00:09 +02:00
unpackPhase = ''
dpkg-deb -x ${src} ./
2014-08-05 23:00:10 +02:00
'';
2017-05-01 23:00:09 +02:00
doConfigure = false;
2014-08-05 23:00:10 +02:00
installPhase = ''
mkdir -p $out
2017-05-01 23:00:09 +02:00
cd ./usr/lib/unifi
cp -ar dl lib webapps $out
2014-08-05 23:00:10 +02:00
'';
meta = with stdenv.lib; {
homepage = http://www.ubnt.com/;
description = "Controller for Ubiquiti UniFi accesspoints";
license = licenses.unfree;
platforms = platforms.unix;
2014-08-06 04:47:55 +02:00
maintainers = with maintainers; [ wkennington ];
2014-08-05 23:00:10 +02:00
};
}