aboutsummaryrefslogtreecommitdiff
path: root/pkgs/bigclown-leds/default.nix
blob: c30faa6dff39c36179dc74bcbcc3f120d9f33f60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  lib,
  stdenvNoCC,
  fetchgit,
  makeWrapper,
  python3,
}:
with lib; let
  python = python3.withPackages (pypkgs:
    with pypkgs; [
      paho-mqtt
    ]);
in
  stdenvNoCC.mkDerivation rec {
    name = "bigclown-leds";
    src = fetchgit {
      url = "https://git.cynerd.cz/bigclown-leds";
      rev = "f84a97b9bf2665dea91f71fb1b0f938eeb725ccf";
      hash = "sha256-jNbjgf1WdpgK5keSAPhyOXjt8YT8hcVDmkZ3uI2rnwE=";
    };

    nativeBuildInputs = [makeWrapper];
    installPhase = ''
      mkdir -p $out/bin
      cp bigclown-leds $out/bin/
      wrapProgram $out/bin/bigclown-leds \
        --prefix PATH : ${lib.makeBinPath [python]}
    '';
  }