feat: update deconz

- add x86_64-linux support
- expose in flake
This commit is contained in:
Felix Schröter 2022-08-03 01:30:46 +02:00
parent 025263531c
commit 9fbea3db5c
Signed by: felschr
GPG key ID: 671E39E6744C807D
2 changed files with 26 additions and 10 deletions

View file

@ -186,9 +186,13 @@
shellcheck.enable = true; shellcheck.enable = true;
}; };
}; };
in { in rec {
formatter = pkgs.nixfmt; formatter = pkgs.nixfmt;
packages = { deconz = pkgs.qt5.callPackage ./pkgs/deconz { }; };
apps = { deconz = flake-utils.lib.mkApp { drv = packages.deconz; }; };
devShells.default = devShells.default =
pkgs.mkShell { inherit (pre-commit-check) shellHook; }; pkgs.mkShell { inherit (pre-commit-check) shellHook; };
}); });

View file

@ -1,16 +1,28 @@
{ lib, fetchurl, mkDerivation, dpkg, autoPatchelfHook, qtserialport { lib, stdenv, fetchurl, mkDerivation, dpkg, autoPatchelfHook, qtserialport
, qtwebsockets, libredirect, makeWrapper, gzip, gnutar }: , qtwebsockets, libredirect, makeWrapper, gzip, gnutar }:
mkDerivation rec { let
name = "deconz-${version}"; version = "2.17.01";
version = "2.09.03"; srcs = {
x86_64-linux = fetchurl {
src = fetchurl {
url = url =
"https://deconz.dresden-elektronik.de/debian/stable/deconz_${version}-debian-stretch-stable_arm64.deb"; "https://deconz.dresden-elektronik.de/ubuntu/beta/deconz-${version}-qt5.deb";
sha256 = "6EXYoXOg+6dTR9/hRHmNafZuBeNnAAS4z8ia15s1+9U="; sha256 = "sha256-c2G3oOnSXlivO9KXRBZIe2DEuq7vPVlNDKF6T/pZLps=";
}; };
aarch64-linux = fetchurl {
url =
"https://deconz.dresden-elektronik.de/debian/stable/deconz_${version}-debian-buster-stable_arm64.deb";
sha256 = "sha256-zuy4e9bzcRqDeXP6mfzZLCDK/3we25LH6xktnO6HXps=";
};
};
in mkDerivation rec {
pname = "deCONZ";
inherit version;
src = srcs.${stdenv.hostPlatform.system};
nativeBuildInputs = [ dpkg autoPatchelfHook makeWrapper ]; nativeBuildInputs = [ dpkg autoPatchelfHook makeWrapper ];
buildInputs = [ qtserialport qtwebsockets ]; buildInputs = [ qtserialport qtwebsockets ];
@ -37,7 +49,7 @@ mkDerivation rec {
homepage = homepage =
"https://www.dresden-elektronik.de/funktechnik/products/software/pc-software/deconz/?L=1"; "https://www.dresden-elektronik.de/funktechnik/products/software/pc-software/deconz/?L=1";
license = licenses.unfree; license = licenses.unfree;
platforms = with platforms; linux; platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ felschr ]; maintainers = with maintainers; [ felschr ];
}; };
} }