4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, pythonPackages, fetchFromGitHub, pkg-config, glib, alsaLib, libjack2 }:
|
|
|
|
pythonPackages.buildPythonApplication {
|
|
version = "2015-11-17";
|
|
pname = "mididings";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dsacre";
|
|
repo = "mididings";
|
|
rev = "bbec99a8c878a2a7029e78e84fc736e4a68ed5a0";
|
|
sha256 = "1pdf5mib87zy7yjh9vpasja419h28wvgq6x5hw2hkm7bg9ds4p2m";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ glib alsaLib libjack2 pythonPackages.boost ];
|
|
propagatedBuildInputs = with pythonPackages; [ decorator ]
|
|
# for livedings
|
|
++ [ tkinter pyliblo ]
|
|
# for mididings.extra
|
|
++ [ dbus-python pyinotify ]
|
|
# to read/write standard MIDI files
|
|
++ [ pysmf ]
|
|
# so mididings knows where to look for config files
|
|
++ [ pyxdg ];
|
|
|
|
preBuild = with stdenv.lib.versions; ''
|
|
substituteInPlace setup.py \
|
|
--replace boost_python "boost_python${major pythonPackages.python.version}${minor pythonPackages.python.version}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A MIDI router and processor based on Python, supporting ALSA and JACK MIDI";
|
|
homepage = "http://das.nasophon.de/mididings";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.gnidorah ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|