aboutsummaryrefslogtreecommitdiff
path: root/pkgs/bigclown-leds/default.nix
blob: 8ebac592e3a79d928f68b76547897a24c748014d (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
{ lib, stdenvNoCC, fetchgit
, makeWrapper, python3
}:

with lib;

let

  python = python3.withPackages (pypkgs: with pypkgs; [
    paho-mqtt
  ]);

in stdenvNoCC.mkDerivation rec {
  name = "personal-devshells";
  src = fetchgit {
    url = "https://git.cynerd.cz/bigclown-leds";
    rev = "1a2c69a2152c315a964c0eb9b2673c70e52051b4";
    hash = "sha256-alApXwHZeUnNFkO2S+yw0qG18Wr5fF3ErGc0QIgPFU8=";
  };

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