diff options
author | Vincent Ambo <tazjin@google.com> | 2020-04-25T21·17+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-04-25T21·17+0100 |
commit | e7aaa0bc2f3d1c1f7514076f990ece7adebcdace (patch) | |
tree | bf6c378ac703847ee8dd946fdfb5dbaed4f07e31 /fun/idual/default.nix | |
parent | eac683f69cbc301bc122144de397d9f52bd39359 (diff) |
feat(fun/idual): Move colour codes into a Python script r/685
This will make them easier to consume for the thing I'm actually trying to do here.
Diffstat (limited to 'fun/idual/default.nix')
-rw-r--r-- | fun/idual/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fun/idual/default.nix b/fun/idual/default.nix new file mode 100644 index 000000000000..e051f1c812e4 --- /dev/null +++ b/fun/idual/default.nix @@ -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 ]); +}) |