feat(fun/idual): Move colour codes into a Python script

This will make them easier to consume for the thing I'm actually
trying to do here.
This commit is contained in:
Vincent Ambo 2020-04-25 22:17:14 +01:00
parent eac683f69c
commit e7aaa0bc2f
4 changed files with 75 additions and 31 deletions

19
fun/idual/default.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, lib, ... }:
let
inherit (pkgs) python python3 python3Packages;
opts = {
pname = "idualctl";
version = "0.1";
src = ./.;
propagatedBuildInputs = [
python.broadlink
];
};
in lib.fix (self: {
package = python3Packages.buildPythonPackage opts;
script = python3Packages.buildPythonApplication opts;
python = python3.withPackages (_: [ self.package ]);
})