mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 21:32:27 +00:00
Add alejandra
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{ pkgs
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
,
|
||||
{
|
||||
pkgs,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "keyleds";
|
||||
version = "1.1.1";
|
||||
@@ -16,6 +16,18 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-KCWmaRmJTmZgTt7HW9o6Jt1u4x6+G2j6T9EqVt21U18=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [ cmake pkgconfig ];
|
||||
buildInputs = with pkgs; [ xlibsWrapper xorg.libXi libuv systemd luajit libyaml ];
|
||||
postInstall = ''
|
||||
cat <<EOF >> $out/bin/set-leds.sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for d in \$($out/bin/keyledsctl list); do
|
||||
$out/bin/keyledsctl set-leds -d \$d all=black|| true;
|
||||
done
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/set-leds.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with pkgs; [cmake pkgconfig];
|
||||
buildInputs = with pkgs; [xlibsWrapper xorg.libXi libuv systemd luajit libyaml];
|
||||
}
|
||||
|
Reference in New Issue
Block a user