aboutsummaryrefslogtreecommitdiff
path: root/pkgs/bigclown-leds
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-01-08 11:25:01 +0100
committerKarel Kočí <cynerd@email.cz>2023-01-08 11:25:01 +0100
commitd5dc7479c489d17e6dcacf081c0f1b5242d99bd9 (patch)
treec12d18231cacb81ff5b69a2073894d228e3c81e7 /pkgs/bigclown-leds
parentc7a226a92d65cedd384fa29083efdbb07a6084b0 (diff)
downloadnixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.tar.gz
nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.tar.bz2
nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.zip
Format using Alejandra
Diffstat (limited to 'pkgs/bigclown-leds')
-rw-r--r--pkgs/bigclown-leds/default.nix53
1 files changed, 27 insertions, 26 deletions
diff --git a/pkgs/bigclown-leds/default.nix b/pkgs/bigclown-leds/default.nix
index 8ebac59..0d2f8a9 100644
--- a/pkgs/bigclown-leds/default.nix
+++ b/pkgs/bigclown-leds/default.nix
@@ -1,28 +1,29 @@
-{ lib, stdenvNoCC, fetchgit
-, makeWrapper, python3
+{
+ 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=";
+ };
-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 ]}
- '';
-}
+ nativeBuildInputs = [makeWrapper];
+ installPhase = ''
+ mkdir -p $out/bin
+ cp bigclown-leds $out/bin/
+ wrapProgram $out/bin/bigclown-leds \
+ --prefix PATH : ${lib.makeBinPath [python]}
+ '';
+ }