nixpkgs-suyu/pkgs/development/python-modules/foxdot/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
816 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, tkinter
, supercollider
}:
buildPythonPackage rec {
pname = "FoxDot";
version = "0.8.12";
src = fetchPypi {
inherit pname version;
sha256 = "528999da55ad630e540a39c0eaeacd19c58c36f49d65d24ea9704d0781e18c90";
};
propagatedBuildInputs = [ tkinter ]
# we currently build SuperCollider only on Linux
# but FoxDot is totally usable on macOS with the official SuperCollider binary
++ lib.optionals stdenv.isLinux [ supercollider ];
# Requires a running SuperCollider instance
doCheck = false;
meta = with lib; {
description = "Live coding music with SuperCollider";
mainProgram = "FoxDot";
homepage = "https://foxdot.org/";
license = licenses.cc-by-sa-40;
maintainers = with maintainers; [ mrmebelman ];
};
}