aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-12-12 10:47:51 +0100
committerKarel Kočí <cynerd@email.cz>2022-12-12 10:47:51 +0100
commitc4c0b2a9bfb98250e620c92ac6e173a5946464f7 (patch)
tree0d7fc7e44cd4b65beaeaa636f14c632a83c35485 /pkgs
parent32faf3d514ca67ffadd712ef10ddf257020c83e1 (diff)
downloadnixos-personal-c4c0b2a9bfb98250e620c92ac6e173a5946464f7.tar.gz
nixos-personal-c4c0b2a9bfb98250e620c92ac6e173a5946464f7.tar.bz2
nixos-personal-c4c0b2a9bfb98250e620c92ac6e173a5946464f7.zip
Add BigClown
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/bigclown-leds/default.nix28
-rw-r--r--pkgs/default.nix2
2 files changed, 30 insertions, 0 deletions
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";