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

27 lines
881 B
Nix
Raw Normal View History

{ rustPlatform, fetchgit, lib, mosquitto, cmake, openssl, ... }:
2020-06-01 04:12:15 +02:00
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-11-22 01:58:32 +01:00
cargoSha256 = "1hhgk3mpmd143d3kfhxsaz2y5aksnwiz1bh4396hh0j7j4kqbgrw";
#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 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;
};
}