about summary refs log tree commit diff
path: root/fun/idual/default.nix
blob: e051f1c812e469981ab00e6aea9e63fcec6a7024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 ]);
})