nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (822B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication {
      8   pname = "mqtt-launcher";
      9   version = "0-unstable-2021-09-17";
     10   format = "other";
     11 
     12   src = fetchFromGitHub {
     13     owner = "jpmens";
     14     repo = "mqtt-launcher";
     15     rev = "bce7a5b320e7b81cfbb904d70033b9998f70e232";
     16     hash = "sha256-FEKvlED/Sgcr7vBa8HW2N7mapmARiemcJ22zwuTwORw=";
     17   };
     18 
     19   dependencies = with python3Packages; [ paho-mqtt ];
     20 
     21   dontUseSetuptoolsBuild = true;
     22   dontUseSetuptoolsCheck = true;
     23 
     24   postInstall = ''
     25     install -Dm755 mqtt-launcher.py $out/bin/mqtt-launcher
     26   '';
     27 
     28   meta = {
     29     description = "Execute shell commands triggered by published MQTT messages";
     30     homepage = "https://github.com/jpmens/mqtt-launcher";
     31     license = lib.licenses.free;
     32     maintainers = [ lib.maintainers.sikmir ];
     33   };
     34 }