diff --git a/files/nix-stuff/nixpkgs/home.nix b/files/nix-stuff/nixpkgs/home.nix index c8eabb0..73957a7 100644 --- a/files/nix-stuff/nixpkgs/home.nix +++ b/files/nix-stuff/nixpkgs/home.nix @@ -30,6 +30,7 @@ in home.packages = with pkgs; [ elkowar_local.bashtop + elkowar_local.liquidctl direnv rnix-lsp nix-prefetch-git diff --git a/files/nix-stuff/nixpkgs/local/default.nix b/files/nix-stuff/nixpkgs/local/default.nix index e0a3368..9b4eea1 100644 --- a/files/nix-stuff/nixpkgs/local/default.nix +++ b/files/nix-stuff/nixpkgs/local/default.nix @@ -1,4 +1,5 @@ { pkgs ? import {} }: { bashtop = pkgs.callPackage ./packages/bashtop.nix {}; + liquidctl = pkgs.callPackage ./packages/liquidctl.nix {}; } diff --git a/files/nix-stuff/nixpkgs/local/packages/liquidctl.nix b/files/nix-stuff/nixpkgs/local/packages/liquidctl.nix new file mode 100644 index 0000000..386755b --- /dev/null +++ b/files/nix-stuff/nixpkgs/local/packages/liquidctl.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: +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; +}