nixos-config/pkgs/light-control/default.nix

26 lines
818 B
Nix
Raw Normal View History

2020-06-01 04:12:15 +02:00
{ rustPlatform, fetchgit, stdenv, mosquitto, cmake, openssl, ... }:
rustPlatform.buildRustPackage rec {
name = "light-${version}";
2020-07-12 02:59:39 +02:00
version = "2.1.0";
2020-06-01 04:12:15 +02:00
src = fetchgit {
2020-06-01 14:34:23 +02:00
url = "https://git.ingolf-wagner.de/palo/light-control.git";
2020-07-12 02:59:39 +02:00
rev = "6cce678572815aac8d6f78be2ee5177f07e133bd";
sha256 = "1bnxvgaa58hga20ywgk728aj4wll2rhxgrdp477d2d8isifvij4v";
2020-06-01 04:12:15 +02:00
};
2020-07-12 02:59:39 +02:00
cargoSha256 = "05mm82hdbs36p6mr4qdpip16phg28r44lbni09x48qni81dbw3wx";
2020-06-01 04:12:15 +02:00
#verifyCargoDeps = true;
nativeBuildInputs = [ cmake ];
buildInputs = [ mosquitto openssl ];
2020-06-01 04:12:15 +02:00
meta = with stdenv.lib; {
description = "light control over mqtt, with scenes and room tracking";
homepage = "https://github.com/mrVanDalo/light-control";
2020-06-01 04:12:15 +02:00
license = licenses.gpl3;
maintainers = [ maintainers.mrVanDalo ];
platforms = platforms.all;
};
}