summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/foxdot/default.nix
blob: 407cdb4448390b2e8afb6f06ef136fa39a70cfcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  tkinter,
  supercollider,
}:

buildPythonPackage rec {
  pname = "foxdot";
  version = "0.9.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-9dIaqrGcYpZeWlRlymRvG9YnTRav0zktfmUpFBlN/7E=";
  };

  build-system = [ setuptools ];

  dependencies = [
    tkinter
  ]
  # we currently build SuperCollider only on Linux
  # but FoxDot is totally usable on macOS with the official SuperCollider binary
  ++ lib.optionals stdenv.hostPlatform.isLinux [ supercollider ];

  # Requires a running SuperCollider instance
  doCheck = false;

  meta = {
    description = "Live coding music with SuperCollider";
    mainProgram = "FoxDot";
    homepage = "https://foxdot.org/";
    license = lib.licenses.cc-by-sa-40;
    maintainers = with lib.maintainers; [ mrmebelman ];
  };
}