nixos-config/pkgs/wordclock-dimmer/default.nix

21 lines
374 B
Nix
Raw Permalink Normal View History

{ lib, buildPythonApplication, python3Packages }:
buildPythonApplication rec {
name = "wordclock-dimmer";
src = ./wordclock-dimmer.py;
propagatedBuildInputs = with python3Packages; [
astral
paho-mqtt
];
dontUnpack = true;
format = "other";
installPhase = ''
install -D $src $out/bin/wordclock-dimmer
'';
meta.license = lib.licenses.mit;
}