From c4c0b2a9bfb98250e620c92ac6e173a5946464f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 12 Dec 2022 10:47:51 +0100 Subject: Add BigClown --- pkgs/bigclown-leds/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/default.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/bigclown-leds/default.nix (limited to 'pkgs') diff --git a/pkgs/bigclown-leds/default.nix b/pkgs/bigclown-leds/default.nix new file mode 100644 index 0000000..8ebac59 --- /dev/null +++ b/pkgs/bigclown-leds/default.nix @@ -0,0 +1,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 ]} + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 579ee1f..53cea3c 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -25,6 +25,8 @@ let lorem-text = callPackage ./lorem-text { }; + bigclown-leds = callPackage ./bigclown-leds { }; + # Package to be installed to the user's profile cynerd-profile = nixpkgs.symlinkJoin { name = "cynerd-profile"; -- cgit v1.2.3