Add liquidctl nix module

This commit is contained in:
elkowar 2020-08-09 17:45:19 +02:00
parent 797e424adf
commit 1a1ef26924
3 changed files with 14 additions and 0 deletions

View file

@ -30,6 +30,7 @@ in
home.packages = with pkgs; [
elkowar_local.bashtop
elkowar_local.liquidctl
direnv
rnix-lsp
nix-prefetch-git

View file

@ -1,4 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:
{
bashtop = pkgs.callPackage ./packages/bashtop.nix {};
liquidctl = pkgs.callPackage ./packages/liquidctl.nix {};
}

View file

@ -0,0 +1,12 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs; python38.pkgs.buildPythonApplication rec {
pname = "liquidctl";
version = "1.4.1";
propagatedBuildInputs = with python38.pkgs; [ pyusb docopt hidapi ];
src = python38.pkgs.fetchPypi {
inherit pname version;
sha256 = "13gzfanxdrn45cwz9mm1j7jxxpwmdvz02i122ibimrzkndjvr8sr";
};
doCheck = false;
}