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:
parent
eac683f69c
commit
e7aaa0bc2f
4 changed files with 75 additions and 31 deletions
19
fun/idual/default.nix
Normal file
19
fun/idual/default.nix
Normal 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 ]);
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue