From 7c18ff835679887810da80a263bce041043909b9 Mon Sep 17 00:00:00 2001 From: Artyom Pertsovsky Date: Wed, 8 Jan 2025 00:19:23 +0200 Subject: [PATCH] keylight-cli: init at 1.0.0 --- maintainers/maintainer-list.nix | 6 +++++ pkgs/by-name/ke/keylight-cli/package.nix | 34 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/by-name/ke/keylight-cli/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 078d0560ac241..695eb669eec01 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -23915,6 +23915,12 @@ githubId = 245573; name = "Dmitry Kalinkin"; }; + versality = { + email = "artyom@pertsovsky.com"; + github = "versality"; + githubId = 1486626; + name = "Artyom Pertsovsky"; + }; vglfr = { email = "vf.velt@gmail.com"; github = "vglfr"; diff --git a/pkgs/by-name/ke/keylight-cli/package.nix b/pkgs/by-name/ke/keylight-cli/package.nix new file mode 100644 index 0000000000000..d9ae816e4ef3b --- /dev/null +++ b/pkgs/by-name/ke/keylight-cli/package.nix @@ -0,0 +1,34 @@ +{ + lib, + stdenv, + fetchFromGitHub, + babashka, +}: + +stdenv.mkDerivation rec { + pname = "keylight-cli"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "versality"; + repo = "keylight-cli"; + rev = "46ff8472f9544e16eea822bf274acf4a5cbedbe8"; + sha256 = "sha256-gzTvMBa7JVckxLnltlR5XOj6BBbfPXZei7Wj3f1n4Kw="; + }; + + propagatedBuildInputs = [ babashka ]; + + installPhase = '' + mkdir -p $out/bin + install -Dm755 keylight.bb $out/bin/keylight + ''; + + meta = with lib; { + description = "CLI tool to control Elgato Key Light devices"; + homepage = "https://github.com/versality/keylight-cli"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ versality ]; + mainProgram = "keylight"; + platforms = platforms.all; + }; +}