unifi: 5.4.14 -> 5.5.11
This commit is contained in:
parent
f4289c8b19
commit
7ae9c8ab5e
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user