fix(rpi4): set up deconz
This commit is contained in:
parent
2f33e6835a
commit
2a135612ab
4 changed files with 205 additions and 1 deletions
pkgs/deconz
42
pkgs/deconz/default.nix
Normal file
42
pkgs/deconz/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, fetchurl, mkDerivation, dpkg, autoPatchelfHook
|
||||
, qtserialport, qtwebsockets
|
||||
, libredirect, makeWrapper, gzip, gnutar
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
name = "deconz-${version}";
|
||||
version = "2.05.82";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://deconz.dresden-elektronik.de/raspbian/alpha/deconz_${version}-debian-stretch-beta_arm64.deb";
|
||||
sha256 = "cCH7XhRXCHKm5AVsM19TyHwAjhbTv4qyDx2GamuDWQw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ dpkg autoPatchelfHook makeWrapper ];
|
||||
|
||||
buildInputs = [ qtserialport qtwebsockets ];
|
||||
|
||||
unpackPhase = "dpkg-deb -x $src .";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"
|
||||
cp -r usr/* .
|
||||
cp -r share/deCONZ/plugins/* lib/
|
||||
cp -r . $out
|
||||
|
||||
wrapProgram "$out/bin/deCONZ" \
|
||||
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||
--set NIX_REDIRECTS "/usr/share=$out/share:/usr/bin=$out/bin" \
|
||||
--prefix PATH : "${stdenv.lib.makeBinPath [ gzip gnutar ]}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Manage ZigBee network with ConBee, ConBee II or RaspBee hardware";
|
||||
# 2019-08-19: The homepage links to old software that doesn't even work --
|
||||
# it fails to detect ConBee2.
|
||||
homepage = "https://www.dresden-elektronik.de/funktechnik/products/software/pc-software/deconz/?L=1";
|
||||
license = licenses.unfree;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ felschr ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue