From 1a1ef2692478984ac6e3c108f2aca116de7e805f Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sun, 9 Aug 2020 17:45:19 +0200 Subject: [PATCH] Add liquidctl nix module --- files/nix-stuff/nixpkgs/home.nix | 1 + files/nix-stuff/nixpkgs/local/default.nix | 1 + files/nix-stuff/nixpkgs/local/packages/liquidctl.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 files/nix-stuff/nixpkgs/local/packages/liquidctl.nix 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; +}